优化当获取不到应用时,出现的逻辑错误
This commit is contained in:
@@ -54,7 +54,8 @@ export default {
|
|||||||
multiple: Boolean,
|
multiple: Boolean,
|
||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
meta: {default: () => []},
|
meta: {default: () => []},
|
||||||
choose: {default: null}
|
choose: {default: null},
|
||||||
|
customData: Boolean
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -83,8 +84,8 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getTableData() {
|
getTableData() {
|
||||||
const {page, search, action, meta, searchKey, dict} = this
|
const {page, search, action, meta, searchKey, dict, customData} = this
|
||||||
if (meta.length > 0) {
|
if (meta.length > 0 || customData) {
|
||||||
const reg = new RegExp(search[searchKey])
|
const reg = new RegExp(search[searchKey])
|
||||||
this.handleTableData(meta.filter(e => reg.test(e.label) || reg.test(e.name) || reg.test(dict.getLabel('appsCategory', e.category))))
|
this.handleTableData(meta.filter(e => reg.test(e.label) || reg.test(e.name) || reg.test(dict.getLabel('appsCategory', e.category))))
|
||||||
} else this.instance?.post(action, null, {
|
} else this.instance?.post(action, null, {
|
||||||
|
|||||||
@@ -189,7 +189,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="方案应用" lazy>
|
<el-tab-pane label="方案应用" lazy>
|
||||||
<ai-lib-table :meta="appList" :isShowPagination="false" v-bind="$props" disabled :colConfigs="appListConfigs">
|
<ai-lib-table :meta="appList" customData :isShowPagination="false" v-bind="$props" disabled :colConfigs="appListConfigs">
|
||||||
<template slot="options" slot-scope="{row}">
|
<template slot="options" slot-scope="{row}">
|
||||||
<ai-dialog-btn text="编辑" :customFooter="false" dialogTitle="应用配置" width="500px" @onConfirm="handleAppEdit(row)">
|
<ai-dialog-btn text="编辑" :customFooter="false" dialogTitle="应用配置" width="500px" @onConfirm="handleAppEdit(row)">
|
||||||
<el-form size="small" label-width="80px">
|
<el-form size="small" label-width="80px">
|
||||||
|
|||||||
Reference in New Issue
Block a user