user5 hai 1 ano
pai
achega
646bca5b0d

+ 1 - 0
src/views/common/UpLoadComponent.vue

@@ -313,6 +313,7 @@
 	  	// this.$refs.upload.handleRemove(this.dataListNew[index])
         await this.dataListNew.splice(index, 1)
 		await this.dataList.splice(index, 1)
+		this.ossService.deleteMsgById(row.id)
 		this.tableKey = Math.random()
       },
       /**

+ 5 - 2
src/views/program/registered/ContactForm.vue

@@ -23,6 +23,7 @@
 <!--        </el-form>-->
 
         <vxe-table
+			:key="tableKey"
           border="inner"
           auto-resize
           resizable
@@ -66,6 +67,7 @@
   export default {
     data () {
       return {
+		  tableKey: '',
         title: '',
         method: '',
         visible: false,
@@ -132,11 +134,12 @@
         this.dataList = []
         this.searchForm.ids.forEach((item) => {
           this.workClientService.findById(item).then((data) => {
-            // console.log(data.data.workClientLinkman)
-			//   console.log(data.workClientLinkman)
+             // console.log(data.data.workClientLinkman)
+			 // console.log(data.workClientLinkman)
             data.workClientLinkman.forEach(i => {
               this.dataList.push(i)
             })
+			  this.tableKey = Math.random()
           })
         })
       },

+ 1 - 0
src/views/program/registered/RegisItemForm.vue

@@ -1333,6 +1333,7 @@
         this.$forceUpdate()
       },
       openContactForm (deputy) {
+      	console.log(1231231231)
         if (deputy === '0') {
           if (this.commonJS.isEmpty(this.inputForm.client) && this.commonJS.isEmpty(this.inputForm.propertyHolder)) {
             this.$message.error('请先填写合同委托方或委托人')

+ 8 - 3
src/views/workClient/WorkClientForm.vue

@@ -223,6 +223,7 @@
         </el-form-item>
 
         <vxe-table
+			:key="tableKey"
           border
           show-overflow
           ref="xTable1"
@@ -266,6 +267,7 @@
         </el-form-item>
 
         <vxe-table
+			:key="tableKey"
           border
           show-overflow
           ref="xTable2"
@@ -355,6 +357,7 @@
       return {
         visable: false,
         gridData: [],
+		tableKey: '',
         radio: 0,
         tableData: [],
         dataList: [],
@@ -655,6 +658,7 @@
               data.workClientLinkman.forEach(i => {
                 this.linkmanInfos.push(i)
               })
+				this.tableKey = Math.random()
               const deputyList = []
               if (data.workClientInfo.deputy !== null && data.workClientInfo.deputy !== undefined && data.workClientInfo.deputy !== '') {
                 data.workClientInfo.deputy.split(',').forEach(item => {
@@ -916,12 +920,13 @@
       async insertEvent (type) {
         if (type === 'bank') {
           await this.$refs.xTable1.insert().then((data) => {
-            this.bankInfos.push(data)
+          	console.log(data)
+            this.bankInfos.push(data.row)
           })
         }
         if (type === 'linkman') {
           await this.$refs.xTable2.insert().then((data) => {
-            this.linkmanInfos.push(data)
+            this.linkmanInfos.push(data.row)
           })
         }
       },
@@ -947,7 +952,7 @@
         let name = this.inputForm.workClientInfo.name
         if (name !== null && name !== undefined && name !== '') {
           await this.workClientService.enterpriseSearchByName(name).then((data) => {
-            this.gridData = data.items
+            this.gridData = data.data.items
           })
         }
         // this.$refs.pops.updatePopper()