cloud-web-corejs 1.0.26 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.26",
4
+ "version": "1.0.27",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -14,13 +14,13 @@
14
14
  </el-tooltip>
15
15
  </div>
16
16
  <div class="fase-box" ref="fase" @mouseleave="$emit('selfClose')" @mouseenter="$emit('selfEnter')">
17
- <langTool v-if="userInfo.flag!==8"></langTool>
18
- <div class="item" @click="openCompanyDialog" v-if="userInfo.flag!==8">
17
+ <langTool v-if="getMenuFlag()"></langTool>
18
+ <div class="item" @click="openCompanyDialog" v-if="getMenuFlag()">
19
19
  <el-tooltip :enterable="false" effect="dark" :content="$t1('切换组织')" :placement="direction">
20
20
  <i class="el-icon-set-up"/>
21
21
  </el-tooltip>
22
22
  </div>
23
- <div class="item" v-if="userInfo.flag!==8">
23
+ <div class="item" v-if="getMenuFlag()">
24
24
  <el-tooltip :enterable="false" effect="dark" :content="$t1('流程待办')" :placement="direction">
25
25
  <i class="iconfont icon-liuchengdaiban" @click="$router.push('/basic/wf/wf_manage/list')"/>
26
26
  </el-tooltip>
@@ -232,6 +232,10 @@ export default {
232
232
  }
233
233
  },
234
234
  methods: {
235
+ getMenuFlag(){
236
+ let flag = this.userInfo.flag;
237
+ return flag!=6 && flag!=7 && flag!=8
238
+ },
235
239
  getMenuName(item) {
236
240
  let locale = this.$i18n?.locale;
237
241
  let zhTitle = (item.meta ? item.meta.title : '');