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