diff --git a/main/.env.development b/main/.env.development index a332768..328aab0 100644 --- a/main/.env.development +++ b/main/.env.development @@ -12,5 +12,6 @@ VITE_APP_SUB_GSR = '//localhost:9530/new-digital-agriculture-screen/' # 接口 VITE_APP_BASE_API = '/apis' VITE_APP_BASE_URL = 'http://192.168.18.99:8080' +# VITE_APP_BASE_URL = 'http://192.168.18.14:8080'//线下测试 VITE_APP_UPLOAD_API = '/uploadApis' VITE_APP_UPLOAD_URL = 'http://192.168.18.99:8080' \ No newline at end of file diff --git a/main/src/views/login/index.vue b/main/src/views/login/index.vue index a11cc1a..78e67eb 100644 --- a/main/src/views/login/index.vue +++ b/main/src/views/login/index.vue @@ -16,7 +16,7 @@ - + 记住密码 @@ -61,13 +61,13 @@ export default { username: 'admin', password: 'admin123', rememberMe: false, - code: '', + code: '1', uuid: '', }, loginRules: { username: [{ required: true, trigger: 'blur', message: '请输入您的账号' }], password: [{ required: true, trigger: 'blur', message: '请输入您的密码' }], - code: [{ required: true, trigger: 'change', message: '请输入验证码' }], + // code: [{ required: true, trigger: 'change', message: '请输入验证码' }], }, loading: false, // 验证码开关 diff --git a/main/vite.config.js b/main/vite.config.js index 39d8c37..e836ec8 100644 --- a/main/vite.config.js +++ b/main/vite.config.js @@ -31,14 +31,14 @@ export default defineConfig(({ command, mode }) => { 'Access-Control-Allow-Origin': '*', }, proxy: { - // 仅 Brand 模块走子应用 DevServer - '/api/brand': { - target: 'http://localhost:9526', - changeOrigin: true, - // 如果想去掉 /api/brand 前缀(比如子应用实际监听的是 /brand/...), - // 可以加一个 rewrite: - // rewrite: path => path.replace(/^\/api\/brand/, '/brand'), - }, + // // 仅 Brand 模块走子应用 DevServer + // '/api/brand': { + // target: 'http://localhost:9526', + // changeOrigin: true, + // // 如果想去掉 /api/brand 前缀(比如子应用实际监听的是 /brand/...), + // // 可以加一个 rewrite: + // // rewrite: path => path.replace(/^\/api\/brand/, '/brand'), + // }, [VITE_APP_BASE_API]: { target: VITE_APP_BASE_URL, changeOrigin: true, diff --git a/new-digital-agriculture-screen/src/components/custom-scroll-title/index.vue b/new-digital-agriculture-screen/src/components/custom-scroll-title/index.vue index 86d8906..885e74c 100644 --- a/new-digital-agriculture-screen/src/components/custom-scroll-title/index.vue +++ b/new-digital-agriculture-screen/src/components/custom-scroll-title/index.vue @@ -55,6 +55,7 @@ const props = defineProps({ default() { return [ // { label: '首页', value: '/new-digital-agriculture-screen/v2/home' }, + { label: '首页', value: 'home' }, { label: '土地资源', value: '/new-digital-agriculture-screen/v2/land' }, { label: '投入品监管', value: '/new-digital-agriculture-screen/v2/inputs' }, { label: '产出品管理', value: '/new-digital-agriculture-screen/v2/entities' }, @@ -120,6 +121,10 @@ function handleTitleBtn(t = -1) { } } function handleTitleClick(val) { + if (val === 'home') { + window.location.href = 'http://47.109.205.240/platform'; + return; + } activeTitle.value = val; // emit('changeTitle', val); router.push({ path: val }); diff --git a/new-digital-agriculture-screen/src/views/inputs/components/inputsFive.vue b/new-digital-agriculture-screen/src/views/inputs/components/inputsFive.vue index dc549af..b8df1a9 100644 --- a/new-digital-agriculture-screen/src/views/inputs/components/inputsFive.vue +++ b/new-digital-agriculture-screen/src/views/inputs/components/inputsFive.vue @@ -27,9 +27,9 @@ const chartData = ref( // 各品类基础值 return [ - { type: '种子种苗', values: generateWaveData(15) }, + { type: '种子', values: generateWaveData(1) }, { type: '化肥', values: generateWaveData(20) }, - { type: '农药', values: generateWaveData(10) }, + { type: '农药', values: generateWaveData(2) }, ].flatMap(({ type, values }) => values.map((value, i) => ({ type, @@ -50,7 +50,7 @@ function hexToRGBA(hex, alpha = 1) { const chartOption = ref({ color: ['#02FD94', '#FEF906', '#01FEFD'], legend: { - data: ['种子种苗', '化肥', '农药'], + data: ['种子', '化肥', '农药'], top: 8, itemWidth: 12, // 矩形宽度 itemHeight: 12, // 矩形高度 @@ -104,7 +104,7 @@ const chartOption = ref({ }, series: [ { - name: '种子种苗', + name: '种子', type: 'line', smooth: true, symbol: 'none', diff --git a/new-digital-agriculture-screen/src/views/inputs/components/inputsFour.vue b/new-digital-agriculture-screen/src/views/inputs/components/inputsFour.vue index f06f6e1..79a60ec 100644 --- a/new-digital-agriculture-screen/src/views/inputs/components/inputsFour.vue +++ b/new-digital-agriculture-screen/src/views/inputs/components/inputsFour.vue @@ -1,12 +1,20 @@ diff --git a/sub-government-affairs-service/src/layouts/component/Menu/Icon.vue b/sub-government-affairs-service/src/layouts/component/Menu/Icon.vue index b4a3fb4..2f35310 100644 --- a/sub-government-affairs-service/src/layouts/component/Menu/Icon.vue +++ b/sub-government-affairs-service/src/layouts/component/Menu/Icon.vue @@ -1,10 +1,3 @@ -