未符合项上传
This commit is contained in:
@@ -312,8 +312,7 @@ export default {
|
||||
} else {
|
||||
this.dataList = [listJSON]
|
||||
}
|
||||
this.newDataList = []
|
||||
this.dataList.forEach(item => {
|
||||
this.dataList.forEach(item => {
|
||||
if (item.fileText.length !== 0) {
|
||||
item.fileText.forEach(item1 => {
|
||||
this.fileTextList.push({
|
||||
@@ -340,12 +339,7 @@ export default {
|
||||
id: res.data.attId,
|
||||
name: res.data.standName
|
||||
})
|
||||
this.newDataList.forEach(item =>{
|
||||
this.fileListData.fileText.push({
|
||||
id: item.id,
|
||||
name: item.name
|
||||
})
|
||||
})
|
||||
this.fileListData.fileText = this.newDataList
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: res.message,
|
||||
|
||||
@@ -107,15 +107,9 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="responsibleUnit" label="责任部门" align="center"/>
|
||||
<el-table-column prop="dutyPeople" label="负责人" align="center"/>
|
||||
<el-table-column prop="fileText" label="佐证材料" align="center" show-overflow-tooltip>
|
||||
<el-table-column prop="fileText" label="佐证材料" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-upload
|
||||
:action="''"
|
||||
name="file"
|
||||
:file-list="fileTextList"
|
||||
:on-preview="handleOnPreview"
|
||||
>
|
||||
</el-upload>
|
||||
<el-button type="primary" size="small" @click="queryFile(scope.row)">查看</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -212,6 +206,15 @@
|
||||
submitBTNText="同意"
|
||||
>
|
||||
</ProcessFooter>
|
||||
<el-dialog width='400px' :visible.sync="fileMadel" title="上传文件">
|
||||
<el-upload
|
||||
:action="''"
|
||||
name="file"
|
||||
:file-list="fileTextList"
|
||||
:on-preview="handleOnPreview"
|
||||
>
|
||||
</el-upload>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -226,6 +229,7 @@ export default {
|
||||
name: "wfhxzgStep5",
|
||||
data() {
|
||||
return {
|
||||
fileMadel: false,
|
||||
detailData: [],
|
||||
loading: false,
|
||||
commentText: '',
|
||||
@@ -271,6 +275,10 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
queryFile(row) {
|
||||
this.fileTextList = row.fileText
|
||||
this.fileMadel = true
|
||||
},
|
||||
processTable() {
|
||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||
prcNum: this.$route.query.prcNum,
|
||||
@@ -297,14 +305,14 @@ export default {
|
||||
getFormFieldList (item) {
|
||||
this.$nextTick(() => {
|
||||
this.dataList = JSON.parse(JSON.stringify(item)).info.fileDataList
|
||||
this.dataList.forEach(item => {
|
||||
/*this.dataList.forEach(item => {
|
||||
item.fileText.forEach(item1 => {
|
||||
this.fileTextList.push({
|
||||
id: item1.id,
|
||||
name: item1.name
|
||||
})
|
||||
})
|
||||
})
|
||||
})*/
|
||||
})
|
||||
},
|
||||
|
||||
@@ -351,6 +359,9 @@ export default {
|
||||
handleSubmitNo() {
|
||||
if (this.commentText) {
|
||||
var json = {
|
||||
responUserInfo: {
|
||||
info: this.dataList
|
||||
},
|
||||
actionFlag: 1,
|
||||
commentText: this.commentText
|
||||
}
|
||||
@@ -361,6 +372,7 @@ export default {
|
||||
}, {}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success('驳回成功')
|
||||
this.fileTextList = []
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
})
|
||||
@@ -452,6 +464,13 @@ export default {
|
||||
/deep/.el-upload{
|
||||
display: block;
|
||||
}
|
||||
// 上传信息回显多余隐藏
|
||||
/deep/.el-upload-list__item .el-icon-close {
|
||||
font-size: 0;
|
||||
}
|
||||
/deep/.el-upload-list__item .el-icon-close-tip {
|
||||
font-size: 0;
|
||||
}
|
||||
.content-center {
|
||||
padding: 10px 0px 10px 10px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user