瀏覽代碼

no message

linwenxin 5 月之前
父節點
當前提交
b83721256a

+ 2 - 1
src/views/setting/networkSigning/contractManagement/fddContractTemplate/index.vue

@@ -414,11 +414,12 @@ export default {
               }).then(res => {
                 this.formData = {
                   ...res.data,
+                  items: (res.data?.items || [])?.map(item => ({ ...item })),
                   contractTemplatePdf: res.data?.contractTemplatePdf?.[0]?.url
                     ? [{ url: res.data?.contractTemplatePdf?.[0]?.url }]
                     : []
                 }
-                this.itemsList = this.formData.items.map(item => ({ ...item }))
+                this.itemsList = (this.formData?.items || [])?.map(item => ({ ...item }))
                 this.$nextTick(() => {
                   this.formType = 1
                   this.formBool = true

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

@@ -347,8 +347,8 @@ export default {
               settleRelaConfigDetail({
                 websitId: row.websitId
               }).then(res => {
-                this.formData = res.data
-                this.itemsList = this.formData.items.map(item => ({ ...item }))
+                this.formData = { ...res.data, items: (res.data?.items || [])?.map(item => ({ ...item })) }
+                this.itemsList = (this.formData?.items || [])?.map(item => ({ ...item }))
                 this.$nextTick(() => {
                   this.formType = 1
                   this.formBool = true