yangzhou-cyber пре 3 година
родитељ
комит
5b44b2fc81
2 измењених фајлова са 123 додато и 100 уклоњено
  1. +10
    -3
      src/views/second/segmentation/contentDetail.vue
  2. +113
    -97
      src/views/second/taskSummary/basicTable.vue

+ 10
- 3
src/views/second/segmentation/contentDetail.vue Прегледај датотеку

@@ -37,11 +37,15 @@
<el-row type="flex">
<el-col :span="5" class="grey"><span>第一牵头部门</span></el-col>
<el-col :span="7"
><span><pre>{{ data.leaderDeptList | formatList }}</pre></span></el-col
><span>
<pre>{{ data.leaderDeptList | formatList }}</pre>
</span></el-col
>
<el-col :span="5" class="grey"><span>责任领导</span></el-col>
<el-col :span="7"
><span><pre>{{ data.leaderPrincipalList | formatList }}</pre></span></el-col
><span>
<pre>{{ data.leaderPrincipalList | formatList }}</pre>
</span></el-col
>
</el-row>
<el-row type="flex">
@@ -159,6 +163,7 @@
<el-table-column label="责任领导" align="center" width="180">
<template slot-scope="{ row }">
<treeselect
:disable="true"
v-if="row.edit || row.add"
v-model="form.leaderPrincipal"
:options="principalList"
@@ -212,6 +217,7 @@
<el-table-column label="责任领导" align="center" width="180">
<template slot-scope="{ row }">
<treeselect
:disabled="true"
v-if="row.edit || row.add"
:multiple="true"
v-model="form.leaderPrincipal"
@@ -268,6 +274,7 @@
<treeselect
v-if="row.edit || row.add"
:multiple="true"
:disabled="true"
v-model="form.cooperatePrincipal"
:options="principalList"
placeholder="请选择配合部门责任领导"
@@ -425,7 +432,7 @@ export default {
},
change(type, index) {
if (type == "add") {
this.form={};
this.form = {};
let data = this.data;
data[map[this.type]].push({ add: true });
}

+ 113
- 97
src/views/second/taskSummary/basicTable.vue Прегледај датотеку

@@ -125,7 +125,7 @@
<el-dialog
title="编辑考核内容"
:visible.sync="showEdit"
width="650px"
width="675px"
custom-class="ele-dialog-form"
:lock-scroll="false"
:destroy-on-close="true"
@@ -189,104 +189,112 @@
</el-row>
<div class="leader">
<span class="el-icon-circle-plus-outline add"></span>
<el-row>
<el-col :span="4" class="title"> 其他牵头部门: </el-col>
<el-col :span="7">
<treeselect
v-model="form.leaderDept"
:flat="true"
:options="formatDep"
placeholder="请选择其他牵头部门"
:defaultExpandLevel="2"
:normalizer="
(d) => {
return {
id: d.id,
label: d.name,
children:
d.children && d.children.length > 0
? d.children
: undefined,
};
}
"
/>
</el-col>
<el-col :span="4" class="title"> 责任领导: </el-col>
<el-col :span="7">
<treeselect
v-model="form.leaderPrincipal"
:options="principalList"
placeholder="请选择其他牵头部门责任领导"
:defaultExpandLevel="1"
:normalizer="
(d) => {
return {
id: d.id,
label: d.realname,
children:
d.children && d.children.length > 0
? d.children
: undefined,
};
}
"
/>
</el-col>
</el-row>
<div style="position:relative;">
<span class="el-icon-remove-outline delete"></span>
<el-row>
<el-col :span="4" class="title"> 其他牵头部门: </el-col>
<el-col :span="7">
<treeselect
v-model="form.leaderDept"
:flat="true"
:options="formatDep"
placeholder="请选择其他牵头部门"
:defaultExpandLevel="2"
:normalizer="
(d) => {
return {
id: d.id,
label: d.name,
children:
d.children && d.children.length > 0
? d.children
: undefined,
};
}
"
/>
</el-col>
<el-col :span="4" class="title"> 责任领导: </el-col>
<el-col :span="7">
<treeselect
v-model="form.leaderPrincipal"
:options="principalList"
placeholder="请选择其他牵头部门责任领导"
:defaultExpandLevel="1"
:normalizer="
(d) => {
return {
id: d.id,
label: d.realname,
children:
d.children && d.children.length > 0
? d.children
: undefined,
};
}
"
/>
</el-col>
</el-row>
</div>
</div>
<div class="cooperate">
<span class="el-icon-circle-plus-outline add"></span>
<el-row>
<el-col :span="4" class="title">配合部门: </el-col>
<el-col :span="7">
<treeselect
v-model="form.leaderDept"
:flat="true"
:options="formatDep"
placeholder="请选择配合部门"
:defaultExpandLevel="2"
:normalizer="
(d) => {
return {
id: d.id,
label: d.name,
children:
d.children && d.children.length > 0
? d.children
: undefined,
};
}
"
/>
</el-col>
<el-col :span="4" class="title"> 责任领导: </el-col>
<el-col :span="7">
<treeselect
v-model="form.leaderPrincipal"
:options="principalList"
placeholder="请选择牵头部门责任领导"
:defaultExpandLevel="1"
:normalizer="
(d) => {
return {
id: d.id,
label: d.realname,
children:
d.children && d.children.length > 0
? d.children
: undefined,
};
}
"
/>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="title">分值:</el-col>
<el-col :span="7"><el-input placeholder="请输入分值" v-model="form.points"></el-input></el-col>
</el-row>
<div style="position:relative;">
<span class="el-icon-remove-outline delete"></span>
<el-row>
<el-col :span="4" class="title">配合部门: </el-col>
<el-col :span="7">
<treeselect
v-model="form.leaderDept"
:flat="true"
:options="formatDep"
placeholder="请选择配合部门"
:defaultExpandLevel="2"
:normalizer="
(d) => {
return {
id: d.id,
label: d.name,
children:
d.children && d.children.length > 0
? d.children
: undefined,
};
}
"
/>
</el-col>
<el-col :span="4" class="title"> 责任领导: </el-col>
<el-col :span="7">
<treeselect
v-model="form.leaderPrincipal"
:options="principalList"
placeholder="请选择牵头部门责任领导"
:defaultExpandLevel="1"
:normalizer="
(d) => {
return {
id: d.id,
label: d.realname,
children:
d.children && d.children.length > 0
? d.children
: undefined,
};
}
"
/>
</el-col>
</el-row>
</div>
</div>
<el-row>
<el-col :span="4" class="title">分值:</el-col>
<el-col :span="7"
><el-input placeholder="请输入分值" v-model="form.points"></el-input
></el-col>
</el-row>
<div slot="footer">
<el-button type="primary" @click="save">确定</el-button>
<el-button @click="showEdit = false">取消</el-button>&nbsp;
@@ -446,8 +454,16 @@ export default {
.add {
font-size: 20px;
position: absolute;
right: 0px;
left: -10px;
transform: translateX(-50%);
top: 8px;
color: #4d9efc;
}
.delete {
font-size: 20px;
position: absolute;
right: 0;
top: 8px;
color:#4d9efc;
color: #fa4953;
}
</style>

Loading…
Откажи
Сачувај