cd41322a by 蔡俊立

退回

1 parent 9185df97
......@@ -6,7 +6,7 @@
<ul style="margin-bottom:15px">
<li v-for="(item,index) in dataList" class="listDetail" :key="index">
<p class="icon">
<el-radio v-model="radio"></el-radio>
<el-radio v-model="selectActivity" :label="item.activityId" @change="changeSelectItem(item)"></el-radio>
</p>
<p>{{item.activityName}}</p>
<p v-for="(child,childIndex) in item.userInfos" :key="childIndex">{{child.name}}</p>
......@@ -31,8 +31,10 @@ export default {
},
data () {
return {
selectActivity: '',
dataList: [],
outstepopinion: ''
outstepopinion: '',
selectItem: {}
}
},
created () {
......@@ -40,12 +42,31 @@ export default {
},
methods: {
childFn () {
console.log(1111);
this.selectItem.outstepopinion = this.outstepopinion;
sendBackTask({
bsmSlsq: this.formData.bsmSlsq,
backNodeList: [this.selectItem]
}).then(res => {
this.$message.success('退回成功')
setTimeout(() => {
window.opener = null;
window.open("about:blank", "_self");
window.close();
this.$emit('input', false)
}, 1000);
})
},
changeSelectItem(item){
this.selectItem = item
},
getBackNode () {
getTaskBackNode(this.formData).then(res => {
if (res.code == 200) {
this.dataList = res.result
if(res.result){
this.selectActivity = res.result[0].activityId
this.selectItem = res.result[0]
}
}
})
}
......@@ -81,4 +102,7 @@ export default {
min-height: 90px !important;
}
}
/deep/.el-radio .el-radio__label {
display: none;
}
</style>
......
......@@ -318,7 +318,7 @@ export default {
this.$popup({
title: "退回",
editItem: "workflow/components/th",
height: "330px",
height: "400px",
width: '30%',
formData: {
bsmSlsq: this.bsmSlsq,
......