Browse Source

医学术语静态知识维护 bug

morphone1995 5 năm trước cách đây
mục cha
commit
4cb4d9fe48
4 tập tin đã thay đổi với 15 bổ sung5 xóa
  1. 2 1
      src/api/config.js
  2. 1 0
      src/api/index.js
  3. 11 3
      src/components/icss/AddMedicinePrompt.vue
  4. 1 1
      vue.config.js

+ 2 - 1
src/api/config.js

@@ -3,7 +3,8 @@ const testUrl = ''
 
 export default {
   host:'http://192.168.2.241:5050',
-  imgHost:'http://192.168.2.121:82',      //富文本编辑器图片回传地址
+  // imgHost:'http://192.168.2.121:82',      //富文本编辑器图片回传地址
+  imgHost:'http://192.168.2.241:82',      //富文本编辑器图片回传地址
   delayTime: 500,
   urls: {
     /* 登录注册相关接口 */

+ 1 - 0
src/api/index.js

@@ -4,6 +4,7 @@ import config from './config.js';
 axios.default.timeout = 5000;
 axios.defaults.headers.post['Content-Type'] = "application/json;charset=utf-8";
 // axios.defaults.baseURL = 'http://192.168.2.236';
+// axios.defaults.baseURL = 'http://192.168.2.241';
 // axios.defaults.baseURL = 'http://192.168.3.117:5050';
 
 const urls = config.urls;

+ 11 - 3
src/components/icss/AddMedicinePrompt.vue

@@ -46,7 +46,7 @@
                 <el-form-item   v-if="upload" label="标题名称:" prop="fileTitle" label-width="160px">
                         <el-input v-model="form.fileTitle"></el-input>
                 </el-form-item>
-                 <el-form-item  v-if="upload" label="上传文件:" label-width="160px">
+                 <el-form-item  v-if="upload" label="上传文件:" prop="fileList" label-width="160px">
                       <el-upload
                           class="upload-demo"
                           :action="config.urls.promptServer"
@@ -112,8 +112,7 @@
             orderNo:0,
             position:[],
             text:''}],
-          fileTitle:''
-          
+          fileTitle:'',          
         },
         rules: {
           selectedTerm: [
@@ -128,6 +127,9 @@
                   callback();
                 }}, trigger: 'change' }
           ],
+          fileList: [
+             { required: true, message: '请上传文件', trigger: 'change' }
+          ]
         },
         saveDisable: false,  //保存按钮禁止点击
         showDrop:false,        //下拉框显示文字bug1774
@@ -463,5 +465,11 @@
     .cacelBtn{
       color: #22ccc8!important;
     }
+    .upload-demo{
+      /deep/.el-upload-list__item .el-icon-close-tip{
+        display: none !important;
+      } 
+    }
+ 
 </style>
 

+ 1 - 1
vue.config.js

@@ -1,6 +1,6 @@
 const path = require('path');
 // const proxy_path = 'http://192.168.2.236:80';
-const proxy_path = 'http://192.168.2.236:88';
+const proxy_path = 'http://192.168.2.241:88';
 // const proxy_path = 'http://192.168.2.236:88';
 // const proxy_path = 'http://192.168.3.101:5050';
 // const proxy_path = 'http://192.168.3.117:5050';//周铁刚