张同海 2 years ago
parent 034dfadc50
commit 1455270a77

@ -7,46 +7,16 @@
<a-col :md="18">
<a-row :gutter="48">
<a-col :md="6" :sm="24">
<a-form-item label="显示名称:">
<a-input v-model="queryParam.displayName" allow-clear placeholder="请输入显示名称" />
</a-form-item>
</a-col>
<a-col :md="6" :sm="24">
<a-form-item label="用户:">
<a-select placeholder="请选择用户" v-model="queryParam.userId">
<a-select-option v-for="item in UserList" :key="item.id" :value="item.id">
{{ item.name }}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :md="6" :sm="24">
<a-form-item label="分类">
<a-select v-model="queryParam.cateCode" style="width: 100%" placeholder="请选择分类" allow-clear>
<a-select-option v-for="item in CateData" :key="item.id" :value="`[${item.code}]`">
{{ item.name }}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :md="6" :sm="24">
<a-form-item label="模板类型">
<a-select v-model="queryParam.type" style="width: 100%" placeholder="请选择模板类型" allow-clear>
<a-select-option value="FastReport">
FastReport
</a-select-option>
<a-select-option value="ExcelTemplate">
Excel模板
</a-select-option>
</a-select>
<a-form-item label="字段名称:">
<a-input v-model="queryParam.fieldName" allow-clear placeholder="请输入字段名称" />
</a-form-item>
</a-col>
</a-row>
</a-col>
<a-col :md="6" :sm="24">
<span class="table-page-search-submitButtons">
<a-button type="primary" @click="FnGetData"></a-button>
<a-button style="margin-left: 8px" @click="init"></a-button>
<a-button type="primary" @click="FnQuery"></a-button>
<a-button style="margin-left: 8px" @click="FnReset"></a-button>
<!-- <a @click="toggleAdvanced" style="margin-left: 8px">
{{ advanced ? '收起' : '展开' }}
<a-icon :type="advanced ? 'up' : 'down'" />
@ -65,7 +35,7 @@
</a-button>
</template>
</vxe-toolbar>
<vxe-table :data="loadData" border :loading="loading" height="600px" empty-text="">
<vxe-table :data="DisplayLoadData" border :loading="loading" height="600px" empty-text="">
<vxe-column type="seq" width="50" fixed="left"></vxe-column>
<vxe-column
v-for="item in columns"
@ -102,18 +72,14 @@ export default {
},
data() {
return {
TypeData: [],
// /
advanced: false,
loading: false,
setVisible: false,
setVisible1: false,
queryParam: {
currentPage: 1,
pageSize: 9999,
Type: 'booking_default_value'
},
ColumnsQuery: [],
columns: [
{
title: '字段名称',
@ -134,12 +100,7 @@ export default {
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
// Promise
loadData: [],
CodeData: [],
WCodeData: [],
ModulesData: [],
carrierCodeData: [],
UserList: [],
CateData: []
DisplayLoadData: []
}
},
created() {},
@ -147,16 +108,18 @@ export default {
this.init()
},
methods: {
RMain(data) {
let Text = ''
if (data.type == 'FastReport') {
Text = 'FastReport'
} else if (data.type == 'ExcelTemplate') {
Text = 'Excel模板'
} else {
Text = '-'
}
return Text
FnQuery() {
let Rdata = []
this.DisplayLoadData.forEach(item => {
if (item.fieldName.indexOf(this.queryParam.fieldName) > -1) {
Rdata.push(item)
}
})
this.DisplayLoadData = Rdata
},
FnReset() {
this.queryParam = {}
this.DisplayLoadData = this.loadData
},
confirm(e) {
this.FnDel(e)
@ -185,7 +148,6 @@ export default {
this.advanced = !this.advanced
},
init() {
this.ColumnsQuery = this.columns
this.FnGetData()
},
FnGetData() {
@ -193,6 +155,7 @@ export default {
DjyTenantConfigPage(this.queryParam).then(res => {
if (res.code == 200) {
this.loadData = JSON.parse(res.data.rows[0].configJson)
this.DisplayLoadData = this.loadData
} else {
this.loadData = []
this.$message.warning(res.message)

Loading…
Cancel
Save