From 72938d640743d15a6b4ebc078a0efcca6c2b5394 Mon Sep 17 00:00:00 2001 From: yangzhq68909 <993367776@qq.com> Date: Fri, 20 Jun 2025 10:51:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E5=86=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env/.env | 4 ++-- env/.env.development | 7 +++++-- src/api/pages/sc/index.ts | 9 ++++----- src/manifest.json | 2 +- src/pages-operate/sc/index.vue | 7 ++----- src/pages/login/login.vue | 4 ++-- 6 files changed, 16 insertions(+), 17 deletions(-) diff --git a/env/.env b/env/.env index fa5fd9f..8a9e6a3 100644 --- a/env/.env +++ b/env/.env @@ -1,9 +1,9 @@ VITE_APP_TITLE = '数智产销' VITE_APP_PORT = 9000 -#VITE_UNI_APPID = '__UNI__9F097F0' +VITE_UNI_APPID = '__UNI__9F097F0' #测试APPID -VITE_UNI_APPID = '__UNI__1B02D50' +#VITE_UNI_APPID = '__UNI__1B02D50' VITE_WX_APPID = 'wx8e287639924edb51' #发布版本号 diff --git a/env/.env.development b/env/.env.development index cfea491..f347345 100644 --- a/env/.env.development +++ b/env/.env.development @@ -7,8 +7,11 @@ VITE_SHOW_SOURCEMAP = true # 是否启用读取配置文件 min #VITE_WEBAPP = 'D://opt//AppUpdateTest' VITE_WEBAPP = '' -#VITE_SERVER_BASEURL = 'http://10.75.15.247:8080/jeecg-boot' +VITE_SERVER_BASEURL = 'http://10.75.15.249:8080/jeecg-boot' #VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot' -VITE_SERVER_BASEURL = 'https://szcx.zyyt.sinopec.com/jeecg-boot' +#VITE_SERVER_BASEURL = 'https://szcx.zyyt.sinopec.com/jeecg-boot' + + + #VITE_SERVER_BASEURL = 'https://szcx.zyyt.sinopec.com/wwapi' #VITE_SERVER_BASEURL = 'https://szcx.zyyt.sinopec.com/yjapi' \ No newline at end of file diff --git a/src/api/pages/sc/index.ts b/src/api/pages/sc/index.ts index 0f6c53a..bfd3db7 100644 --- a/src/api/pages/sc/index.ts +++ b/src/api/pages/sc/index.ts @@ -1,18 +1,17 @@ import { http } from '@/utils/http'; -export function getListApi(orgCode : string) { +export function getListApi() { return http({ url: '/sjgl.scnr/cxcSjSc/queryTreeData', - method: 'GET', - data: { orgCode } + method: 'GET' }) } -export function getJobDesIdByDepAndName(config : Object) { +export function getJobDesIdByDepAndName(jobname : string) { return http({ url: '/sjgl.tynr/cxcSjJobdescription/queryByNameDep', method: 'GET', - data: config + data: { jobname } }) } diff --git a/src/manifest.json b/src/manifest.json index 4ae261f..cf7c67b 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,6 +1,6 @@ { "name": "数智产销", - "appid": "__UNI__1B02D50", + "appid": "__UNI__9F097F0", "description": "", "versionName": "2.0.0", "versionCode": "20250616", diff --git a/src/pages-operate/sc/index.vue b/src/pages-operate/sc/index.vue index e8d57d4..2628dc1 100644 --- a/src/pages-operate/sc/index.vue +++ b/src/pages-operate/sc/index.vue @@ -83,10 +83,7 @@ new base64().encode(baseUrl + url)) } } else if (/^-?\d+$/.test(quote) && !insFlag) { - getJobDesIdByDepAndName({ - jobname: quote, - jobdep: useUserStore().userInfo.orgCode - }).then((res) => { + getJobDesIdByDepAndName(quote).then((res) => { fileUrl.value = getEnvBaseUrl() + '/jmreport/view/929517863011811328?id=' + res .id + "&token=" + useUserStore().userInfo.token; @@ -113,7 +110,7 @@ } const getList = () => { - getListApi(useUserStore().userInfo.orgCode).then(res => { + getListApi().then(res => { data.value = res.result dataSource.value = [data.value.map(item => { return { diff --git a/src/pages/login/login.vue b/src/pages/login/login.vue index d1cbda1..72d8ac9 100644 --- a/src/pages/login/login.vue +++ b/src/pages/login/login.vue @@ -105,9 +105,9 @@ let pw = Base64.encode(encodeURIComponent(password.value)) loading.value = true /*生产环境 begin */ - loginApi({ username: un, password: pw }) + // loginApi({ username: un, password: pw }) /*开发环境 begin */ - // loginApi({ username: userName.value, password: password.value, captcha: 'app' }) + loginApi({ username: userName.value, password: password.value, captcha: 'app' }) .then((res : any) => { if (res.success) { const { result } = res