Browse Source

归属部门

dev-xx
马远东 1 year ago
parent
commit
aeed0c05c5
  1. 25
      src/option/supervise/supervise.js
  2. 23
      src/views/supervise/management.vue

25
src/option/supervise/supervise.js

@ -122,6 +122,17 @@ export const managementColumnList = [
sortable: true,
head: false,
},
{
prop: 'examineDeptName',
label: '考核范围',
type: 1,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'createDeptName',
label: '考核归属部门',
@ -133,6 +144,7 @@ export const managementColumnList = [
sortable: true,
head: false,
},
{
prop: 'createTime',
label: '创建时间',
@ -195,7 +207,17 @@ export const IndicatorColumnList = [
sortable: true,
head: false,
},
{
prop: 'examineDeptName',
label: '考核范围',
type: 1,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'assessDeptName',
label: '考核部门',
@ -207,6 +229,7 @@ export const IndicatorColumnList = [
sortable: true,
head: false,
},
{
prop: 'point',
label: '考核分数',

23
src/views/supervise/management.vue

@ -120,13 +120,16 @@
label-width="120px"
ref="ruleFormRef"
>
<el-form-item label="考核部门">
<el-form-item label="归属部门">
<el-input v-model="departmentName" placeholder="暂无归属部门" disabled/>
</el-form-item>
<el-form-item label="考核范围" prop="examineDeptId">
<el-tree-select
v-model="lassificationform.examineDeptId"
:data="AssessmentDepartment"
check-strictly
:render-after-expand="false"
style="width: 240px"
style="width: 100%"
@node-click="handleNodeClick"
ref="treeSelectRef"
/>
@ -273,7 +276,13 @@ const columnList = ref([]);
const drawerShow = ref(false); //
const department = ref(); //
const examineDeptName = ref(''); //
const departmentName =ref('');//
const departmentNameID =ref('');//ID
let my_DATA=JSON.parse(localStorage.getItem('my_data'))
departmentName.value = my_DATA.departmentName//
departmentNameID.value = my_DATA.department//ID
console.log(departmentName.value,'归属名称');
console.log(departmentNameID.value,'归属名称ID');
//
//
const loadChildren = (targetList, parentId, indicatorValue) => {
@ -374,7 +383,6 @@ const handleNodeClick = (data, node, component) => {
/** 必填 */
const rules = ref({
/** 发站仓名称 */
classificationoptionsvalue: [
{
required: true,
@ -389,6 +397,13 @@ const rules = ref({
trigger: ['change', 'blur'],
},
],
examineDeptId:[
{
required: true,
message: '请选择指考核范围',
trigger: ['change', 'blur'],
},
]
});
const details = reactive({
/** 弹窗 */

Loading…
Cancel
Save