diff --git a/src/api/model/asm.js b/src/api/model/asm.js new file mode 100644 index 00000000..e034267d --- /dev/null +++ b/src/api/model/asm.js @@ -0,0 +1,40 @@ +import config from "@/config" +import http from "@/utils/request" + +export default { + // 固定资产 + asset: { + list: { + name: "供应商审核", + req: async function(data){ + return await http.get( + `${config.API_URL}/asm/asset/`, + data + ); + } + }, + item: { + req: async function(id){ + return await http.get( + `${config.API_URL}asm/asset/${id}/`, + ); + } + }, + create: { + name: "新增", + req: async function(data){ + return await http.post( + `${config.API_URL}/asm/asset/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/asm/asset/${id}/` + ); + } + }, + }, +} diff --git a/src/api/model/hrm.js b/src/api/model/hrm.js index 6acccebf..9d34f8d8 100644 --- a/src/api/model/hrm.js +++ b/src/api/model/hrm.js @@ -195,5 +195,40 @@ export default { ); } }, - } + }, + empneed: { + list: { + name: "人员需求", + req: async function(data){ + return await http.get( + `${config.API_URL}/hrm/empneed/`, + data + ); + } + }, + item: { + name: "人员需求申请", + req: async function(id){ + return await http.get( + `${config.API_URL}/hrm/empneed/${id}/`, + ); + } + }, + create: { + name: "人员需求新增", + req: async function(data){ + return await http.post( + `${config.API_URL}/hrm/empneed/`, + data); + } + }, + delete: { + name: "人员需求删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/hrm/empneed/${id}/` + ); + } + }, + }, } diff --git a/src/components/xtSelect/index.vue b/src/components/xtSelect/index.vue index 23e88e31..a6924eb9 100644 --- a/src/components/xtSelect/index.vue +++ b/src/components/xtSelect/index.vue @@ -1,6 +1,6 @@