Browse Source

no message

linwenxin 6 months ago
parent
commit
43ee56bd24

+ 5 - 2
src/views/setting/networkSigning/settlementRelationshipAllocation/index.vue

@@ -81,7 +81,8 @@ export default {
       formInline: {
         websitId: '',
         websitName: ''
-      }
+      },
+      items: []
     }
   },
   computed: {
@@ -321,6 +322,7 @@ export default {
       this.$data.formData = this.$options.data().formData
       this.formType = 0
       this.formBool = false
+      this.items = []
     },
     formConfirm() {
       this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
@@ -342,6 +344,7 @@ export default {
                 websitId: row.websitId
               }).then(res => {
                 this.formData = res.data
+                this.items = this.formData.items.map(item => ({ ...item }))
                 this.$nextTick(() => {
                   this.formType = 1
                   this.formBool = true
@@ -365,7 +368,7 @@ export default {
         settleRelaConfigQuerySubWebsit({ pageNum: pageIndex, pageSize: pageSize, ...this.formInline }).then(res => {
           resolve({
             total: res.data.total,
-            data: res.data.records
+            data: [...this.items, ...res.data.records]
           })
         })
       })