瀏覽代碼

重命名文件

zhangxc 5 年之前
父節點
當前提交
d2703ea9b2
共有 2 個文件被更改,包括 7 次插入3 次删除
  1. 1 1
      src/components/PushContainer/index.jsx
  2. 6 2
      src/store/async-actions/tabTemplate.js

+ 1 - 1
src/components/PushContainer/index.jsx

@@ -424,7 +424,7 @@ class PushContainer extends Component {
       }
     } else if(type == 5) {
       if(this.props.admin){
-        store.dispatch(newFloder(floderName,folderId))
+        store.dispatch(newFloder(floderName,folderId,'modify'))
         store.dispatch(changeVisible(false))
       }else{
       }

+ 6 - 2
src/store/async-actions/tabTemplate.js

@@ -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())