|
|
|
@ -34,6 +34,34 @@
|
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="考核范围"> |
|
|
|
|
<el-tree-select |
|
|
|
|
v-model="queryTop.examineDeptName" |
|
|
|
|
:data="AssessmentDepartment" |
|
|
|
|
check-strictly |
|
|
|
|
:render-after-expand="false" |
|
|
|
|
style="width: 240px" |
|
|
|
|
@node-click="BelongsearcheNodeClick" |
|
|
|
|
clearable |
|
|
|
|
@change="Belongingdepartment" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="归属部门"> |
|
|
|
|
<el-tree-select |
|
|
|
|
v-model="queryTop.createDeptName" |
|
|
|
|
:data="AssessmentDepartment" |
|
|
|
|
check-strictly |
|
|
|
|
:render-after-expand="false" |
|
|
|
|
style="width: 240px" |
|
|
|
|
@node-click="BelongsearcheNodeClickFn" |
|
|
|
|
clearable |
|
|
|
|
@change="BelongingdepartmentFn" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item class="el-btn"> |
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="searchChange">搜 索</el-button> |
|
|
|
|
</el-form-item> |
|
|
|
@ -494,6 +522,53 @@ const Indicatortype = () => {
|
|
|
|
|
query.value.pid = String(queryTop.value.classificationoptionsvalue); |
|
|
|
|
onLoad(query.value); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const BelongsearcheNodeClick = data => { |
|
|
|
|
department.value = data; //存储当前点击的考核部门 |
|
|
|
|
if (data.hasChildren) { |
|
|
|
|
classification(data.id, data.value); |
|
|
|
|
} |
|
|
|
|
query.value.examineDeptName = data.label; |
|
|
|
|
onLoad(query.value); |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 归属部门查询 |
|
|
|
|
const Belongingdepartment = () => { |
|
|
|
|
console.log(queryTop.value.examineDeptName,'queryTop.value.createDeptName'); |
|
|
|
|
if (!queryTop.value.examineDeptName){ |
|
|
|
|
query.value.examineDeptName = null; |
|
|
|
|
onLoad(query.value); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const BelongsearcheNodeClickFn = data => { |
|
|
|
|
department.value = data; //存储当前点击的考核部门 |
|
|
|
|
if (data.hasChildren) { |
|
|
|
|
classification(data.id, data.value); |
|
|
|
|
} |
|
|
|
|
query.value.createDeptName = data.label; |
|
|
|
|
onLoad(query.value); |
|
|
|
|
console.log(data); |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const BelongingdepartmentFn = () => { |
|
|
|
|
if (!queryTop.value.createDeptName) { |
|
|
|
|
query.value.createDeptName = null; |
|
|
|
|
onLoad(query.value); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 分类编辑 |
|
|
|
|
const ClassificationDditing = val => { |
|
|
|
|
|
|
|
|
|