zhouna 5 лет назад
Родитель
Сommit
9eacef9d9b
2 измененных файлов с 7 добавлено и 4 удалено
  1. 5 2
      src/store/async-actions/tabTemplate.js
  2. 2 2
      src/utils/config.js

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

@@ -47,8 +47,11 @@ export const saveTemplateDetail = (val,sex) => { //保存为模板
   let baseList = store.getState();
   let jsonData = getAllDataList(baseList);
   let jsonStr = getAllDataStringList(baseList);
-  const readMode = baseList.typeConfig.readMode;          //回读模式
-  let whichSign = readMode===-1||readMode===null?baseList.typeConfig.mode:readMode;
+  const dConfig = baseList.typeConfig;
+  const readMode = dConfig.readMode;          //回读模式
+  let whichSign = readMode===-1||readMode===null?dConfig.mode:readMode;
+  const docConfigs = dConfig.readConfig===-1||!dConfig.readConfig?dConfig.typeConfig:dConfig.readConfig;
+  jsonData.docConfigs=docConfigs;     //保存当时的设置引用
   let state = baseList.patInfo.message;
   let preview = {
     "chief": jsonStr.chief,

+ 2 - 2
src/utils/config.js

@@ -2,12 +2,12 @@
 // const host='http://192.168.3.100:5050';//王峰
 // const host='http://192.168.2.121:5050';//后端接口访问地址
 // const host='http://192.168.2.236:5050';//后端接口访问地址
-const host='http://192.168.2.241:5050';//后端接口访问地址
+const host='http://192.168.2.236:5050';//后端接口访问地址
 // const host='http://192.168.3.11:5050';//王宇
 //const host='http://192.168.2.164:8080';
 // const host='http://192.168.3.117:5050'; //周铁刚
 // const newIcssVisitUrl = '223.93.170.82:13000';    //icss服务访问地址(跳转目的地),不能加http://
-const imageUrlPrefix = 'http://192.168.2.236:82';
+const imageUrlPrefix = 'http://192.168.2.241:82';
 module.exports={
     host,
     prefix:'/api/icss',            //带权限验证的api