From 9435f6de36f7c97290546608ecbc6aa7f5fb5030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Thu, 13 Jul 2023 15:18:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PC/InterFace.Dash/public/config.js | 3 +- PC/InterFace.Dash/src/api/wms-interface.js | 3 +- .../src/components/umyTable/index.vue | 7 +- PC/InterFace.Dash/src/permission.js | 24 +-- .../src/views/interfaceBoard/TestSchool.vue | 181 +++++++++++++++++ .../interfaceBoard/demo_detail_addbase.vue | 182 ++++++++++++++++++ .../{demo.vue => demo_read.vue} | 0 7 files changed, 383 insertions(+), 17 deletions(-) create mode 100644 PC/InterFace.Dash/src/views/interfaceBoard/TestSchool.vue create mode 100644 PC/InterFace.Dash/src/views/interfaceBoard/demo_detail_addbase.vue rename PC/InterFace.Dash/src/views/interfaceBoard/{demo.vue => demo_read.vue} (100%) diff --git a/PC/InterFace.Dash/public/config.js b/PC/InterFace.Dash/public/config.js index d026a2e..a278f28 100644 --- a/PC/InterFace.Dash/public/config.js +++ b/PC/InterFace.Dash/public/config.js @@ -1,5 +1,6 @@ // dev_win -window.SITE_CONFIG['base'] = 'http://dev.ccwin-in.com:60068' +// window.SITE_CONFIG['base'] = 'http://dev.ccwin-in.com:60068' +window.SITE_CONFIG['base'] = 'http://192.168.0.197:60068' window.SITE_CONFIG['columnsApiNames'] = '/api/abp/application-configuration' window.SITE_CONFIG['columnsApiNamesZh'] = 'Z' window.SITE_CONFIG['isAutoLogin'] = true diff --git a/PC/InterFace.Dash/src/api/wms-interface.js b/PC/InterFace.Dash/src/api/wms-interface.js index a594b66..852f40a 100644 --- a/PC/InterFace.Dash/src/api/wms-interface.js +++ b/PC/InterFace.Dash/src/api/wms-interface.js @@ -15,7 +15,8 @@ const initParams = (data) => { export function getInterfaceBoard() { return request({ method:'get', - url: base_api + colum_url + url: base_api + colum_url, + params:{IncludeLocalizationResources:true} }) } diff --git a/PC/InterFace.Dash/src/components/umyTable/index.vue b/PC/InterFace.Dash/src/components/umyTable/index.vue index 0a4e05b..ab2d7c9 100644 --- a/PC/InterFace.Dash/src/components/umyTable/index.vue +++ b/PC/InterFace.Dash/src/components/umyTable/index.vue @@ -347,6 +347,7 @@ { if(this.$refs.copyJsonTextarea_ref){ this.$refs.copyJsonTextarea_ref.focus() - // this.$nextTick(()=>{ - // this.$refs.copyJsonTextarea_ref.scrollTop = 0 - // }) + this.$nextTick(()=>{ + document.getElementById('copyJsonTextarea_dialog_ref').scrollTop = 0 + }) } }) }, diff --git a/PC/InterFace.Dash/src/permission.js b/PC/InterFace.Dash/src/permission.js index 49210b5..537c477 100644 --- a/PC/InterFace.Dash/src/permission.js +++ b/PC/InterFace.Dash/src/permission.js @@ -82,18 +82,18 @@ router.beforeEach(async (to, from, next) => { } }else{ // 重新获取api接口表头 - const _interfaceBoardColumnsNames = localStorage.getItem("interfaceBoardColumnsNames") - if( !_interfaceBoardColumnsNames || _interfaceBoardColumnsNames == 'undefined' || _interfaceBoardColumnsNames == 'null'){ - getInterfaceBoard().then(result => { - let _zh = localStorage.getItem('columnsApiNamesZh') - localStorage.setItem("interfaceBoardColumnsNames", JSON.stringify(result.localization.values[_zh])); - setTimeout(()=>{ - next() - },0) - }) - }else{ - next() - } + // const _interfaceBoardColumnsNames = localStorage.getItem("interfaceBoardColumnsNames") + // if( !_interfaceBoardColumnsNames || _interfaceBoardColumnsNames == 'undefined' || _interfaceBoardColumnsNames == 'null'){ + getInterfaceBoard().then(result => { + let _zh = localStorage.getItem('columnsApiNamesZh') + localStorage.setItem("interfaceBoardColumnsNames", JSON.stringify(result.localization.values[_zh])); + setTimeout(()=>{ + next() + },0) + }) + // }else{ + // next() + // } } diff --git a/PC/InterFace.Dash/src/views/interfaceBoard/TestSchool.vue b/PC/InterFace.Dash/src/views/interfaceBoard/TestSchool.vue new file mode 100644 index 0000000..d861436 --- /dev/null +++ b/PC/InterFace.Dash/src/views/interfaceBoard/TestSchool.vue @@ -0,0 +1,181 @@ + + + \ No newline at end of file diff --git a/PC/InterFace.Dash/src/views/interfaceBoard/demo_detail_addbase.vue b/PC/InterFace.Dash/src/views/interfaceBoard/demo_detail_addbase.vue new file mode 100644 index 0000000..871644f --- /dev/null +++ b/PC/InterFace.Dash/src/views/interfaceBoard/demo_detail_addbase.vue @@ -0,0 +1,182 @@ + + + \ No newline at end of file diff --git a/PC/InterFace.Dash/src/views/interfaceBoard/demo.vue b/PC/InterFace.Dash/src/views/interfaceBoard/demo_read.vue similarity index 100% rename from PC/InterFace.Dash/src/views/interfaceBoard/demo.vue rename to PC/InterFace.Dash/src/views/interfaceBoard/demo_read.vue