|
@@ -18,6 +18,7 @@
|
|
|
factoryRef: null,
|
|
|
factory: {},
|
|
|
type: 0, //4驻场
|
|
|
+ user_id: 0,
|
|
|
})
|
|
|
//获取初始数据
|
|
|
const _init = () => {
|
|
@@ -61,7 +62,8 @@
|
|
|
}
|
|
|
onMounted(() => {
|
|
|
const userStore = useUserStore()
|
|
|
- const { type } = storeToRefs(userStore)
|
|
|
+ const { type, id } = storeToRefs(userStore)
|
|
|
+ state.user_id = id
|
|
|
console.log(type, '00000')
|
|
|
state.type = type
|
|
|
if (state.type == 4) {
|
|
@@ -120,7 +122,9 @@
|
|
|
{{ factory.name }}
|
|
|
<el-icon><CaretBottom /></el-icon>
|
|
|
</el-button>
|
|
|
- <el-button type="text" @click="doClear">清除缓存</el-button>
|
|
|
+ <el-button v-if="user_id == 1" type="text" @click="doClear">
|
|
|
+ 清除缓存
|
|
|
+ </el-button>
|
|
|
<!-- <vab-error-log /> -->
|
|
|
<vab-lock />
|
|
|
<!-- <vab-search /> -->
|