Commit f2be913b75ae141cfe09a6cec0d67483583a1365

Authored by yangzhi
1 parent 64c93a13

王哥yyds

src/views/TestPaper/ManualTestPaper.vue
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 <el-tab-pane label="测评类" name="1"></el-tab-pane> 12 <el-tab-pane label="测评类" name="1"></el-tab-pane>
13 </el-tabs> 13 </el-tabs>
14 <div style="padding:0 10px"> 14 <div style="padding:0 10px">
15 - <el-input size="small" placeholder="输入关键字搜索" v-model="keyword"></el-input> 15 + <el-input size="small" placeholder="输入关键字搜索" v-model="parameter.keyWord"></el-input>
16 </div> 16 </div>
17 <draggable :options="{animation:380,filter:'.unmover'}" group="itxst" v-model="arr1" @end="end1" 17 <draggable :options="{animation:380,filter:'.unmover'}" group="itxst" v-model="arr1" @end="end1"
18 @add="RemoveHere" :move="onMove" class="infinite-list" :style="{'height':contentHeight-80+'px'}" 18 @add="RemoveHere" :move="onMove" class="infinite-list" :style="{'height':contentHeight-80+'px'}"
@@ -111,16 +111,15 @@ export default { @@ -111,16 +111,15 @@ export default {
111 }, 111 },
112 data() { 112 data() {
113 return { 113 return {
114 - keyword: "",  
115 - activeTab: 6, 114 + activeTab: "6",
116 parameter: { 115 parameter: {
117 - pageIndex: 1,  
118 - pageSize: 12,  
119 - // sort: "id",  
120 - // sortOrder: 1,  
121 - // keyword: "", 116 + pageIndex: 0,
  117 + pageSize: 20,
  118 + sort: "id",
  119 + sortOrder: 1,
  120 + keyWord: "",
122 QuestionClassId: 6, 121 QuestionClassId: 6,
123 - // status: 1, 122 + status: 1,
124 }, 123 },
125 contentHeight: 0, 124 contentHeight: 0,
126 count: 0, 125 count: 0,
@@ -174,13 +173,16 @@ export default { @@ -174,13 +173,16 @@ export default {
174 }, 173 },
175 watch: { 174 watch: {
176 activeTab() { 175 activeTab() {
  176 + console.log("activeTab watch");
177 this.search(); 177 this.search();
178 }, 178 },
179 - keyword(val) {  
180 - clearTimeout(this.timeout);  
181 - this.timeout = setTimeout(() => {  
182 - this.search();  
183 - }, 200); 179 + "parameter.keyWord": {
  180 + handler() {
  181 + clearTimeout(this.timeout);
  182 + this.timeout = setTimeout(() => {
  183 + this.search();
  184 + }, 200);
  185 + },
184 }, 186 },
185 }, 187 },
186 computed: { 188 computed: {
@@ -219,7 +221,7 @@ export default { @@ -219,7 +221,7 @@ export default {
219 }, 221 },
220 load() { 222 load() {
221 this.loading = true; 223 this.loading = true;
222 - this.parameter.pageIndex += 1; 224 + this.parameter.pageIndex++;
223 this.GetList(); 225 this.GetList();
224 this.loading = false; 226 this.loading = false;
225 }, 227 },