|
|
|
@ -52,6 +52,21 @@ |
|
|
|
</el-option> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
<!-- <template slot="renwudengji"> |
|
|
|
|
|
|
|
<el-select |
|
|
|
|
|
|
|
v-model="form.renwudengji" |
|
|
|
|
|
|
|
placeholder="请选择任务等级" |
|
|
|
|
|
|
|
@change="gradeChange" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-option |
|
|
|
|
|
|
|
v-for="item in taskLevelList" |
|
|
|
|
|
|
|
:key="item.id" |
|
|
|
|
|
|
|
:label="item.dictValue" |
|
|
|
|
|
|
|
:value="item.id" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
</el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
</template> --> |
|
|
|
<template slot="xitongmingchengshujuku"> |
|
|
|
<template slot="xitongmingchengshujuku"> |
|
|
|
<el-select |
|
|
|
<el-select |
|
|
|
filterable |
|
|
|
filterable |
|
|
|
@ -103,10 +118,15 @@ |
|
|
|
</avue-form> |
|
|
|
</avue-form> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
|
|
<el-card shadow="never" style="margin-top: 20px" v-if="showExamForm"> |
|
|
|
<el-card |
|
|
|
|
|
|
|
shadow="never" |
|
|
|
|
|
|
|
:style="{ marginTop: '20px' }" |
|
|
|
|
|
|
|
v-if="showExamForm && level" |
|
|
|
|
|
|
|
> |
|
|
|
<wf-examine-form |
|
|
|
<wf-examine-form |
|
|
|
ref="examineForm" |
|
|
|
ref="examineForm" |
|
|
|
:process="process" |
|
|
|
:process="process" |
|
|
|
|
|
|
|
:renwudengji="form.renwudengji" |
|
|
|
@user-select="handleUserSelect" |
|
|
|
@user-select="handleUserSelect" |
|
|
|
></wf-examine-form> |
|
|
|
></wf-examine-form> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
@ -152,6 +172,7 @@ import { |
|
|
|
getCompany, |
|
|
|
getCompany, |
|
|
|
getDepts, |
|
|
|
getDepts, |
|
|
|
getTaskParent, |
|
|
|
getTaskParent, |
|
|
|
|
|
|
|
// getTaskLevel, |
|
|
|
getTaskTypeData, |
|
|
|
getTaskTypeData, |
|
|
|
getTaskAndDataBase, |
|
|
|
getTaskAndDataBase, |
|
|
|
getModuleAndDataTable, |
|
|
|
getModuleAndDataTable, |
|
|
|
@ -160,7 +181,7 @@ import WfExamineForm from "./examForm.vue"; |
|
|
|
import WfUserSelect from "./user-select"; |
|
|
|
import WfUserSelect from "./user-select"; |
|
|
|
import exForm from "../../mixins/ex-form"; |
|
|
|
import exForm from "../../mixins/ex-form"; |
|
|
|
import draft from "../../mixins/draft"; |
|
|
|
import draft from "../../mixins/draft"; |
|
|
|
|
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
WfUserSelect, |
|
|
|
WfUserSelect, |
|
|
|
@ -181,10 +202,23 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
|
|
|
|
...mapGetters(["userInfo"]), |
|
|
|
showExamForm() { |
|
|
|
showExamForm() { |
|
|
|
const { hideComment, hideCopy, hideExamine } = this.process; |
|
|
|
const { hideComment, hideCopy, hideExamine } = this.process; |
|
|
|
return !hideComment || !hideCopy || !hideExamine; |
|
|
|
return !hideComment || !hideCopy || !hideExamine; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
level() { |
|
|
|
|
|
|
|
if ( |
|
|
|
|
|
|
|
(this.userInfo.role_name === "运维公司" && |
|
|
|
|
|
|
|
this.form.renwudengji === "1625035000825049090") || |
|
|
|
|
|
|
|
(this.userInfo.role_name === "技术员" && |
|
|
|
|
|
|
|
this.form.renwudengji === "1624973130579636225") |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
@ -197,6 +231,7 @@ export default { |
|
|
|
deptList: [], //部门 |
|
|
|
deptList: [], //部门 |
|
|
|
taskParentList: [], //任务父类 |
|
|
|
taskParentList: [], //任务父类 |
|
|
|
taskAndDataBaseList: [], //数据库 |
|
|
|
taskAndDataBaseList: [], //数据库 |
|
|
|
|
|
|
|
// taskLevelList: [] // 任务等级 |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
@ -209,6 +244,9 @@ export default { |
|
|
|
this.companyChange(id); |
|
|
|
this.companyChange(id); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
// getTaskLevel().then(res=> { |
|
|
|
|
|
|
|
// this.taskLevelList = res.data.data |
|
|
|
|
|
|
|
// }) |
|
|
|
getTaskParent().then((res) => { |
|
|
|
getTaskParent().then((res) => { |
|
|
|
this.taskParentList = res.data.data; |
|
|
|
this.taskParentList = res.data.data; |
|
|
|
if (this.$route.query.parent) { |
|
|
|
if (this.$route.query.parent) { |
|
|
|
@ -347,6 +385,10 @@ export default { |
|
|
|
this.waiting = false; |
|
|
|
this.waiting = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// 任务等级 |
|
|
|
|
|
|
|
gradeChange() { |
|
|
|
|
|
|
|
console.log(this.examineForm); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|