|
@@ -233,7 +233,7 @@ function getFloderLis(dispatch){
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
-export const newFloder = (name,id) => { //新建管理员文件夹
|
|
|
+export const newFloder = (name,id,type) => { //新建管理员文件夹
|
|
|
let baseList = store.getState().patInfo.message;
|
|
|
return (dispatch) => {
|
|
|
axios.json('/templateFolderAdmin/saveOrUpdate', {
|
|
@@ -245,7 +245,11 @@ export const newFloder = (name,id) => { //新建管理员文件夹
|
|
|
}).then((res) => {
|
|
|
let data = res.data;
|
|
|
if (data.code == 0) {
|
|
|
- Notify.success('新建成功');
|
|
|
+ if(type=='modify') {
|
|
|
+ Notify.success('修改成功');
|
|
|
+ } else {
|
|
|
+ Notify.success('新建成功');
|
|
|
+ }
|
|
|
dispatch(folderModal(false))
|
|
|
dispatch(getFloderList())
|
|
|
dispatch(getFloderListAll())
|