公司默认值 替换 查询接口

szh_zidingyibiaoti
张同海 2 years ago
parent 95491495f4
commit ad33c84b25

@ -31,3 +31,10 @@ export function DjyTenantConfigSave(parameter) {
data: parameter data: parameter
}) })
} }
export function getDjyTenantConfig(parameter) {
return axios({
url: '/DjyTenantConfig/get',
method: 'get',
params: parameter
})
}

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<a-card :bordered="false" :bodyStyle="tstyle"> <!-- <a-card :bordered="false" :bodyStyle="tstyle">
<div class="table-page-search-wrapper" :class="advanced ? 'Open' : 'Close'"> <div class="table-page-search-wrapper" :class="advanced ? 'Open' : 'Close'">
<a-form layout="inline"> <a-form layout="inline">
<a-row :gutter="48"> <a-row :gutter="48">
@ -17,16 +17,16 @@
<span class="table-page-search-submitButtons"> <span class="table-page-search-submitButtons">
<a-button type="primary" @click="FnQuery"></a-button> <a-button type="primary" @click="FnQuery"></a-button>
<a-button style="margin-left: 8px" @click="FnReset"></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'" />
</a> --> </a>
</span> </span>
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>
</div> </div>
</a-card> </a-card> -->
<a-card :bordered="false"> <a-card :bordered="false">
<vxe-toolbar> <vxe-toolbar>
<template #buttons> <template #buttons>
@ -74,7 +74,7 @@
</div> </div>
</template> </template>
<script> <script>
import { DjyTenantConfigPage, DjyTenantConfigSave } from '@/api/modular/main/DjyTenantConfig' import { getDjyTenantConfig, DjyTenantConfigSave } from '@/api/modular/main/DjyTenantConfig'
import addForm from './addForm.vue' import addForm from './addForm.vue'
import editForm from './editForm.vue' import editForm from './editForm.vue'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
@ -170,10 +170,10 @@ export default {
}, },
FnGetData() { FnGetData() {
this.loading = true this.loading = true
DjyTenantConfigPage(this.queryParam).then(res => { getDjyTenantConfig({ type: 'booking_default_value' }).then(res => {
if (res.code == 200) { if (res.code == 200) {
console.log(this.userInfo) console.log(this.userInfo)
this.loadData = JSON.parse(res.data.rows[0].configJson) this.loadData = JSON.parse(res.data.configJson)
this.DisplayLoadData = this.loadData this.DisplayLoadData = this.loadData
} else { } else {
this.loadData = [] this.loadData = []

Loading…
Cancel
Save