|
|
|
@ -1716,7 +1716,7 @@ export default {
|
|
|
|
|
} else {
|
|
|
|
|
_this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
_thisgetList();
|
|
|
|
|
_this.getList();
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
@ -1865,6 +1865,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
/** 查询菜单下拉树结构 */
|
|
|
|
|
getTreeselect(row) {
|
|
|
|
|
console.log("dkdkkldjkdlkjd",row)
|
|
|
|
|
if (row != null) {
|
|
|
|
|
var data = {
|
|
|
|
|
code: row.code,
|
|
|
|
@ -1876,7 +1877,7 @@ export default {
|
|
|
|
|
getListMenu(data).then(response => {
|
|
|
|
|
this.fromDeptOptions = [];
|
|
|
|
|
menu.children = this.handleTree(response.data, "code", "parentCode");
|
|
|
|
|
console.log(menu)
|
|
|
|
|
console.log("shhshshshshshhs",menu)
|
|
|
|
|
this.fromDeptOptions.push(menu);
|
|
|
|
|
console.log(this.fromDeptOptions)
|
|
|
|
|
});
|
|
|
|
@ -1900,6 +1901,29 @@ export default {
|
|
|
|
|
getListTree(this.query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
var invlist = response.data || [];
|
|
|
|
|
if (invlist.length == 0){
|
|
|
|
|
invlist = [
|
|
|
|
|
{
|
|
|
|
|
code: 10000,
|
|
|
|
|
parentCode: null,
|
|
|
|
|
label: '全部'
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
let query = {
|
|
|
|
|
code: 10000,
|
|
|
|
|
parentCode: null,
|
|
|
|
|
name: '全部',
|
|
|
|
|
deptCode: this.$store.getters.locDeptCode,
|
|
|
|
|
invCode: this.$store.getters.locInvCode
|
|
|
|
|
}
|
|
|
|
|
saveBasicHospType(query).then(res => {
|
|
|
|
|
if (res.code == 20000){
|
|
|
|
|
// this.$message.success("success")
|
|
|
|
|
}else {
|
|
|
|
|
// this.$message.error("新增失败")
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
this.treeList = this.handleTree(invlist, "code", "parentCode");
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|