禅道bug

This commit is contained in:
宋伟佳
2022-03-22 15:37:44 +08:00
parent 75cddc2fc6
commit f85051ef32
3 changed files with 53 additions and 27 deletions
@@ -48,6 +48,7 @@
tooltip-effect="dark"
style="width: 100%;"
height="100%"
@selection-change="handleSelectionChange"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
row-key="id"
@@ -115,6 +116,7 @@ export default {
return {
tableDataLoading: false,
total: 0,
handleList: [],
selectRoleId: '',
searchForm: {
standardKey: '',
@@ -170,6 +172,10 @@ export default {
// this.resetSearchForm()
this.queryTablePage()
},
handleSelectionChange(data){
this.handleList = data
this.$emit('func',this.handleList)
},
pageChange (page) {
this.pageNo = page
@@ -183,7 +189,6 @@ export default {
resetPageNo() {
this.pageNo = 1
},
// 查询、加载表格
queryTablePage () {
const formData = {
@@ -1734,6 +1734,7 @@
>
<div class="demo-drawer-content">
<related-terms-select
@func="handleChangeList"
ref="relatedTermsSelect"
:fileType="fileType"
:stand-id="standId"
@@ -1787,6 +1788,7 @@ export default {
},
data() {
return {
handleList: [],
CycxOptions: [],
activeNames: ['基础信息', '过程稿件', '实施日期'],
activeState: true,
@@ -2112,6 +2114,9 @@ export default {
props: {},
watch: {},
methods: {
handleChangeList(data){
this.handleList = data
},
child1Func(child1) {
const list = []
if (child1 && child1.length > 1) {
@@ -3647,17 +3652,22 @@ export default {
this.$refs['relatedTermsSelect'].handleCancel()
},
//关联成功的提示
handleRelatedTermsDrawerSubmit() {
this.btnLoading = true
this.$refs['relatedTermsSelect'].handleSubmit(() => {
this.selectSarStandItems()
if(this.handleList.length){
this.$refs['relatedTermsSelect'].handleSubmit(() => {
this.selectSarStandItems()
this.btnLoading = false
this.$message({
message: '关联成功',
type: 'success'
});
})
}else{
this.$message.warning('请至少勾选一条条款进行关联')
this.btnLoading = false
this.$message({
message: '关联成功',
type: 'success'
});
})
}
},
closeRelatedTermsDrawer() {
this.$refs['relatedTermsDrawer'].closeDrawer()
@@ -638,25 +638,36 @@ export default {
} else if(this.dataList.length > 5) {
this.$message.warning('您最多只能选择五条数据')
}else{
this.listForm.dataList = this.dataList;
this.listForm.breakdownList = this.breakdownList
this.listForm.commentText = this.commentText;
const json = JSON.stringify(this.listForm);
this.isSubmit = true;
this.$http.post("lawss/activiti/completeTask", {
taskIds: this.taskIds,
userId: this.userId,
json: json
}, {
_this: this
}, res => {
if (res.success) {
this.$message.success(res.message);
this.$router.push("/processCenter");
let subFlag = true
this.dataList.forEach(item => {
if(!item.unameId){
subFlag = false
return
}
this.isSubmit = false;
}, e => {
});
})
if(subFlag){
this.listForm.dataList = this.dataList;
this.listForm.breakdownList = this.breakdownList
this.listForm.commentText = this.commentText;
const json = JSON.stringify(this.listForm);
this.isSubmit = true;
this.$http.post("lawss/activiti/completeTask", {
taskIds: this.taskIds,
userId: this.userId,
json: json
}, {
_this: this
}, res => {
if (res.success) {
this.$message.success(res.message);
this.$router.push("/processCenter");
}
this.isSubmit = false;
}, e => {
});
}else{
this.$message.warning('请选择项目经理')
}
}
},