公司默认值 替换 查询接口

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

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

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

Loading…
Cancel
Save