diff --git a/src/api/system/params.ts b/src/api/system/params.ts new file mode 100644 index 0000000..10b4e69 --- /dev/null +++ b/src/api/system/params.ts @@ -0,0 +1,79 @@ +import request from "@/utils/request"; +import { System_BaseUrl } from "@/api/config"; +const baseURL = System_BaseUrl + "/admin/sysParams"; + +const ParamsApi = { + getList(data: getListRequest) { + return request({ + url: `${baseURL}/type/0`, + method: "get", + params: data + }); + }, + get() { + + }, + add(data: addRequest) { + return request({ + url: `${baseURL}`, + method: "post", + data, + }); + }, + edit(data: editRequest) { + return request({ + url: `${baseURL}`, + method: "put", + data, + }); + }, + delete() { + + }, +}; + +export default ParamsApi; + +export interface getListRequest { + type: string; + [property: string]: any; +} + +export interface addRequest { + /** + * 参数编码-系统唯一 + */ + paramCode: string; + /** + * 参数类型:,0:系统参数 1:非系统参数 + */ + paramType: number; + /** + * 参数值 + */ + paramValue: string; + /** + * 备注 + */ + remark?: string; + [property: string]: any; +} +export interface editRequest { + /** + * 参数编码-系统唯一 + */ + paramCode: string; + /** + * 参数类型,0:系统参数 1:非系统参数 + */ + paramType: number; + /** + * 参数值 + */ + paramValue: string; + /** + * 备注 + */ + remark?: string; + [property: string]: any; +} \ No newline at end of file diff --git a/src/components/CURD/PageContent.vue b/src/components/CURD/PageContent.vue index 4257b4f..1ef7762 100644 --- a/src/components/CURD/PageContent.vue +++ b/src/components/CURD/PageContent.vue @@ -8,37 +8,58 @@ @@ -67,36 +88,68 @@ - + @@ -191,30 +263,45 @@ @@ -232,18 +319,33 @@ - + - + @@ -253,10 +355,16 @@ - - + + @@ -277,17 +385,35 @@ - + - + - + :drag="true" + :limit="1" + :auto-upload="false" + :on-exceed="handleFileExceed" + >
将文件拖到此处,或 @@ -296,8 +422,13 @@