diff --git a/src/views/modules/base/smartExcel/cpts/acceptingPersonel.vue b/src/views/modules/base/smartExcel/cpts/acceptingPersonel.vue index a81ce49d8..7048c59d4 100644 --- a/src/views/modules/base/smartExcel/cpts/acceptingPersonel.vue +++ b/src/views/modules/base/smartExcel/cpts/acceptingPersonel.vue @@ -21,7 +21,7 @@
- {{ tag.name }} + {{ tag.userName?tag.userName:tag.name }}
@@ -97,50 +97,51 @@ export default { created() { }, methods: { handleConfirm() { - let userIdList = this.selfTag.map(item => { - return item.staffId - }) - if (this.showType == "adjust") { - let parms = { - userIdList: userIdList, - taskId: this.taskId, - } - this.updateState() - requestPost('/actual/base/communityOneTablePeriodPublish/changeAssignWorker', parms).then(res => { - if (res.code === 0) { - this.$message.success('转派成功') - return this.$emit('handelPersonel') - } else { - this.$message.error(res.internalMsg) - } - }); - } else if (this.showType == "adjust1") { - let parms = { - userId: userIdList.toString(), - id: this.taskId, - reassignedReason: "" - } - this.updateState() - requestPost('/actual/base/communityOneTablePeriodPublish/reAssignWorker', parms).then(res => { - if (res.code === 0) { - this.$message.success('转派成功') - return this.$emit('handelPersonel') - } else { - this.$message.error(res.internalMsg) - } - }); - } - else { - let parms = { - userIdList: userIdList, - id: this.taskId, - taskIntroduction: this.formData.taskIntroduction + console.log(this.selfTag),"dsfkljdslk"; + // let userIdList = this.selfTag.map(item => { + // return item.staffId + // }) + // if (this.showType == "adjust") { + // let parms = { + // userIdList: userIdList, + // taskId: this.taskId, + // } + // this.updateState() + // requestPost('/actual/base/communityOneTablePeriodPublish/changeAssignWorker', parms).then(res => { + // if (res.code === 0) { + // this.$message.success('转派成功') + // return this.$emit('handelPersonel') + // } else { + // this.$message.error(res.internalMsg) + // } + // }); + // } else if (this.showType == "adjust1") { + // let parms = { + // userId: userIdList.toString(), + // id: this.taskId, + // reassignedReason: "" + // } + // this.updateState() + // requestPost('/actual/base/communityOneTablePeriodPublish/reAssignWorker', parms).then(res => { + // if (res.code === 0) { + // this.$message.success('转派成功') + // return this.$emit('handelPersonel') + // } else { + // this.$message.error(res.internalMsg) + // } + // }); + // } + // else { + // let parms = { + // userIdList: userIdList, + // id: this.taskId, + // taskIntroduction: this.formData.taskIntroduction - } - requestPost('/actual/base/communityOneTablePublish/update', parms).then(res => { - return this.$emit('handelPersonel') - }); - } + // } + // requestPost('/actual/base/communityOneTablePublish/update', parms).then(res => { + // return this.$emit('handelPersonel') + // }); + // } }, async updateState() { @@ -165,7 +166,7 @@ export default { taskNum: 0 } requestGet('/actual/base/communityOneTablePeriodPublish/page', parms).then(res => { - this.tableData = res.data.list + this.selfTag = res.data.list }); }, getLastItem(list, vals, key) { @@ -232,7 +233,6 @@ export default { return this.$message.error('网络错误') }) }, - handleCancel() { this.$emit('handelPersonel') }, 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 c18fb3e20..5cc4dc41c 100644 --- a/src/views/modules/base/smartExcel/cpts/excel-template-confirmation.vue +++ b/src/views/modules/base/smartExcel/cpts/excel-template-confirmation.vue @@ -72,11 +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) + // 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/excel-upload-data.vue b/src/views/modules/base/smartExcel/cpts/excel-upload-data.vue index 7aa9adfec..af546fb02 100644 --- a/src/views/modules/base/smartExcel/cpts/excel-upload-data.vue +++ b/src/views/modules/base/smartExcel/cpts/excel-upload-data.vue @@ -2,26 +2,16 @@
- - - + +
-
- - - - -
(5-30个字符)
-
- - -
-
+
+
{{ item.name }} @@ -32,7 +22,7 @@
-
+
@@ -66,7 +56,7 @@
-
+
@@ -74,10 +64,13 @@
- +
+ 上一步 下一步 +
+