修改 汇总(未符合项整改)
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
</ProcessTitle>
|
||||
<div class="content-center">
|
||||
<el-button
|
||||
disabled
|
||||
style="text-align: end"
|
||||
class="common-button-default"
|
||||
size="small"
|
||||
@@ -56,7 +57,7 @@
|
||||
<el-table-column label="选择责任人" prop="dutyPeople" width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
<div style="display: inline;">
|
||||
<el-input
|
||||
<el-input disabled
|
||||
class="input-button"
|
||||
style="width: 60%"
|
||||
@click.native="selectPeople(scope.row)"
|
||||
@@ -69,10 +70,10 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<el-collapse accordion>
|
||||
<el-collapse-item title="审批意见">
|
||||
<el-collapse accordion value="1">
|
||||
<el-collapse-item title="审批意见" name="1">
|
||||
<div style="margin: 10px 0;">
|
||||
<el-input
|
||||
<el-input disabled
|
||||
type="textarea"
|
||||
:rows="3"
|
||||
resize="none"
|
||||
@@ -148,7 +149,7 @@
|
||||
<loading :loading="loading">流程列表加载中</loading>
|
||||
</div>
|
||||
</div>
|
||||
<ProcessFooter
|
||||
<ProcessFooter v-show="false"
|
||||
show-save
|
||||
show-submit
|
||||
show-transfer
|
||||
@@ -161,7 +162,7 @@
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
</ProcessFooter>
|
||||
<Role-tree
|
||||
<Role-tree v-if="false"
|
||||
check-box
|
||||
:is-title="drawerTitle"
|
||||
:is-visible.sync="modalshowflag"
|
||||
@@ -259,45 +260,65 @@ export default {
|
||||
},
|
||||
getFormFieldList (item) {
|
||||
console.log(item)
|
||||
// this.$nextTick(() => {
|
||||
// if (item.passInfo !== 0) {
|
||||
// this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
|
||||
// let fileData = JSON.parse(JSON.stringify(item)).dockUserList
|
||||
// this.dataList = fileData[0].standardInfoList
|
||||
// fileData.forEach( filedata => {
|
||||
// // console.log(filedata)
|
||||
// if (filedata.id === this.userId){
|
||||
// this.dataList = filedata.standardInfoList
|
||||
// }
|
||||
// })
|
||||
// this.standardInfoList = this.dataList
|
||||
// this.textarea = JSON.parse(JSON.stringify(item)).textarea
|
||||
// /* 注释掉的代码 是因为后端已经分配过数据 前端不需要再做处理*/
|
||||
// // for (let i = 0; i<fileData.length; i++) {
|
||||
// // if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
|
||||
// // this.dataList = fileData[0].standardInfoList
|
||||
// // this.standardInfoList = this.dataList
|
||||
// // this.textarea = JSON.parse(JSON.stringify(item)).textarea
|
||||
// // }
|
||||
// // }
|
||||
// } else {
|
||||
// let fileData = JSON.parse(JSON.stringify(item)).dockUserList
|
||||
// this.dataList = fileData[0].standardInfoList
|
||||
// fileData.forEach( filedata => {
|
||||
// // console.log(filedata)
|
||||
// if (filedata.id === this.userId){
|
||||
// this.dataList = filedata.standardInfoList
|
||||
// }
|
||||
// })
|
||||
// this.standardInfoList = this.dataList
|
||||
// // for (let i = 0; i<fileData.length; i++) {
|
||||
// // if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
|
||||
// // this.dataList = fileData[0].standardInfoList
|
||||
// // this.standardInfoList = this.dataList
|
||||
// // // this.textarea = JSON.parse(JSON.stringify(item)).commentText
|
||||
// // }
|
||||
// // }
|
||||
// }
|
||||
// })
|
||||
this.$nextTick(() => {
|
||||
if (item.passInfo !== 0) {
|
||||
this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
|
||||
let fileData = JSON.parse(JSON.stringify(item)).dockUserList
|
||||
this.dataList = fileData[0].standardInfoList
|
||||
fileData.forEach( filedata => {
|
||||
// console.log(filedata)
|
||||
if (filedata.id === this.userId){
|
||||
this.dataList = filedata.standardInfoList
|
||||
}
|
||||
})
|
||||
this.standardInfoList = this.dataList
|
||||
this.textarea = JSON.parse(JSON.stringify(item)).textarea
|
||||
/* 注释掉的代码 是因为后端已经分配过数据 前端不需要再做处理*/
|
||||
// for (let i = 0; i<fileData.length; i++) {
|
||||
// if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
|
||||
// this.dataList = fileData[0].standardInfoList
|
||||
// this.standardInfoList = this.dataList
|
||||
// this.textarea = JSON.parse(JSON.stringify(item)).textarea
|
||||
// }
|
||||
// }
|
||||
if (item.responUserList !== undefined) {
|
||||
let listJSON = JSON.parse(JSON.stringify(item.responUserList))
|
||||
this.dataList = listJSON
|
||||
this.commentInput = JSON.parse(JSON.stringify(item)).commentInput
|
||||
} else {
|
||||
let fileData = JSON.parse(JSON.stringify(item)).dockUserList
|
||||
this.dataList = fileData[0].standardInfoList
|
||||
fileData.forEach( filedata => {
|
||||
// console.log(filedata)
|
||||
if (filedata.id === this.userId){
|
||||
this.dataList = filedata.standardInfoList
|
||||
}
|
||||
})
|
||||
this.standardInfoList = this.dataList
|
||||
// for (let i = 0; i<fileData.length; i++) {
|
||||
// if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
|
||||
// this.dataList = fileData[0].standardInfoList
|
||||
// this.standardInfoList = this.dataList
|
||||
// // this.textarea = JSON.parse(JSON.stringify(item)).commentText
|
||||
// }
|
||||
// }
|
||||
if (item.dockUserList !== undefined) {
|
||||
let listJSON = JSON.parse(JSON.stringify(item.dockUserList))
|
||||
this.dataList = listJSON[0].standardInfoList
|
||||
}else {
|
||||
let listJSONInfo = item.info
|
||||
this.dataList = [listJSONInfo]
|
||||
}
|
||||
}
|
||||
this.dataList.forEach(item => {
|
||||
if (item.fileText.length !== 0) {
|
||||
this.fileTextList = item.fileText
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
// 选择责任人的按钮操作
|
||||
|
||||
Reference in New Issue
Block a user