diff --git a/src/api/supervise/classify/classify.js b/src/api/supervise/classify/classify.js new file mode 100644 index 00000000..2e6a896c --- /dev/null +++ b/src/api/supervise/classify/classify.js @@ -0,0 +1,50 @@ +import request from '@/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/logpm-supervise/classify/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/api/logpm-supervise/classify/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/api/logpm-supervise/classify/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/api/logpm-supervise/classify/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/api/logpm-supervise/classify/submit', + method: 'post', + data: row + }) +} + diff --git a/src/option/supervise/classify/classify.js b/src/option/supervise/classify/classify.js new file mode 100644 index 00000000..f8f90073 --- /dev/null +++ b/src/option/supervise/classify/classify.js @@ -0,0 +1,78 @@ +export default { + expand: false, + index: true, + border: true, + selection: true, + column: [ + { + label: "主键", + prop: "id", + display: false, + hide: true, + }, + { + label: "租户号", + prop: "tenantId", + display: false, + hide: true, + }, + { + label: "创建人", + prop: "createUser", + display: false, + hide: true, + }, + { + label: "创建时间", + prop: "createTime", + display: false, + hide: true, + }, + { + label: "更新人", + prop: "updateUser", + display: false, + hide: true, + }, + { + label: "更新时间", + prop: "updateTime", + display: false, + hide: true, + }, + { + label: "状态", + prop: "status", + display: false, + hide: true, + }, + { + label: "是否已删除", + prop: "isDeleted", + display: false, + hide: true, + }, + { + label: "创建部门", + prop: "createDept", + display: false, + hide: true, + }, + { + label: "名称", + prop: "name", + }, + { + label: "描述", + prop: "description", + }, + { + label: "备注", + prop: "remark", + }, + // { + // label: "是否是父指标 默认为0 ", + // prop: "pId", + // }, + ] +} diff --git a/src/views/supervise/classify/classify.vue b/src/views/supervise/classify/classify.vue new file mode 100644 index 00000000..6660b0d8 --- /dev/null +++ b/src/views/supervise/classify/classify.vue @@ -0,0 +1,300 @@ + + + + + + + + + 搜 索 + 清 空 + + + + + + + + 新 增 + 删 除 + + + + + + + + + + + + + + + + + + + + + + + + 查看 + 编辑 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 提 交 + 取 消 + + + + + + + + diff --git a/vite.config.js b/vite.config.js index 58d5f122..c9b92bca 100644 --- a/vite.config.js +++ b/vite.config.js @@ -23,7 +23,7 @@ export default ({ mode, command }) => { // 新zyc // target: 'http://192.168.6.116:8777', // target: 'http://192.168.6.122:8777', - target: 'http://192.168.10.25:13000', + target: 'http://192.168.10.57:13000', // target: 'http://192.168.10.25:2888', // target: 'http://192.168.6.169:9777',//CYZ // target: 'http://192.168.10.57:13000',