|
|
@ -7,46 +7,16 @@
|
|
|
|
<a-col :md="18">
|
|
|
|
<a-col :md="18">
|
|
|
|
<a-row :gutter="48">
|
|
|
|
<a-row :gutter="48">
|
|
|
|
<a-col :md="6" :sm="24">
|
|
|
|
<a-col :md="6" :sm="24">
|
|
|
|
<a-form-item label="显示名称:">
|
|
|
|
<a-form-item label="字段名称:">
|
|
|
|
<a-input v-model="queryParam.displayName" allow-clear placeholder="请输入显示名称" />
|
|
|
|
<a-input v-model="queryParam.fieldName" 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>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :md="6" :sm="24">
|
|
|
|
<a-col :md="6" :sm="24">
|
|
|
|
<span class="table-page-search-submitButtons">
|
|
|
|
<span class="table-page-search-submitButtons">
|
|
|
|
<a-button type="primary" @click="FnGetData">查询</a-button>
|
|
|
|
<a-button type="primary" @click="FnQuery">查询</a-button>
|
|
|
|
<a-button style="margin-left: 8px" @click="init">重置</a-button>
|
|
|
|
<a-button style="margin-left: 8px" @click="FnReset">重置</a-button>
|
|
|
|
<!-- <a @click="toggleAdvanced" style="margin-left: 8px">
|
|
|
|
<!-- <a @click="toggleAdvanced" style="margin-left: 8px">
|
|
|
|
{{ advanced ? '收起' : '展开' }}
|
|
|
|
{{ advanced ? '收起' : '展开' }}
|
|
|
|
<a-icon :type="advanced ? 'up' : 'down'" />
|
|
|
|
<a-icon :type="advanced ? 'up' : 'down'" />
|
|
|
@ -65,7 +35,7 @@
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</vxe-toolbar>
|
|
|
|
</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 type="seq" width="50" fixed="left"></vxe-column>
|
|
|
|
<vxe-column
|
|
|
|
<vxe-column
|
|
|
|
v-for="item in columns"
|
|
|
|
v-for="item in columns"
|
|
|
@ -102,18 +72,14 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
TypeData: [],
|
|
|
|
|
|
|
|
// 高级搜索 展开/关闭
|
|
|
|
// 高级搜索 展开/关闭
|
|
|
|
advanced: false,
|
|
|
|
advanced: false,
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
setVisible: false,
|
|
|
|
|
|
|
|
setVisible1: false,
|
|
|
|
|
|
|
|
queryParam: {
|
|
|
|
queryParam: {
|
|
|
|
currentPage: 1,
|
|
|
|
currentPage: 1,
|
|
|
|
pageSize: 9999,
|
|
|
|
pageSize: 9999,
|
|
|
|
Type: 'booking_default_value'
|
|
|
|
Type: 'booking_default_value'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
ColumnsQuery: [],
|
|
|
|
|
|
|
|
columns: [
|
|
|
|
columns: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '字段名称',
|
|
|
|
title: '字段名称',
|
|
|
@ -134,12 +100,7 @@ export default {
|
|
|
|
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
|
|
|
|
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
|
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
|
loadData: [],
|
|
|
|
loadData: [],
|
|
|
|
CodeData: [],
|
|
|
|
DisplayLoadData: []
|
|
|
|
WCodeData: [],
|
|
|
|
|
|
|
|
ModulesData: [],
|
|
|
|
|
|
|
|
carrierCodeData: [],
|
|
|
|
|
|
|
|
UserList: [],
|
|
|
|
|
|
|
|
CateData: []
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {},
|
|
|
|
created() {},
|
|
|
@ -147,16 +108,18 @@ export default {
|
|
|
|
this.init()
|
|
|
|
this.init()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
RMain(data) {
|
|
|
|
FnQuery() {
|
|
|
|
let Text = ''
|
|
|
|
let Rdata = []
|
|
|
|
if (data.type == 'FastReport') {
|
|
|
|
this.DisplayLoadData.forEach(item => {
|
|
|
|
Text = 'FastReport'
|
|
|
|
if (item.fieldName.indexOf(this.queryParam.fieldName) > -1) {
|
|
|
|
} else if (data.type == 'ExcelTemplate') {
|
|
|
|
Rdata.push(item)
|
|
|
|
Text = 'Excel模板'
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
})
|
|
|
|
Text = '-'
|
|
|
|
this.DisplayLoadData = Rdata
|
|
|
|
}
|
|
|
|
},
|
|
|
|
return Text
|
|
|
|
FnReset() {
|
|
|
|
|
|
|
|
this.queryParam = {}
|
|
|
|
|
|
|
|
this.DisplayLoadData = this.loadData
|
|
|
|
},
|
|
|
|
},
|
|
|
|
confirm(e) {
|
|
|
|
confirm(e) {
|
|
|
|
this.FnDel(e)
|
|
|
|
this.FnDel(e)
|
|
|
@ -185,7 +148,6 @@ export default {
|
|
|
|
this.advanced = !this.advanced
|
|
|
|
this.advanced = !this.advanced
|
|
|
|
},
|
|
|
|
},
|
|
|
|
init() {
|
|
|
|
init() {
|
|
|
|
this.ColumnsQuery = this.columns
|
|
|
|
|
|
|
|
this.FnGetData()
|
|
|
|
this.FnGetData()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
FnGetData() {
|
|
|
|
FnGetData() {
|
|
|
@ -193,6 +155,7 @@ export default {
|
|
|
|
DjyTenantConfigPage(this.queryParam).then(res => {
|
|
|
|
DjyTenantConfigPage(this.queryParam).then(res => {
|
|
|
|
if (res.code == 200) {
|
|
|
|
if (res.code == 200) {
|
|
|
|
this.loadData = JSON.parse(res.data.rows[0].configJson)
|
|
|
|
this.loadData = JSON.parse(res.data.rows[0].configJson)
|
|
|
|
|
|
|
|
this.DisplayLoadData = this.loadData
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.loadData = []
|
|
|
|
this.loadData = []
|
|
|
|
this.$message.warning(res.message)
|
|
|
|
this.$message.warning(res.message)
|
|
|
|