diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue
index 574efe6ee..2fbe3a883 100644
--- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue
@@ -1426,13 +1426,58 @@
:before-upload="beginImportFile"
:on-success="importFileSuccess"
:on-remove="removeOneFile"
- :show-file-list="true"
+ :show-file-list="false"
>
+
+
+
+
+
{
+ const fileId = file.id || file.response.data.id
+ const itemId = item.id || item.response.data.id
+ if (fileId !== itemId) {
+ fileList.push(item)
+ }
+ })
+ this.fileList = fileList
+ this.removeOneFile(file, fileList)
+ },
+ handleModifyName (file) {
+ this.modifyFile.fileName = file.name
+ this.modifyFile.fileId = file.id || file.response.data.id
+ this.openModifyFileNameDialog = true
+ },
+ handleModifyNameSubmite () {
+ this.modifyFileNameLoading = true
+ this.$http.get('att/attFile/updateFileName', this.modifyFile, {
+ _this: this
+ }, res => {
+ if(res.ok) {
+ this.modifyFileNameLoading = false
+ this.openModifyFileNameDialog = false
+ this.fileList.forEach(item => {
+ const id = item.id || item.response.data.id
+ if(id === this.modifyFile.fileId) {
+ item.name = this.modifyFile.fileName
+ }
+ })
+ this.removeOneFile('_', this.fileList)
+ }
+ }, e => {
+ this.modifyFileNameLoading = false
+ })
+ },
// 新增
productAdd () {
this.productModal = true
@@ -3609,7 +3697,7 @@ export default {
// }
// this.form.zbjbdName += response.data.name+',';
// }
-
+ this.fileList = fileList
switch (this.fileType) {
case 'fbgbjbd':
this.FBGBJBDFileList = fileList;
@@ -4419,4 +4507,12 @@ export default {
height: 8%;
}
}
+.el-upload-list__item .el-icon-edit{
+ position: absolute;
+ top: 5px;
+ right: 25px;
+ cursor: pointer;
+ opacity: .75;
+ color: #606266;
+}
diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue
index 207ef32ff..8a7af236f 100644
--- a/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue
@@ -1562,13 +1562,58 @@
:on-success="importFileSuccess"
:on-change="fileChange"
:on-remove="removeOneFile"
- :show-file-list="true"
+ :show-file-list="false"
>
+
+
+
+
+
{
+ const fileId = file.id || file.response.data.id
+ const itemId = item.id || item.response.data.id
+ if (fileId !== itemId) {
+ fileList.push(item)
+ }
+ })
+ this.fileList = fileList
+ this.removeOneFile(file, fileList)
+ },
+ handleModifyName (file) {
+ this.modifyFile.fileName = file.name
+ this.modifyFile.fileId = file.id || file.response.data.id
+ this.openModifyFileNameDialog = true
+ },
+ handleModifyNameSubmite () {
+ this.modifyFileNameLoading = true
+ this.$http.get('att/attFile/updateFileName', this.modifyFile, {
+ _this: this
+ }, res => {
+ if(res.ok) {
+ this.modifyFileNameLoading = false
+ this.openModifyFileNameDialog = false
+ this.fileList.forEach(item => {
+ const id = item.id || item.response.data.id
+ if(id === this.modifyFile.fileId) {
+ item.name = this.modifyFile.fileName
+ }
+ })
+ this.removeOneFile('_', this.fileList)
+ }
+ }, e => {
+ this.modifyFileNameLoading = false
+ })
+ },
// 限制上传文件个数
handleExceed (files, fileList) {
this.$message.warning(`当前限制选择 8 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`)
@@ -2581,6 +2669,7 @@ export default {
// this.form.caName += response.data.name+',';
// }
+ this.fileList = fileList
switch (this.fileType) {
case 'fbgbjbd':
this.FBGBJBDFileList = fileList;
@@ -3348,4 +3437,12 @@ export default {
}
}
}
+.el-upload-list__item .el-icon-edit{
+ position: absolute;
+ top: 5px;
+ right: 25px;
+ cursor: pointer;
+ opacity: .75;
+ color: #606266;
+}
diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step13.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step13.vue
index 0ba3f9c64..d7d823b21 100644
--- a/src/pages/processCenter/pages/creatProcess/qbrk/step13.vue
+++ b/src/pages/processCenter/pages/creatProcess/qbrk/step13.vue
@@ -187,13 +187,58 @@
:on-success="importFileSuccess"
:on-preview="handleFilePreview"
:on-remove="removeOneFile"
- :show-file-list="true"
+ :show-file-list="false"
>
+
+
+
+
+
{
+ const fileId = file.id || file.response.data.id
+ const itemId = item.id || item.response.data.id
+ if (fileId !== itemId) {
+ fileList.push(item)
+ }
+ })
+ this.fileList = fileList
+ this.removeOneFile(file, fileList)
+ },
+ handleModifyName (file) {
+ this.modifyFile.fileName = file.name
+ this.modifyFile.fileId = file.id || file.response.data.id
+ this.openModifyFileNameDialog = true
+ },
+ handleModifyNameSubmite () {
+ this.modifyFileNameLoading = true
+ this.$http.get('att/attFile/updateFileName', this.modifyFile, {
+ _this: this
+ }, res => {
+ if(res.ok) {
+ this.modifyFileNameLoading = false
+ this.openModifyFileNameDialog = false
+ this.fileList.forEach(item => {
+ const id = item.id || item.response.data.id
+ if(id === this.modifyFile.fileId) {
+ item.name = this.modifyFile.fileName
+ }
+ })
+ this.removeOneFile('_', this.fileList)
+ }
+ }, e => {
+ this.modifyFileNameLoading = false
+ })
+ },
reveseStatusChange (val) {
if(this.form.reviseStatus === '1') {
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus', { reviseStatus: 'buss1_' + this.form.reviseStatus, standSort: this.form.standSort, taskId: this.taskIds }, {
@@ -2285,6 +2373,7 @@ export default {
const fileObj = {}
fileObj.id = file.response.data.id
fileObj.name = file.response.data.name
+ this.fileList = fileList
switch (this.fileType) {
case 'FBGBUSS':
this.FBGBUSSFileList = this.FBGBUSSFileList.filter( item => item.response === undefined);
@@ -3240,4 +3329,12 @@ export default {
}
}
}
+ .el-upload-list__item .el-icon-edit{
+ position: absolute;
+ top: 5px;
+ right: 25px;
+ cursor: pointer;
+ opacity: .75;
+ color: #606266;
+ }