소스 검색

修改公告富文本控件

asd123a20 2 년 전
부모
커밋
fd2aeb2afd
2개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 1
      src/views/system/notice/index.vue
  2. 3 3
      vue.config.js

+ 5 - 1
src/views/system/notice/index.vue

@@ -156,7 +156,8 @@
           </el-col>
           <el-col :span="24">
             <el-form-item label="内容">
-              <editor v-model="form.noticeContent" :min-height="192"/>
+              <!-- <editor v-model="form.noticeContent" :min-height="192"/> -->
+              <editoritem5 v-if="open" :value="form.noticeContent || ''" @change="getFileId"></editoritem5>
             </el-form-item>
           </el-col>
         </el-row>
@@ -220,6 +221,9 @@ export default {
     this.getList();
   },
   methods: {
+    getFileId(data) {
+      this.$set(this.form, 'noticeContent', data);
+    },
     /** 查询公告列表 */
     getList() {
       this.loading = true;

+ 3 - 3
vue.config.js

@@ -38,11 +38,11 @@ module.exports = {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
         // target: `http://fuyu.scapp.cn/prod-api/`,
-        // target: `https://fuyu.cc-lotus.info`, 
-        target: `http://172.17.116.208:8080`,
+        target: `https://fuyu.cc-lotus.info`,
+        // target: `http://172.17.116.208:8080`,
         changeOrigin: true,
         pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
+          ['^' + process.env.VUE_APP_BASE_API]: '/prod-api/'
         }
       },
       '/dw': {