From 32b8d8107f020331d42bd6f652567cc851e29987 Mon Sep 17 00:00:00 2001 From: wxz Date: Mon, 11 Nov 2024 14:08:31 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86140=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E7=8E=AF=E5=A2=83=E7=9A=84=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epmet-oper-web/.env.production.sit.project | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 epmet-oper-web/.env.production.sit.project diff --git a/epmet-oper-web/.env.production.sit.project b/epmet-oper-web/.env.production.sit.project new file mode 100644 index 0000000..582619c --- /dev/null +++ b/epmet-oper-web/.env.production.sit.project @@ -0,0 +1,5 @@ +NODE_ENV=production +VUE_APP_API_SERVER = http://192.168.1.140/api +# VUE_APP_API_SERVER = http://192.168.1.140/api +VUE_APP_NODE_ENV=prod:sit-project +VUE_APP_PUBLIC_PATH=epmet-oper \ No newline at end of file From 9ed9eb3a31909cbe0a76c6df0f9a3bdfc0b8fe13 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Mon, 23 Dec 2024 14:06:50 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=BA=BF=E4=B8=8A=E5=90=8C=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=E4=B8=8B=E4=B8=8E=E5=B7=A5=E4=BD=9C=E7=AB=AFtoken?= =?UTF-8?q?=E5=86=B2=E7=AA=81=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epmet-oper-web/.env.development | 4 +- epmet-oper-web/.vscode/settings.json | 2 +- .../src/ren-process-detail.vue | 49 +++-- epmet-oper-web/src/js/ajax.js | 38 ++-- epmet-oper-web/src/main.js | 4 +- epmet-oper-web/src/mixins/view-module-post.js | 45 +++-- epmet-oper-web/src/mixins/view-module.js | 18 +- epmet-oper-web/src/utils/request.js | 6 +- .../src/views/modules/activiti/model.vue | 41 ++-- .../views/modules/activiti/process-deploy.vue | 33 +--- .../modules/activiti/process-initiation.vue | 48 +++-- .../src/views/modules/activiti/process.vue | 71 +++---- .../message/mail-template-add-or-update.vue | 60 ++---- .../src/views/modules/oss/oss-upload.vue | 33 +--- .../views/modules/sys/news-add-or-update.vue | 63 ++---- .../modules/sys/upgrade-version-history.vue | 182 ++++++++---------- epmet-oper-web/src/views/pages/login.vue | 54 ++---- 17 files changed, 316 insertions(+), 435 deletions(-) diff --git a/epmet-oper-web/.env.development b/epmet-oper-web/.env.development index 1dcd7c9..bc8d0ec 100644 --- a/epmet-oper-web/.env.development +++ b/epmet-oper-web/.env.development @@ -1,7 +1,7 @@ NODE_ENV=development # VUE_APP_API_SERVER = http://118.190.150.119:41080/api -VUE_APP_API_SERVER = http://localhost:8080/api -# VUE_APP_API_SERVER = http://192.168.1.144/api +# VUE_APP_API_SERVER = http://localhost:8080/api +VUE_APP_API_SERVER = http://192.168.1.144/api # VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn/api VUE_APP_NODE_ENV=dev diff --git a/epmet-oper-web/.vscode/settings.json b/epmet-oper-web/.vscode/settings.json index 2eab4ad..a51fff7 100644 --- a/epmet-oper-web/.vscode/settings.json +++ b/epmet-oper-web/.vscode/settings.json @@ -31,7 +31,7 @@ } }, "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "git.enableSmartCommit": true } diff --git a/epmet-oper-web/src/components/ren-process-detail/src/ren-process-detail.vue b/epmet-oper-web/src/components/ren-process-detail/src/ren-process-detail.vue index 5eef7df..2e80d90 100644 --- a/epmet-oper-web/src/components/ren-process-detail/src/ren-process-detail.vue +++ b/epmet-oper-web/src/components/ren-process-detail/src/ren-process-detail.vue @@ -4,39 +4,34 @@

{{ $t('process.circulation') }}

- - - - - - - + + + + + + + -
diff --git a/epmet-oper-web/src/views/pages/login.vue b/epmet-oper-web/src/views/pages/login.vue index aad890b..cd376f6 100644 --- a/epmet-oper-web/src/views/pages/login.vue +++ b/epmet-oper-web/src/views/pages/login.vue @@ -7,13 +7,8 @@
- +

@@ -100,7 +80,7 @@ import debounce from 'lodash/debounce' import { messages } from '@/i18n' import { getUUID, encryptedData } from '@/utils' export default { - data() { + data () { return { i18nMessages: messages, captchaPath: '', @@ -117,7 +97,7 @@ export default { } }, computed: { - dataRule() { + dataRule () { return { phone: [{ required: true, message: '手机号不能为空', trigger: 'blur' }], password: [ @@ -129,7 +109,7 @@ export default { } } }, - created() { + created () { this.getCaptcha() //获取公钥 @@ -137,13 +117,13 @@ export default { }, methods: { // 获取验证码 - getCaptcha() { + getCaptcha () { this.dataForm.uuid = getUUID() this.captchaPath = `${window.SITE_CONFIG['apiURL']}/auth/login/captcha?uuid=${this.dataForm.uuid}` }, // 获取公钥 - getPubKey() { + getPubKey () { this.$http .post('/auth/govweb/getKey') .then(({ data: res }) => { @@ -153,7 +133,7 @@ export default { this.pubKey = res.data // 获取到公钥; }) - .catch(() => {}) + .catch(() => { }) }, // 表单提交 @@ -177,11 +157,11 @@ export default { return this.$message.error(res.msg) } localStorage.setItem('userType', 'oper') - localStorage.setItem('token', res.data.token) - Cookies.set('token', res.data.token) - this.$router.replace({ name: 'home' }).catch(() => {}) + localStorage.setItem('oper_token', res.data.token) + Cookies.set('oper_token', res.data.token) + this.$router.replace({ name: 'home' }).catch(() => { }) }) - .catch(() => {}) + .catch(() => { }) }) }, 1000,