Selaa lähdekoodia

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

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