Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
:value="item.id">
|
:value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-select v-if="wbbzform.associationName !== '' && wbbzform.committee !== ''" v-model="wbbzform.workingGroup" placeholder="请选择工作组">
|
<el-select v-if="wbbzform.associationName !== '' && wbbzform.committee !== ''" @change="comityChangeTwo" v-model="wbbzform.workingGroup" placeholder="请选择工作组">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in comityOptionsOneThree"
|
v-for="item in comityOptionsOneThree"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
@@ -127,7 +127,7 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input v-model="scope.row.workPeopleId" style="display: none;" readonly/>
|
<el-input v-model="scope.row.workPeopleId" style="display: none;" readonly/>
|
||||||
<el-input v-model="scope.row.workPeople" placeholder="请选择分发责任人"
|
<el-input v-model="scope.row.workPeople" placeholder="请选择分发责任人"
|
||||||
@click.native="choiceZRRS(scope.row, scope.$index)" readonly/>
|
@click.native="choiceZRRS(scope.row, scope.$index)" readonly/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -172,7 +172,7 @@
|
|||||||
width="300"
|
width="300"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input v-model="scope.row.accounts" placeholder="请输入账户"></el-input>
|
<el-input v-model="scope.row.accounts" placeholder="请输入账户"></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -205,7 +205,6 @@
|
|||||||
row-key="id">
|
row-key="id">
|
||||||
<el-table-column type="selection" width="55" align="center"/>
|
<el-table-column type="selection" width="55" align="center"/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="contactPerson"
|
|
||||||
label="协会联络人"
|
label="协会联络人"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -217,7 +216,6 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="telephone"
|
|
||||||
label="电话"
|
label="电话"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -229,7 +227,6 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="mailbox"
|
|
||||||
label="邮箱"
|
label="邮箱"
|
||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -369,6 +366,7 @@ export default {
|
|||||||
recordLoading: false,
|
recordLoading: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
modalshowflag: false,
|
modalshowflag: false,
|
||||||
|
fileIds: "",
|
||||||
comityOptionsOne: [], //工作组数据
|
comityOptionsOne: [], //工作组数据
|
||||||
comityOptionsTwo: [], //分标委数据
|
comityOptionsTwo: [], //分标委数据
|
||||||
comityOptionsOneThree: [], //工作组数据
|
comityOptionsOneThree: [], //工作组数据
|
||||||
@@ -441,6 +439,7 @@ export default {
|
|||||||
bpnId: this.$route.query.bpnId
|
bpnId: this.$route.query.bpnId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
let mes = JSON.parse(res.mes);
|
let mes = JSON.parse(res.mes);
|
||||||
|
console.log(mes);
|
||||||
this.wbbzform = mes.form
|
this.wbbzform = mes.form
|
||||||
this.associationData = mes.form.associationData
|
this.associationData = mes.form.associationData
|
||||||
this.getFileInfo();
|
this.getFileInfo();
|
||||||
@@ -471,7 +470,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
res.data.map(item => {
|
res.data.map(item => {
|
||||||
// 赋值要回显的上传文件内容
|
// 赋值要回显的上传文件内容
|
||||||
this.fileList.push({
|
this.fileInfoList.push({
|
||||||
name: item.oldFileName,
|
name: item.oldFileName,
|
||||||
uid: item.uid,
|
uid: item.uid,
|
||||||
status: item.status,
|
status: item.status,
|
||||||
@@ -486,32 +485,62 @@ export default {
|
|||||||
* @description: 动态表单读取
|
* @description: 动态表单读取
|
||||||
*/
|
*/
|
||||||
getFormFieldList(item) {
|
getFormFieldList(item) {
|
||||||
|
console.log(item);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if(!item.directorUser){
|
if(!item.directorUser){
|
||||||
this.wbbzform = JSON.parse(JSON.stringify(item));
|
this.wbbzform = JSON.parse(JSON.stringify(item.form));
|
||||||
this.associationData = item.associationData
|
this.wbbzform.comityOptionsOne.forEach(item =>{
|
||||||
this.participantsData = item.participantsData
|
if(this.wbbzform.associationName === item.id){
|
||||||
|
this.wbbzform.associationName = item.name
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.wbbzform.comityOptionsTwo.forEach(item =>{
|
||||||
|
if(this.wbbzform.committee === item.id){
|
||||||
|
this.wbbzform.committee = item.name
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.wbbzform.comityOptionsOneThree.forEach(item =>{
|
||||||
|
if(this.wbbzform.workingGroup === item.id){
|
||||||
|
this.wbbzform.workingGroup = item.name
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if (item.form.associationData) {
|
||||||
|
this.associationData = item.form.associationData
|
||||||
|
}
|
||||||
|
if (item.form.participantsData) {
|
||||||
|
this.participantsData = item.form.participantsData
|
||||||
|
}
|
||||||
|
item.form.fileName.forEach(fileId => {
|
||||||
|
this.fileIds = fileId.id
|
||||||
|
this.getFileInfo();
|
||||||
|
})
|
||||||
}else{
|
}else{
|
||||||
|
this.wbbzform = JSON.parse(JSON.stringify(item));
|
||||||
|
if (item.associationData) {
|
||||||
|
this.associationData = item.associationData
|
||||||
|
}
|
||||||
|
if (item.participantsData) {
|
||||||
|
this.participantsData = item.participantsData
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
choiceZRRS(row, index) {
|
choiceZRRS(row, index) {
|
||||||
this.selectedId = index;
|
this.selectedId = index;
|
||||||
this.drawerTitle = "选择责任人";
|
this.drawerTitle = "选择责任人";
|
||||||
this.nodeList = [];
|
this.nodeList = [];
|
||||||
this.zrIndex = index;
|
this.zrIndex = index;
|
||||||
this.nodeList.push(row);
|
this.nodeList.push(row);
|
||||||
this.modalshowflag = true;
|
this.modalshowflag = true;
|
||||||
},
|
},
|
||||||
checkedRole(data){
|
checkedRole(data){
|
||||||
if(this.participantsData.length > 1){
|
if(this.participantsData.length > 1){
|
||||||
let parList = data
|
let parList = data
|
||||||
this.participantsData.forEach(item =>{
|
this.participantsData.forEach(item =>{
|
||||||
parList.forEach(items => {
|
parList.forEach(items => {
|
||||||
if(items.name === item.workPeople){
|
if(items.name === item.workPeople){
|
||||||
this.$message.warning('请勿重复添加参与人')
|
this.$message.warning('请勿重复添加参与人')
|
||||||
return
|
return
|
||||||
}else{
|
}else{
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -534,7 +563,7 @@ export default {
|
|||||||
//不备案
|
//不备案
|
||||||
handleRecord(){
|
handleRecord(){
|
||||||
this.recordLoading = true
|
this.recordLoading = true
|
||||||
this.dlFlag = '0',
|
this.dlFlag = '0'
|
||||||
this.wbbzform.commentText = this.commentText;
|
this.wbbzform.commentText = this.commentText;
|
||||||
this.wbbzform.participantsData = this.participantsData
|
this.wbbzform.participantsData = this.participantsData
|
||||||
this.wbbzform.associationData = this.associationData
|
this.wbbzform.associationData = this.associationData
|
||||||
@@ -559,11 +588,17 @@ export default {
|
|||||||
handleSave() {
|
handleSave() {
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
this.wbbzform.fileName = this.fileInfoList
|
this.wbbzform.fileName = this.fileInfoList
|
||||||
|
this.wbbzform.commentText = this.commentText;
|
||||||
|
this.wbbzform.participantsData = this.participantsData
|
||||||
|
this.wbbzform.associationData = this.associationData
|
||||||
|
this.wbbzform.comityOptionsOne = this.comityOptionsOne
|
||||||
|
this.wbbzform.comityOptionsTwo = this.comityOptionsTwo
|
||||||
|
this.wbbzform.comityOptionsOneThree = this.comityOptionsOneThree
|
||||||
let _formData = new FormData()
|
let _formData = new FormData()
|
||||||
_formData.append('taskIds', this.taskIds)
|
_formData.append('taskIds', this.taskIds)
|
||||||
_formData.append('json', JSON.stringify({
|
_formData.append('json', JSON.stringify({
|
||||||
roleList: this.roleForm,
|
roleList: this.roleForm,
|
||||||
wbbzform: this.wbbzform,
|
form: this.wbbzform,
|
||||||
}))
|
}))
|
||||||
saveTaskForPub(_formData).then(res => {
|
saveTaskForPub(_formData).then(res => {
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
@@ -646,11 +681,12 @@ export default {
|
|||||||
},
|
},
|
||||||
//添加协会信息
|
//添加协会信息
|
||||||
addSociety(){
|
addSociety(){
|
||||||
var list = {
|
let list = {
|
||||||
contactPerson: this.contactPerson,
|
contactPerson: this.contactPerson,
|
||||||
telephone: this.telephone,
|
telephone: this.telephone,
|
||||||
mailbox: this.mailbox,
|
mailbox: this.mailbox,
|
||||||
}
|
}
|
||||||
|
console.log(this.associationData);
|
||||||
this.associationData.push(list)
|
this.associationData.push(list)
|
||||||
},
|
},
|
||||||
//批量删除协会信息
|
//批量删除协会信息
|
||||||
@@ -708,6 +744,7 @@ export default {
|
|||||||
this.comityOptionsOne.forEach(item => {
|
this.comityOptionsOne.forEach(item => {
|
||||||
if (item.children !== null && item.id === this.wbbzform.associationName) {
|
if (item.children !== null && item.id === this.wbbzform.associationName) {
|
||||||
this.comityOptionsTwo = item.children
|
this.comityOptionsTwo = item.children
|
||||||
|
this.$forceUpdate()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -717,9 +754,13 @@ export default {
|
|||||||
this.comityOptionsTwo.forEach(item => {
|
this.comityOptionsTwo.forEach(item => {
|
||||||
if (item.children !== null && item.id === this.wbbzform.committee) {
|
if (item.children !== null && item.id === this.wbbzform.committee) {
|
||||||
this.comityOptionsOneThree = item.children
|
this.comityOptionsOneThree = item.children
|
||||||
|
this.$forceUpdate()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
comityChangeTwo(){
|
||||||
|
this.$forceUpdate()
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
/* 获取标准法规工作组数据 */
|
/* 获取标准法规工作组数据 */
|
||||||
|
|||||||
Reference in New Issue
Block a user