diff --git a/ebts-ui/.env.development b/ebts-ui/.env.development index b3dd615..84f4763 100644 --- a/ebts-ui/.env.development +++ b/ebts-ui/.env.development @@ -2,11 +2,11 @@ ENV = 'development' # EBTS/开发环境 -#VUE_APP_BASE_API = '/dev-api' +VUE_APP_BASE_API = '/dev-api' #VUE_APP_BASE_API = 'http://192.168.190.67/dev-api' #VUE_APP_BASE_API = 'http://127.0.0.1:8085/dev-api' #VUE_APP_BASE_API = 'http://sistapi.hchyun.cn/dev-api' -VUE_APP_BASE_API = 'http://sist.swjtu.edu.cn/dev-api' +#VUE_APP_BASE_API = 'http://sist.swjtu.edu.cn/dev-api' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/ebts-ui/src/layout/components/Navbar.vue b/ebts-ui/src/layout/components/Navbar.vue index 4174d6e..fdded5c 100644 --- a/ebts-ui/src/layout/components/Navbar.vue +++ b/ebts-ui/src/layout/components/Navbar.vue @@ -133,10 +133,10 @@ export default { }, mounted() { this.initInform() - let notice_text = document.getElementById('notice_text') - notice_text.addEventListener('webkitAnimationEnd', function() { - this.style.marginLeft = 0 - }, false) + // let notice_text = document.getElementById('notice_text') + // notice_text.addEventListener('webkitAnimationEnd', function() { + // this.style.marginLeft = 0 + // }, false) // this.initFiche() }, methods: { diff --git a/ebts-ui/src/views/sist/article/components/article.vue b/ebts-ui/src/views/sist/article/components/article.vue index 8e5831c..99f2246 100644 --- a/ebts-ui/src/views/sist/article/components/article.vue +++ b/ebts-ui/src/views/sist/article/components/article.vue @@ -16,7 +16,8 @@ type="textarea" :rows="4" placeholder="请输入内容" - clearable :style="{width: '100%'}"> + clearable :style="{width: '100%'}" + > @@ -26,25 +27,27 @@ {{ item.dictLabel }} + :label="item.dictValue" + >{{ item.dictLabel }} - - - - - - - - - + + + + + + + + + {{ item.dictLabel }} + :label="item.dictValue" + >{{ item.dictLabel }} @@ -56,7 +59,8 @@ + placeholder="请选择文章类型" clearable :style="{width: '100%'}" + > + @change="getLabApprove(params.labArticleType)" clearable :style="{width: '100%'}" + > - + 选取文件 - + @@ -146,7 +151,8 @@ 保存草稿 - {{(isAuditShow.sist || isAuditShow.lab) ? "提交审核":"发布"}} + {{ (isAuditShow.sist || isAuditShow.lab) ? '提交审核' : '发布' }} + @@ -155,53 +161,52 @@ diff --git a/ebts-ui/src/views/utils/tinymce/Tinymce.vue b/ebts-ui/src/views/utils/tinymce/Tinymce.vue index 397c668..a44894b 100644 --- a/ebts-ui/src/views/utils/tinymce/Tinymce.vue +++ b/ebts-ui/src/views/utils/tinymce/Tinymce.vue @@ -174,19 +174,29 @@ export default { } }, mounted() { - tinymce.init({ - - images_upload_handler: (blobInfo, success, failure) => { - this.upload_handler(blobInfo, success, failure) - } - - }) + this.initTinymce() + // tinymce.init({ + // images_upload_handler: (blobInfo, success, failure) => { + // this.upload_handler(blobInfo, success, failure) + // } + // }) }, // created() { - // tinymce.init({}) + // this.initTinymce() + // tinymce.init({ + // images_upload_handler: (blobInfo, success, failure) => { + // this.upload_handler(blobInfo, success, failure) + // } + // }) // }, methods: { - + initTinymce(){ + tinymce.init({ + images_upload_handler: (blobInfo, success, failure) => { + this.upload_handler(blobInfo, success, failure) + } + }) + }, upload_handler(blobInfo, success, failure) { console.log('我被触发了') console.log(blobInfo, 'blobInfo') @@ -216,6 +226,7 @@ export default { }, watch: { value(newValue) { + // this.initTinymce() this.myValue = newValue }, myValue(newValue) {