|
@@ -8,11 +8,11 @@
|
|
|
<div class="f-box-tit">{{ item.unitName }}</div>
|
|
|
<div v-for="items in item.modList" :key="items.moduleName" class="f-box-info">
|
|
|
<el-badge :value="items.noTaskNum" :max="99" :hidden="items.noTaskNum == 0">
|
|
|
-
|
|
|
+
|
|
|
<i @click="jumpTo(items)" v-if="items.sts == '0' && items.icon" v-html="items.icon">
|
|
|
{{items.icon}}
|
|
|
</i>
|
|
|
-
|
|
|
+
|
|
|
<i @click="jumpTo(items)" :class="'el-icon-user'" v-if="items.sts == '0'&& !items.icon" style="background: #0b82ff"></i>
|
|
|
<i :class="'iconfont icon-tongji'" v-if="items.sts != '0'" style="background: #ddd"></i>
|
|
|
<el-tooltip class="item" effect="dark" :content="items.moduleName" placement="bottom">
|
|
@@ -36,6 +36,7 @@
|
|
|
boxHeight: {
|
|
|
height: "auto",
|
|
|
},
|
|
|
+ outsideModules: [],
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -50,6 +51,7 @@
|
|
|
data: {},
|
|
|
}).then((res) => {
|
|
|
this.funcData = res.data.lineList;
|
|
|
+ this.outsideModules = res.data.outsideModules;
|
|
|
});
|
|
|
},
|
|
|
hAuto() {
|
|
@@ -63,6 +65,23 @@
|
|
|
},
|
|
|
jumpTo(v) {
|
|
|
if (v.moduleUrl) {
|
|
|
+ //加入外部人员权限控制start
|
|
|
+ if (this.outsideModules.length > 0) {
|
|
|
+ let moduleIndex = this.outsideModules.filter((item, index) =>{
|
|
|
+ if(item.moduleUrl == v.moduleUrl){
|
|
|
+ return index;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (moduleIndex < 0) {
|
|
|
+ global.$vm.$notify.error({
|
|
|
+ title: "提示",
|
|
|
+ message: "暂无使用权限",
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //加入外部人员权限控制end
|
|
|
+
|
|
|
this.$router.push({
|
|
|
path: v.moduleUrl,
|
|
|
});
|
|
@@ -244,7 +263,7 @@
|
|
|
top: 0;
|
|
|
right: 40px;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.icon{
|
|
|
width: 100%!important;
|
|
|
height: 100%!important;
|