feat: 代码生成工具5分钟完成参数设置
This commit is contained in:
@@ -3,7 +3,7 @@ import request from '@/utils/request'
|
||||
// 查询参数列表
|
||||
export function listConfig(query) {
|
||||
return request({
|
||||
url: '/config/pageList',
|
||||
url: '/config',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
@@ -12,7 +12,7 @@ export function listConfig(query) {
|
||||
// 查询参数详细
|
||||
export function getConfig(configId) {
|
||||
return request({
|
||||
url: '/config/getById/' + configId,
|
||||
url: '/config/' + configId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
@@ -28,7 +28,7 @@ export function getConfigKey(configKey) {
|
||||
// 新增参数配置
|
||||
export function addConfig(data) {
|
||||
return request({
|
||||
url: '/config/add',
|
||||
url: '/config',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
@@ -37,7 +37,7 @@ export function addConfig(data) {
|
||||
// 修改参数配置
|
||||
export function updateConfig(data) {
|
||||
return request({
|
||||
url: '/config/update',
|
||||
url: `/config/${data.id}`,
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
@@ -45,15 +45,9 @@ export function updateConfig(data) {
|
||||
|
||||
// 删除参数配置
|
||||
export function delConfig(configId) {
|
||||
|
||||
if("string"==typeof(configId))
|
||||
{
|
||||
configId=[configId];
|
||||
}
|
||||
return request({
|
||||
url: '/config/delList',
|
||||
method: 'delete',
|
||||
data:configId
|
||||
url: `/config/${configId}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -108,9 +108,9 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
||||
<el-table-column label="创建时间" align="center" prop="creationTime" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.createTime) }}</span>
|
||||
<span>{{ parseTime(scope.row.creationTime) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="150" class-name="small-padding fixed-width">
|
||||
@@ -213,7 +213,7 @@ const { queryParams, form, rules } = toRefs(data);
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listConfig(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => {
|
||||
configList.value = response.data.data;
|
||||
configList.value = response.data.items;
|
||||
total.value = response.data.total;
|
||||
loading.value = false;
|
||||
});
|
||||
@@ -232,7 +232,7 @@ function reset() {
|
||||
configValue: undefined,
|
||||
configType: "Y",
|
||||
remark: undefined,
|
||||
isDeleted: false
|
||||
state: true
|
||||
};
|
||||
proxy.resetForm("configRef");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user