Pārlūkot izejas kodu

Merge branch 'master' into liua

* master:
  提交
la 2 gadi atpakaļ
vecāks
revīzija
7b80efc9d2
1 mainītis faili ar 17 papildinājumiem un 19 dzēšanām
  1. 17 19
      src/views/hdlb/index.vue

+ 17 - 19
src/views/hdlb/index.vue

@@ -210,10 +210,10 @@
                 <th>细则</th>
                 <th>评审专家</th>
               </tr>
-              <tr v-for="(item,index) in pfxz">
-                <td>{{index+1}}</td>
-                <td>{{item.hp_name}}</td>
-                <td>{{item.hp_zjsz_realname}}</td>
+              <tr v-for="(item, index) in pfxz">
+                <td>{{ index + 1 }}</td>
+                <td>{{ item.hp_name }}</td>
+                <td>{{ item.hp_zjsz_realname }}</td>
               </tr>
             </table>
           </div>
@@ -295,7 +295,8 @@ import {
   copyApi,
   queryPfmbApi,
   queryZjszApi,
-  pfmbeditApi, queryPfmbPfxApi,
+  pfmbeditApi,
+  queryPfmbPfxApi,
 } from "./api";
 import { Message } from "element-ui";
 
@@ -345,17 +346,16 @@ export default defineComponent({
       for (let i in pfmbOptions.value) {
         if (pfmbOptions.value[i].hp_id == dialogForm["hhg_pfmb"]) {
           hp_cate.value = pfmbOptions.value[i].hp_cate_option_k;
-          if(hp_cate.value == 1) {
+          if (hp_cate.value == 1) {
             let data = {
-              hp_src_id:pfmbOptions.value[i].hp_id
-            }
-            queryPfmbPfxApi(data).then(res=>{
-              if(res.code == 1) {
+              hp_src_id: pfmbOptions.value[i].hp_id,
+            };
+            queryPfmbPfxApi(data).then((res) => {
+              if (res.code == 1) {
                 pfxz.value = res.data.page_data;
               }
-            })
+            });
           }
-
         }
       }
     }
@@ -422,12 +422,12 @@ export default defineComponent({
     }
 
     function handleSubmit() {
-      const { hhg_pfmb, hhg_zjsz, hhg_jxsz, hp_attrib } = dialogForm;
+      const { hhg_pfmb, hhg_zjsz, hhg_jxsz, hhg_zczj } = dialogForm;
       editApi(currentRow.value.hhg_id, {
         hhg_pfmb,
         hhg_jxsz,
         hhg_zjsz: hhg_zjsz.join(","),
-        hhg_zczj: hhg_zjsz.join(","),
+        hhg_zczj: hhg_zczj.join(","),
       }).then(() => {
         closeDialogForm();
       });
@@ -484,7 +484,6 @@ export default defineComponent({
     function closeDialogForm() {
       handleQuery().then(() => {
         dialogFormVisible.value = false;
-
       });
     }
 
@@ -554,7 +553,7 @@ export default defineComponent({
       hp_cate,
       hp_attrib,
       switchCate,
-      pfxz
+      pfxz,
       // markAprove,
     };
   },
@@ -675,10 +674,9 @@ export default defineComponent({
     }
   }
   td {
-   text-align: left;
-   font-size: 13px;
+    text-align: left;
+    font-size: 13px;
     color: #a0a0a0;
   }
 }
-
 </style>