瀏覽代碼

fix:隐藏文件查阅时候的删除按钮

liujiayin 2 年之前
父節點
當前提交
feb77c540a
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/infosManage/fileIE.vue

+ 3 - 3
src/views/infosManage/fileIE.vue

@@ -152,7 +152,7 @@ export default {
     const roleList = this.$store.getters.userInfo.role
     // 系统管理角色添加删除按钮
     const hasRole = roleList.some(item => item.name === '系统管理角色')
-    if (hasRole) {
+    if (hasRole && this.$route.name !== 'nbwj') {
       // 系统管理角色不做分类过滤
       this.listConfig.toolbars.push({ key: 'remove' })
       this.selection = true
@@ -277,10 +277,10 @@ export default {
         if (value.length !== 0) {
           needSelType.push(`(${sqlArr[i]})`)
         }
-      } 
+      }
       let fileSearchSql = needSelType.join('union all')
       let sql = this.pageKey === 'nbwj' ? `select sq.* from (${fileSearchSql}) sq` : oldRecordSql
-      console.log('sql------------:',sql)
+      console.log('sql------------:', sql)
       curdPost('sql', sql).then(res => {
         let tableDatas = res.variables.data
         this.selectListData = JSON.parse(JSON.stringify(tableDatas))