系统参数

This commit is contained in:
lyd
2022-09-28 14:31:44 +08:00
parent 2a4bbd96e2
commit 2abfb67839
8 changed files with 32 additions and 18 deletions

View File

@@ -24,12 +24,12 @@ export function edit(data) {
})
}
export function getStageCodeByCode(code) {
export function getValueByCode(code) {
return request({
url: 'api/param/getStageCodeByCode',
url: 'api/param/getValueByCode',
method: 'post',
data: code
})
}
export default { add, edit, del, getStageCodeByCode }
export default { add, edit, del, getValueByCode }

View File

@@ -44,6 +44,8 @@ import request from '@/utils/request' // 实现 form generator 使用自己定
import { addDateRange, handleTree, parseTime, resetForm, selectDictLabel, selectDictLabels } from '@/utils/nladmin'
import { getValueByCode } from '@/api/system/param'
LogicFlow.use(Menu)
Vue.component('tinymce', Tinymce)
@@ -56,6 +58,7 @@ Vue.prototype.addDateRange = addDateRange
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.handleTree = handleTree
Vue.prototype.getValueByCode = getValueByCode
Vue.use(scroll)

View File

@@ -103,7 +103,7 @@ export default {
},
initStageData() {
// 获取舞台编码
paramCrud.getStageCodeByCode(this.stageParam).then(res => {
this.getValueByCode(this.stageParam).then(res => {
if (res.value !== undefined) {
crudStage.getNewStageDataByCode(res.value).then(res => {
data = JSON.parse(res.stage_data)

View File

@@ -58,7 +58,7 @@
<span v-else>是</span>
</template>
</el-table-column>
<el-table-column prop="create_by" label="创建者" />
<el-table-column prop="create_name" label="创建者" />
<el-table-column v-permission="['admin','param:edit','param:del']" label="操作" width="150px" align="center">
<template slot-scope="scope">
<udOperation
@@ -89,9 +89,9 @@ const defaultForm = {
value: null,
remark: null,
is_active: 1,
create_by: null,
create_name: null,
create_time: null,
update_by: null,
update_optname: null,
update_time: null
}
export default {