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