diff --git a/src/views/modules/base/smartExcel/cpts/acceptingPersonel.vue b/src/views/modules/base/smartExcel/cpts/acceptingPersonel.vue index ad90fa662..6c334fd6f 100644 --- a/src/views/modules/base/smartExcel/cpts/acceptingPersonel.vue +++ b/src/views/modules/base/smartExcel/cpts/acceptingPersonel.vue @@ -96,7 +96,7 @@ export default { }, created() { }, methods: { - handleConfirm() { + async handleConfirm() { console.log(this.selfTag),"dsfkljdslk"; let userIdList = this.selfTag.map(item => { return item.staffId @@ -106,8 +106,8 @@ export default { userIdList: userIdList, taskId: this.taskId, } - this.updateState() - requestPost('/actual/base/communityOneTablePeriodPublish/changeAssignWorker', parms).then(res => { + + await requestPost('/actual/base/communityOneTablePeriodPublish/changeAssignWorker', parms).then(res => { if (res.code === 0) { this.$message.success('转派成功') return this.$emit('handelPersonel') @@ -115,14 +115,15 @@ export default { this.$message.error(res.internalMsg) } }); + this.updateState() } else if (this.showType == "adjust1") { let parms = { userId: userIdList.toString(), id: this.taskId, reassignedReason: "" } - this.updateState() - requestPost('/actual/base/communityOneTablePeriodPublish/reAssignWorker', parms).then(res => { + + await requestPost('/actual/base/communityOneTablePeriodPublish/reAssignWorker', parms).then(res => { if (res.code === 0) { this.$message.success('转派成功') return this.$emit('handelPersonel') @@ -130,6 +131,7 @@ export default { this.$message.error(res.internalMsg) } }); + this.updateState() } else { let parms = { @@ -145,8 +147,21 @@ export default { }, async updateState() { - const url = '/actual/base/communityOneTablePeriodPublish/update' - console.log(this.formDatas); + if(this.showType=="adjust1"){ + const url = '/actual/base/communityOneTablePeriodPublish/update' + console.log(this.formDatas,"sdfkljslkdjf"); + const { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction } = this.formDatas; + const parm = { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction } + parm.taskState = 'reassigned'; + const { code, msg } = await requestPost(url, parm) + if (code === 0) { + // this.$message.success('转派成功') + } else { + console.log(msg); + } + }else{ + const url = '/actual/base/communityOneTablePublish/update' + console.log(this.formDatas,"sdfkljslkdjf"); const { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction } = this.formDatas; const parm = { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction } parm.taskState = 'reassigned'; @@ -155,7 +170,9 @@ export default { // this.$message.success('转派成功') } else { console.log(msg); + } } + }, getPeriodPublish() { diff --git a/src/views/modules/base/smartExcel/cpts/excel-info.vue b/src/views/modules/base/smartExcel/cpts/excel-info.vue index dcad6f170..de6720e4c 100644 --- a/src/views/modules/base/smartExcel/cpts/excel-info.vue +++ b/src/views/modules/base/smartExcel/cpts/excel-info.vue @@ -134,6 +134,7 @@ export default { }, handelPersonel() { this.showPersonel = false; + this.getDetail() }, oncClickPersonel(){ this.showType="adjust" diff --git a/src/views/modules/base/smartExcel/cpts/excel-template-confirmation.vue b/src/views/modules/base/smartExcel/cpts/excel-template-confirmation.vue index 5cc4dc41c..9ea632b2f 100644 --- a/src/views/modules/base/smartExcel/cpts/excel-template-confirmation.vue +++ b/src/views/modules/base/smartExcel/cpts/excel-template-confirmation.vue @@ -72,12 +72,12 @@ export default { }, mounted() { console.log(this.fileUrl, 'fileUrl===');//测试用'http://localhost:9001/epmet-work-pc/test1.xlsx' - // const newUrl = this.fileUrl.replace( - // /^https:\/\/elink-esua-epdc\.oss-cn-qingdao\.aliyuncs\.com/, - // `${location.origin}` - // ); - // this.urlToFile(newUrl,this.fileName) - this.urlToFile('http://localhost:9001/epmet-work-pc/test1.xlsx',this.fileName) + const newUrl = this.fileUrl.replace( + /^https:\/\/elink-esua-epdc\.oss-cn-qingdao\.aliyuncs\.com/, + `${location.origin}` + ); + this.urlToFile(newUrl,this.fileName) + // this.urlToFile('http://localhost:9001/epmet-work-pc/test1.xlsx',this.fileName) }, props: { diff --git a/src/views/modules/base/smartExcel/cpts/filling-info.vue b/src/views/modules/base/smartExcel/cpts/filling-info.vue index 4d34b142a..518e96b1c 100644 --- a/src/views/modules/base/smartExcel/cpts/filling-info.vue +++ b/src/views/modules/base/smartExcel/cpts/filling-info.vue @@ -45,7 +45,7 @@
{{ formData.userName }}
- 转派其他接收人