|
|
@ -1,9 +1,18 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
<el-card style="height: 600px"> |
|
|
|
|
|
|
|
|
<el-card class="elcard"> |
|
|
<!-- <el-button type="primary" @click="addorginiztiom">新增组织</el-button> --> |
|
|
<!-- <el-button type="primary" @click="addorginiztiom">新增组织</el-button> --> |
|
|
<div class="publicfontsize">科室设置</div> |
|
|
|
|
|
<div class="allC"> |
|
|
|
|
|
|
|
|
<!-- <div class="publicfontsize">科室设置</div> --> |
|
|
|
|
|
<div class="publiccss">科室设置</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <div class="allC"> --> |
|
|
|
|
|
<div |
|
|
|
|
|
:style=" |
|
|
|
|
|
'display: flex; overflow: scroll;width:' + |
|
|
|
|
|
(window.pageWidth - 85) + |
|
|
|
|
|
'px; margin-top:20px;height:' + (window.pageHeight < 600 ? 410 : window.pageHeight - 190)+ 'px;' |
|
|
|
|
|
" |
|
|
|
|
|
> |
|
|
<!-- <i |
|
|
<!-- <i |
|
|
class="el-icon-link" |
|
|
class="el-icon-link" |
|
|
v-if="natureoptions.length == '0' ? false : true" |
|
|
v-if="natureoptions.length == '0' ? false : true" |
|
|
@ -74,6 +83,7 @@ |
|
|
>新增组织</el-button |
|
|
>新增组织</el-button |
|
|
> --> |
|
|
> --> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- 新增组织弹框 --> |
|
|
<!-- 新增组织弹框 --> |
|
|
<el-dialog |
|
|
<el-dialog |
|
|
:title="title == 2 ? '修改组织' : '新增组织'" |
|
|
:title="title == 2 ? '修改组织' : '新增组织'" |
|
|
@ -83,12 +93,14 @@ |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
class="el-dialog__title" |
|
|
class="el-dialog__title" |
|
|
> |
|
|
> |
|
|
|
|
|
<!-- |
|
|
<div v-if="title == 2"> |
|
|
<div v-if="title == 2"> |
|
|
当前选中的科室<span |
|
|
当前选中的科室<span |
|
|
style="margin-left: 20px; font-size: 18px; margin-top: -20px" |
|
|
style="margin-left: 20px; font-size: 18px; margin-top: -20px" |
|
|
>{{ departmentnames }}</span |
|
|
>{{ departmentnames }}</span |
|
|
> |
|
|
> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
--> |
|
|
<div v-if="title == 2"> |
|
|
<div v-if="title == 2"> |
|
|
<span>上级部门</span> |
|
|
<span>上级部门</span> |
|
|
<el-cascader |
|
|
<el-cascader |
|
|
@ -99,11 +111,12 @@ |
|
|
:options="selecttable" |
|
|
:options="selecttable" |
|
|
:props="{ |
|
|
:props="{ |
|
|
checkStrictly: true, |
|
|
checkStrictly: true, |
|
|
|
|
|
expandTrigger: 'hover', |
|
|
children: 'treeChildren', |
|
|
children: 'treeChildren', |
|
|
label: 'displayName', |
|
|
label: 'displayName', |
|
|
value: 'displayName', |
|
|
value: 'displayName', |
|
|
}" |
|
|
|
|
|
clearable |
|
|
|
|
|
|
|
|
}" |
|
|
|
|
|
clearable size="small" |
|
|
></el-cascader> |
|
|
></el-cascader> |
|
|
<!-- <el-tree |
|
|
<!-- <el-tree |
|
|
:data="title == 1 ? treedata : selecttable" |
|
|
:data="title == 1 ? treedata : selecttable" |
|
|
@ -149,6 +162,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import { mapState } from "vuex"; |
|
|
import { |
|
|
import { |
|
|
organizationtree, |
|
|
organizationtree, |
|
|
organizationcaeatre, |
|
|
organizationcaeatre, |
|
|
@ -156,6 +170,8 @@ import { |
|
|
modifyedit, |
|
|
modifyedit, |
|
|
} from "../../request/ruquset"; |
|
|
} from "../../request/ruquset"; |
|
|
import { postapi, putapi, getapi } from "@/api/api"; |
|
|
import { postapi, putapi, getapi } from "@/api/api"; |
|
|
|
|
|
import { tcdate, } from "../../utlis/proFunc"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
@ -191,6 +207,9 @@ export default { |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.getonorganization(); |
|
|
this.getonorganization(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
computed: { |
|
|
|
|
|
...mapState(["window"]), |
|
|
|
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
checkboxchange(v) { |
|
|
checkboxchange(v) { |
|
|
if (v == true) { |
|
|
if (v == true) { |
|
|
@ -211,11 +230,13 @@ export default { |
|
|
// let a=this.depref.value.togglePoppervisible() |
|
|
// let a=this.depref.value.togglePoppervisible() |
|
|
// console.log(a); |
|
|
// console.log(a); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//选中的组织 |
|
|
//选中的组织 |
|
|
treeclick(data) { |
|
|
|
|
|
this.departmentname = data.displayName; |
|
|
|
|
|
console.log(data); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// treeclick(data) { |
|
|
|
|
|
// this.departmentname = data.displayName; |
|
|
|
|
|
// console.log(data); |
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
//close弹框关闭事件 |
|
|
//close弹框关闭事件 |
|
|
closethiebox() { |
|
|
closethiebox() { |
|
|
this.departmentname = ""; |
|
|
this.departmentname = ""; |
|
|
@ -409,6 +430,7 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
this.departmentname = a; |
|
|
this.departmentname = a; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// this.departmentname = a; |
|
|
// this.departmentname = a; |
|
|
console.log(a); |
|
|
console.log(a); |
|
|
console.log(this.departmentname); |
|
|
console.log(this.departmentname); |
|
|
@ -431,11 +453,13 @@ export default { |
|
|
} |
|
|
} |
|
|
// console.log(res,'查询'); |
|
|
// console.log(res,'查询'); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
getapi( |
|
|
getapi( |
|
|
`/api/app/organizationunit/getbycodeparent?OrganizationUnitId=${data.id}` |
|
|
`/api/app/organizationunit/getbycodeparent?OrganizationUnitId=${data.id}` |
|
|
).then((res) => { |
|
|
).then((res) => { |
|
|
this.selecttable = res.data; |
|
|
this.selecttable = res.data; |
|
|
console.log(res, "res"); |
|
|
|
|
|
|
|
|
tcdate(this.selecttable) |
|
|
|
|
|
console.log(res, "/api/app/organizationunit/getbycodeparent?OrganizationUnitId"); |
|
|
}); |
|
|
}); |
|
|
// getapi(`/api/app/organization-units?Id=${data.id}`).then((res) => { |
|
|
// getapi(`/api/app/organization-units?Id=${data.id}`).then((res) => { |
|
|
// this.form = res.data; |
|
|
// this.form = res.data; |
|
|
|