Ver Fonte

no message

linwenxin há 7 meses atrás
pai
commit
b6b3a9ff9d

+ 5 - 8
src/views/setting/insuranceAdministration/employerInsurance/InsuranceContractForm.vue

@@ -120,14 +120,11 @@ export default {
     }
   },
   created() {
-    // 获取详情
-    if (this.type !== 0) {
-      policyOrderDetail({
-        id: this.item.id
-      }).then(res => {
-        this.formData = { ...res.data, fileUrl: res.data.fileUrl ? [{ url: res.data.fileUrl }] : [] }
-      })
-    }
+    policyOrderDetail({
+      id: this.item.id
+    }).then(res => {
+      this.formData = { ...res.data, fileUrl: res.data.fileUrl ? [{ url: res.data.fileUrl }] : [] }
+    })
   },
   methods: {
     submit() {

+ 1 - 1
src/views/setting/insuranceAdministration/employerInsurance/index.vue

@@ -8,7 +8,7 @@
     :options-evens-group="optionsEvensGroup"
     :moreParameters="moreParameters"
     :column-parsing="columnParsing"
-    :operation="operation"
+    :operation="operation()"
   >
     <Popu v-if="visible">
       <el-page-header slot="head" content="" @back="handleClose" />