浏览代码

B类查询字段去掉专业委员会

littlegreen 2 年之前
父节点
当前提交
b17ee4c797
共有 1 个文件被更改,包括 18 次插入4 次删除
  1. 18 4
      ruoyi-ui/src/views/cert/contract/index.vue

+ 18 - 4
ruoyi-ui/src/views/cert/contract/index.vue

@@ -323,7 +323,6 @@ export default {
         name: null,
         code: null,
         certId: null,
-        certMajor: null,
         email: null,
         phone: null,
       },
@@ -377,16 +376,31 @@ export default {
     };
   },
   created() {
-    this.getList();
-    this.getTemp();
+    this.initGetList();
+    // this.getTemp();
   },
   methods: {
     /** 查询B类证书列表 */
     tempHandle(val){
-      console.log(val,this.tempValueOptions)
+      // console.log(val,this.tempValueOptions)
       let arr = this.tempValueOptions.filter(item=>item.value===val)
       return arr[0].label
     },
+    initGetList() {
+      this.loading = true;
+      listContract(this.queryParams).then(async(response) => {
+        let res = await listTemp()
+        // console.log(res,2222222)
+        let arr = res.rows.map(item => {
+          return { label: item.name, value: item.id }
+        });
+      // console.log(arr,22)
+        this.tempValueOptions = arr
+        this.contractList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
     getList() {
       this.loading = true;
       listContract(this.queryParams).then(response => {