|
|
@ -7,6 +7,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="right-menu">
|
|
|
|
<div class="right-menu">
|
|
|
|
<template v-if="device!=='mobile'">
|
|
|
|
<template v-if="device!=='mobile'">
|
|
|
|
|
|
|
|
<el-select
|
|
|
|
|
|
|
|
v-model="poolName"
|
|
|
|
|
|
|
|
placeholder="请选择园区"
|
|
|
|
|
|
|
|
@change="handleChange"
|
|
|
|
|
|
|
|
:disabled="poolNameList.length <= 1"
|
|
|
|
|
|
|
|
class="right-menu-item hover-effect"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in poolNameList"
|
|
|
|
|
|
|
|
:key="item.poolName"
|
|
|
|
|
|
|
|
:label="item.parkName"
|
|
|
|
|
|
|
|
:value="item.poolName"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
<search id="header-search" class="right-menu-item" />
|
|
|
|
<search id="header-search" class="right-menu-item" />
|
|
|
|
|
|
|
|
|
|
|
|
<el-tooltip content="源码地址" effect="dark" placement="bottom">
|
|
|
|
<el-tooltip content="源码地址" effect="dark" placement="bottom">
|
|
|
@ -56,8 +70,19 @@ import SizeSelect from '@/components/SizeSelect'
|
|
|
|
import Search from '@/components/HeaderSearch'
|
|
|
|
import Search from '@/components/HeaderSearch'
|
|
|
|
import RuoYiGit from '@/components/RuoYi/Git'
|
|
|
|
import RuoYiGit from '@/components/RuoYi/Git'
|
|
|
|
import RuoYiDoc from '@/components/RuoYi/Doc'
|
|
|
|
import RuoYiDoc from '@/components/RuoYi/Doc'
|
|
|
|
|
|
|
|
import { changePoolName } from "@/api/system/user";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
|
|
|
|
data() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
poolNameList: [],
|
|
|
|
|
|
|
|
poolName: "",
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
this.poolNameList = JSON.parse(localStorage.getItem("POOL_NAME_LIST"));
|
|
|
|
|
|
|
|
this.poolName = localStorage.getItem("USER_POOL_NAME_CURRENT");
|
|
|
|
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
Breadcrumb,
|
|
|
|
Breadcrumb,
|
|
|
|
TopNav,
|
|
|
|
TopNav,
|
|
|
@ -105,7 +130,16 @@ export default {
|
|
|
|
location.href = '/index';
|
|
|
|
location.href = '/index';
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}).catch(() => {});
|
|
|
|
}).catch(() => {});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
// 选中数据源
|
|
|
|
|
|
|
|
handleChange(value) {
|
|
|
|
|
|
|
|
//修改后台数据源
|
|
|
|
|
|
|
|
changePoolName(value).then((res) => {
|
|
|
|
|
|
|
|
localStorage.setItem("USER_POOL_NAME_CURRENT", value);
|
|
|
|
|
|
|
|
this.poolName = value
|
|
|
|
|
|
|
|
window.location.reload();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|