xtf hai 1 ano
pai
achega
baa899d26a
Modificáronse 3 ficheiros con 39 adicións e 8 borrados
  1. 2 2
      src/api/config.js
  2. 6 6
      src/components/basicKnow/AddTerm.vue
  3. 31 0
      vue.config.js

+ 2 - 2
src/api/config.js

@@ -1,7 +1,7 @@
 // const testUrl = 'http://223.93.170.82:23650'
 const testUrl = ''
 const host = window.location.hostname;
-const imgHost = host.indexOf("localhost")>-1?'http://173.18.12.195:82':('http://'+host+':82');
+const imgHost = host.indexOf("localhost")>-1?'http://173.18.12.191:82':('http://'+host+':82');
 export default {
     //imgHost: 'http://192.168.2.236:82',      //富文本编辑器图片回传地址
     // imgHost: 'http://192.168.2.121:82',      //富文本编辑器图片回传地址
@@ -13,7 +13,7 @@ export default {
     'verifyImgVerification': '/api/user/userver/verifyImgVerification',
     'login': 'api/user/user/getJwt',
     'getSmsWithRegister': '/api/user/userver/getSmsWithRegister',
-    // 'getSmsWithRegister': 'http://192.168.3.117:5050/api/user/userver/getSmsWithRegister',
+    // 'getSmsWithRegister': 'http://172.16.8.64:5050/api/user/userver/getSmsWithRegister',
     'verifySmsVerification': '/api/user/userver/verifySmsVerification',
     'checkTel': '/api/user/user/verifyNoUsername',//注册验证手机号
     'checkForgetTel': '/api/user/user/verifyExistUsername',//忘记密码验证手机号

+ 6 - 6
src/components/basicKnow/AddTerm.vue

@@ -301,12 +301,12 @@
                 <el-option v-for="(it,i) in drugTypeList" :key="i" :label="it.name" :value="it.val"></el-option>
               </el-select>
             </el-form-item>
-            <el-form-item label="药品信息:" v-if="data.type=='药品通用名'" class="marT is-required">
+            <el-form-item label="药品分类:" v-if="data.type=='药品通用名'" class="marT is-required">
               <div-editable
                 class="divBox"
                 v-if="hackReset"
-                v-model="klDrugVO.drugname"
-                :Maincontent="'drugname'"
+                v-model="klDrugVO.drugC"
+                :Maincontent="'drugC'"
                 title="请输入"
               ></div-editable>
             </el-form-item>
@@ -943,7 +943,7 @@ export default {
       },
       klDrugVO: {
         drug: '',
-        drugname:''
+        drugC:''
       },
       klOperationVO: {
         conceptId: null,
@@ -1305,8 +1305,8 @@ export default {
               this.description = redata.description;
               this.explains = redata.explains;
               this.drug = redata.drug;
-              const type = redata.type;
-
+              this.drugC=redata.drugC;
+              console.log(redata.drugC,'redata.drugC');
               if (type == '诊断') {
                 this.dioType = redata.classify || 'Ⅰ'; //类型,默认展示Ⅰ类
                 const deptConptId = redata.deptId;

+ 31 - 0
vue.config.js

@@ -0,0 +1,31 @@
+const path = require('path');
+// const proxy_path = 'http://192.168.2.241:88';
+const proxy_path = 'http://172.16.8.64:5050';
+// const proxy_path = 'http://173.18.12.195:5050';
+// const proxy_path = 'http://192.168.3.117:5050';//周铁刚
+// const proxy_path = 'http://192.168.3.113:5050'; //王峰
+
+module.exports = {
+  lintOnSave: false,
+  devServer: {
+    historyApiFallback: true,
+    disableHostCheck: true,
+    proxy: {
+      '/api': {
+        target: proxy_path,
+        changeOrigin: true,
+        secure: false,
+      },
+    },
+  },
+  configureWebpack: {
+    resolve: {
+      alias: {
+        '@components': path.resolve(__dirname, './src/components/'),
+        '@less': path.resolve(__dirname, './src/less/'),
+        '@base': path.resolve(__dirname, './src/components/base/'),
+        '@api': path.resolve(__dirname, './src/api/'),
+      },
+    },
+  },
+};