Commit 07ac5557 authored by 邓春圆's avatar 邓春圆

部门只传直属部门

parent d9bd8f25
......@@ -53,7 +53,7 @@
<el-option
v-for="item in deptData"
:key="item.id"
:label="item.name"
:label="item.named"
:value="item.id"
@click.native="selectFn('departmentName', item.name)"
/>
......@@ -575,7 +575,9 @@ export default {
that.deptData.forEach((value) => {
var dept = that.deptArr.filter((itt) => itt.id == value.parentId);
if (dept.length > 0) {
value.name = dept[0].name + " | " + value.name;
value.named = dept[0].name + " | " + value.name;
}else {
value.named = value.name;
}
});
});
......
......@@ -48,9 +48,10 @@
:placeholder="$t('请选择部门')"
>
<el-option
@click.native="selslectVal('departmentName', item.name)"
v-for="item in deptData"
:key="item.id"
:label="item.name"
:label="item.named"
:value="item.id"
/>
</el-select>
......@@ -548,7 +549,9 @@ export default {
that.deptData.forEach((value) => {
var dept = that.deptArr.filter((itt) => itt.id == value.parentId);
if (dept.length > 0) {
value.name = dept[0].name + " | " + value.name;
value.named = dept[0].name + " | " + value.name;
}else {
value.named = value.name;
}
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment