|
|
@@ -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))
|