From 0344e5d7b97e9452ca98664d9e76a2ac5a631a0b Mon Sep 17 00:00:00 2001 From: quantulr <35954003+quantulr@users.noreply.github.com> Date: Wed, 7 Sep 2022 14:24:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?expertform=20siteoptions=20=E4=BC=A0?= =?UTF-8?q?=E5=85=A5=E9=80=89=E9=A1=B9=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 3 + src/views/components/ExpertForm/index.vue | 10 +- src/views/components/ResearchForm/index.vue | 189 ++++++++++++-------- vite.config.js | 2 +- 4 files changed, 124 insertions(+), 80 deletions(-) diff --git a/src/main.js b/src/main.js index 28725e7..c9ed4c4 100644 --- a/src/main.js +++ b/src/main.js @@ -41,6 +41,8 @@ import ImagePreview from "@/components/ImagePreview" import TreeSelect from '@/components/TreeSelect' // 字典标签组件 import DictTag from '@/components/DictTag' +// wangEditor 富文本编辑器 +import WangEditor from '@/components/WangEditor' const app = createApp(App) @@ -62,6 +64,7 @@ app.component('FileUpload', FileUpload) app.component('ImageUpload', ImageUpload) app.component('ImagePreview', ImagePreview) app.component('RightToolbar', RightToolbar) +app.component('WangEditor', WangEditor) app.use(router) app.use(store) diff --git a/src/views/components/ExpertForm/index.vue b/src/views/components/ExpertForm/index.vue index 30056d3..eb08ef9 100644 --- a/src/views/components/ExpertForm/index.vue +++ b/src/views/components/ExpertForm/index.vue @@ -85,7 +85,7 @@ - + @@ -411,7 +411,6 @@ const validateForm = async () => { } const cityFormValid = await cityFormRef.value.validateForm(); const fieldFormValid = await fieldFormRef.value.validateForm(); - console.log(fieldFormValid); const keywordsFormValid = await keywordsFormRef.value.validateForm(); if (formType.value == 1) { //个人 @@ -437,6 +436,13 @@ const validateForm = async () => { throw "未知的formType"; } }; + +// 获取站点列表 +const getSiteList = async () => { + const resp = await tenantSelect(); + siteList.value = resp.rows; +}; +getSiteList(); defineExpose({ validateForm, }); diff --git a/src/views/components/ResearchForm/index.vue b/src/views/components/ResearchForm/index.vue index 144c149..2a4d027 100644 --- a/src/views/components/ResearchForm/index.vue +++ b/src/views/components/ResearchForm/index.vue @@ -1,7 +1,7 @@ - + \ No newline at end of file + diff --git a/vite.config.js b/vite.config.js index b2e95be..8b6f631 100644 --- a/vite.config.js +++ b/vite.config.js @@ -31,7 +31,7 @@ export default defineConfig(({ mode, command }) => { proxy: { // https://cn.vitejs.dev/config/#server-proxy '/dev-api': { - target: 'http://192.168.31.162:1618', + target: 'http://120.26.107.74:1618', changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, '') } From cb011831ac6dfd4175d892e5b550e069d148bcdc Mon Sep 17 00:00:00 2001 From: quantulr <35954003+quantulr@users.noreply.github.com> Date: Wed, 7 Sep 2022 14:27:09 +0800 Subject: [PATCH 2/2] fixed --- src/views/components/ExpertForm/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/components/ExpertForm/index.vue b/src/views/components/ExpertForm/index.vue index eb08ef9..7f98461 100644 --- a/src/views/components/ExpertForm/index.vue +++ b/src/views/components/ExpertForm/index.vue @@ -294,6 +294,7 @@ import CityOptions from "@/views/components/CityOptions"; import InputBoxAdd from "@/views/components/InputBoxAdd"; import { researchSelect } from "@/api/dataList/research"; import { laboratorySelect } from "@/api/dataList/laboratory"; +import { tenantSelect } from "@/api/subPlatform/tenant"; import { enterpriseOptions } from "@/utils/parameter"; import { reactive, ref, toRefs } from "vue"; import WangEditor from "../../../components/WangEditor/index.vue";