Browse Source

写死参数更改

Luolei 6 years ago
parent
commit
665613f2a0
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/store/async-actions/tabTemplate.js

+ 4 - 3
src/store/async-actions/tabTemplate.js

@@ -125,15 +125,16 @@ export const delBatchItem = (ids) => { //批量删除
 export const changeTitleAsync = (obj) => { //改标题
 export const changeTitleAsync = (obj) => { //改标题
   let baseList = store.getState();
   let baseList = store.getState();
   let whichSign = baseList.typeConfig.typeConfig;
   let whichSign = baseList.typeConfig.typeConfig;
+  let state = baseList.patInfo.message;
   if (obj.title == '') {
   if (obj.title == '') {
     Notify.success('请输入模板名称');
     Notify.success('请输入模板名称');
     return;
     return;
   }
   }
   return (dispatch) => {
   return (dispatch) => {
     axios.json('/api/icss/templateInfo/updateByIdUsNames', {
     axios.json('/api/icss/templateInfo/updateByIdUsNames', {
-      "doctorId": 1,
-      "hospitalDeptId": 1,
-      "hospitalId": 1,
+      "doctorId": state.doctorId,
+      "hospitalDeptId": state.hospitalDeptId,
+      "hospitalId": state.hospitalId,
       "id": obj.id,
       "id": obj.id,
       "modeName": obj.title,
       "modeName": obj.title,
       "type": whichSign
       "type": whichSign