瀏覽代碼

【修改】bug

howie 2 年之前
父節點
當前提交
de57da0763

+ 7 - 2
src/views/sales_policy/components/AddCondition.vue

@@ -461,12 +461,17 @@ export default {
       // 页面刷新后该函数会执行 N 次进行判断(N 为表格行数)
       // 如果没有返回值则默认返回false(全部无法选中)
     },
-    async getCommonApi(policyId) {
+    async getCommonApi(policyId,id) {
+      if (id) {
+        this.id = id
+      }
+
+          console.log(555,policyId);
       if (this.id || policyId) {
         if (policyId) {
           this.edit = 'eidt'
         }
-
+        console.log(this.policyId , policyId , this.id);
         const res = await getConditionMaterialDetail({
           id: this.policyId || policyId || this.id
         })

+ 1 - 1
src/views/sales_policy/components/editPolicy.vue

@@ -574,7 +574,7 @@ export default {
     },
     catCond(row) {
       this.cid = row.id
-      this.$refs.cond.getCommonApi()
+      this.$refs.cond.getCommonApi('',row.id)
       this.isCondition = 2
 
       // $refs.cond.getCommonApi(),