浏览代码

非常用问卷查询条件修改

lrf 1 年之前
父节点
当前提交
3e46c6a8b3
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      src/views/train-plan/quest.vue

+ 5 - 4
src/views/train-plan/quest.vue

@@ -15,7 +15,8 @@
             </el-select>
           </el-form-item> -->
           <el-form-item label="问卷列表">
-            <data-table :fields="fields" :data="questList" :select="true" :selected="selected" @handleSelect="handleSelect"></data-table>
+            <data-table :fields="fields" :data="questList" :select="true" :selected="selected"
+                        @handleSelect="handleSelect"></data-table>
           </el-form-item>
           <el-form-item label="">
             <el-button type="primary" @click="handleSave">保存</el-button>
@@ -39,7 +40,7 @@ export default {
   name: 'quest',
   props: {},
   components: { listFrame, dataTable },
-  data: function() {
+  data: function () {
     return {
       dialog: false,
       opera: [
@@ -63,7 +64,7 @@ export default {
       options: undefined,
     };
   },
-  created() {},
+  created() { },
   methods: {
     ...util({ modelFetch: 'fetch' }),
     ...trainplan(['fetch']),
@@ -73,7 +74,7 @@ export default {
       let termid = _.get(this.defaultOption, 'termid');
       if (!termid) return;
       let res = await this.modelFetch({ model: 'termquest', termid });
-      let tsl = await this.query({ type: 1 });
+      let tsl = await this.query({ type: 1, status: '1' });
       if (this.$checkRes(tsl)) {
         this.$set(this, `questList`, tsl.data);
       }