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

主数据

parent 57fd5ebb
...@@ -50,8 +50,10 @@ export default { ...@@ -50,8 +50,10 @@ export default {
return { return {
arr: [], arr: [],
entity: { entity: {
upId: 0, code: 0,
code: 0 categoryId: 0, //左侧树点击的id
customProperties: {},
rootCategoryId: 0 //左侧树点击的数据的最顶层id
}, },
disabled: false, disabled: false,
......
...@@ -7,16 +7,16 @@ export default { ...@@ -7,16 +7,16 @@ export default {
return Api.post(`${systemUrl}/category/list`,params); return Api.post(`${systemUrl}/category/list`,params);
}, },
get(params){ get(params){
return Api.get(`${systemUrl}/category/get`,params); return Api.get(`${systemUrl}/material/get`,params);
}, },
create(params){ create(params){
return Api.post(`${systemUrl}/category/create`,params); return Api.post(`${systemUrl}/material/create`,params);
}, },
update(params){ update(params){
return Api.post(`${systemUrl}/category/update`,params); return Api.post(`${systemUrl}/material/update`,params);
}, },
delete(id) { 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 { ...@@ -50,6 +50,7 @@ export default {
title: "新增", title: "新增",
curId: 0, curId: 0,
detail: null, detail: null,
nodeInfo: {},
easySearch: { easySearch: {
keys: { op: "unicode,name,code", value: null } keys: { op: "unicode,name,code", value: null }
}, },
...@@ -133,10 +134,10 @@ export default { ...@@ -133,10 +134,10 @@ export default {
add() { add() {
this.curId = 0; this.curId = 0;
this.title = "新增"; this.title = "新增";
this.detail = () => import("./Add"); this.detail = () => import("./add");
this.modal = true; this.modal = true;
}, },
edit(row) {},
remove(id) { remove(id) {
this.$Modal.confirm({ this.$Modal.confirm({
title: "删除", 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