Commit 0f348937 authored by 仇晓婷's avatar 仇晓婷

主数据

parent 57fd5ebb
......@@ -50,8 +50,10 @@ export default {
return {
arr: [],
entity: {
upId: 0,
code: 0
code: 0,
categoryId: 0, //左侧树点击的id
customProperties: {},
rootCategoryId: 0 //左侧树点击的数据的最顶层id
},
disabled: false,
......
......@@ -7,16 +7,16 @@ export default {
return Api.post(`${systemUrl}/category/list`,params);
},
get(params){
return Api.get(`${systemUrl}/category/get`,params);
return Api.get(`${systemUrl}/material/get`,params);
},
create(params){
return Api.post(`${systemUrl}/category/create`,params);
return Api.post(`${systemUrl}/material/create`,params);
},
update(params){
return Api.post(`${systemUrl}/category/update`,params);
return Api.post(`${systemUrl}/material/update`,params);
},
delete(id) {
return Api.delete(`${systemUrl}/category/delete`,{params:{id:id}});
return Api.delete(`${systemUrl}/material/delete`,{params:{id:id}});
},
}
\ No newline at end of file
......@@ -50,6 +50,7 @@ export default {
title: "新增",
curId: 0,
detail: null,
nodeInfo: {},
easySearch: {
keys: { op: "unicode,name,code", value: null }
},
......@@ -133,10 +134,10 @@ export default {
add() {
this.curId = 0;
this.title = "新增";
this.detail = () => import("./Add");
this.detail = () => import("./add");
this.modal = true;
},
edit(row) {},
remove(id) {
this.$Modal.confirm({
title: "删除",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment