参与情况
@@ -34,24 +34,30 @@
-
{{ data.accessCnt }}
+
参与数
-
{{ data.voteCnt }}
+
总票数
-
{{ data.viewCnt }}
+
浏览数
参与投票
@@ -65,23 +71,23 @@
通过对各级人员的软件平台培训,使其能够了解如何运用乾元坤和智能信息管理系统来提升企业管理水平,最大限度发挥软件产品在企业中的作用;
-
-
+
+
● 培训目标
-
-
+
+
1.使企业不同部门人员掌握便捷、有效的系统平台操作方法;
-
-
+
+
2.通过系统平台的培训提高员工对企业的管理理念认识与提升。
-
-
+
+
3.通过系统平台培训加强沟通,统一部署,协同工作,提高效率。
-
-
+
+
●培训对象
-
-
+
+
集团领导、各相关部门领导、总经理、车间主管、车间操作员等;
@@ -89,40 +95,52 @@
投票时间
-
+
距离结束还有
- {{ parseInt(dayjs(data.detail?.voteEndTime).diff(dayjs(), 'minute') / 60) }}
- 小时 {{ dayjs(data.detail?.voteEndTime).diff(dayjs(), 'minute') % 60 }} 分钟
+
投票说明
@@ -133,16 +151,22 @@
@@ -342,26 +366,26 @@ const handleClick = (tab, event) => {
.allbox1 {
margin-right: 22px;
background: linear-gradient(
- 0deg,
- rgba(160, 193, 230, 0) 0%,
- rgba(161, 195, 231, 0.2) 100%
+ 0deg,
+ rgba(160, 193, 230, 0) 0%,
+ rgba(161, 195, 231, 0.2) 100%
);
}
.allbox2 {
margin-right: 22px;
background: linear-gradient(
- 0deg,
- rgba(177, 219, 229, 0) 0%,
- rgba(172, 216, 227, 0.2) 100%
+ 0deg,
+ rgba(177, 219, 229, 0) 0%,
+ rgba(172, 216, 227, 0.2) 100%
);
}
.allbox3 {
background: linear-gradient(
- 0deg,
- rgba(195, 209, 234, 0) 0%,
- rgba(191, 206, 231, 0.2) 100%
+ 0deg,
+ rgba(195, 209, 234, 0) 0%,
+ rgba(191, 206, 231, 0.2) 100%
);
}
From 874ac9e6130e6f0c586dd9af709faa7829944680 Mon Sep 17 00:00:00 2001
From: yuping <82253452@qq.com>
Date: Sun, 11 Dec 2022 20:48:52 +0800
Subject: [PATCH 07/72] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=88=9D=E5=A7=8B?=
=?UTF-8?q?=E5=8C=96=20=E7=AC=AC=E4=B8=80=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/api.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/api/api.js b/src/api/api.js
index fcd3e44..f39940a 100644
--- a/src/api/api.js
+++ b/src/api/api.js
@@ -22,13 +22,13 @@ export const STU_OFFCOURSE_DETAIL = '/stu/offcourse/detail'
export const WORK_QUERYWORKDETAILBYID = '/work/queryWorkDetailById'
export const WORK_HISTROY = '/workSubmit/queryWorkDetailListByStuId'
export const EXAMINATION_QUERYEXAMINATIONDETAILBYID = '/examination/queryExaminationDetailById'
-export const DISCUSS_COLLECTION = '/discussSubmit/clickDiscussCollectionCountOr POST'
-export const DISCUSS_LIKE = '/discussSubmit/clickDiscussLikeCountOr POST'
+export const DISCUSS_COLLECTION = '/discussSubmit/clickDiscussCollectionCountOr post'
+export const DISCUSS_LIKE = '/discussSubmit/clickDiscussLikeCountOr post'
export const DISCUSS_LIST = '/discussSubmit/list'
export const DISCUSS_DETAIL = '/discuss/getDiscussDetail'
export const DISCUSS_SUBMIT_REVIEW_LIST = '/discussSubmit/queryDiscussSubmitAndReview'
export const COMMENT_LIST = '/comment/list'
-export const COMMENT_ADD = '/comment POST'
-export const COMMENT_PRAISE = '/comment/praise POST'
-export const COMMENT_COLLECTION = '/comment/collection POST'
+export const COMMENT_ADD = '/comment post'
+export const COMMENT_PRAISE = '/comment/praise post'
+export const COMMENT_COLLECTION = '/comment/collection post'
From b98e1f29be603cf964549d21fa624e48583aa46f Mon Sep 17 00:00:00 2001
From: yuping <82253452@qq.com>
Date: Sun, 11 Dec 2022 21:18:27 +0800
Subject: [PATCH 08/72] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=88=9D=E5=A7=8B?=
=?UTF-8?q?=E5=8C=96=20=E7=AC=AC=E4=B8=80=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/api.js | 2 +-
src/views/ballot/BallotPage.vue | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/api/api.js b/src/api/api.js
index 176d87f..3359976 100644
--- a/src/api/api.js
+++ b/src/api/api.js
@@ -39,7 +39,7 @@ export const DISCUSS_SUBMIT_REVIEW_LIST = '/discussSubmit/queryDiscussSubmitAndR
export const COMMENT_LIST = '/comment/list'
-export const VOTE_DETAIL2 = '/vote/queryStemByStemId post'
+export const VOTE_DETAIL2= ballotId => `/vote/queryStemByStemId?ballotId=${ballotId} post`
export const COMMENT_ADD = '/comment post'
export const COMMENT_PRAISE = '/comment/praise post'
export const COMMENT_COLLECTION = '/comment/collection post'
diff --git a/src/views/ballot/BallotPage.vue b/src/views/ballot/BallotPage.vue
index 1761b5c..31f9d57 100644
--- a/src/views/ballot/BallotPage.vue
+++ b/src/views/ballot/BallotPage.vue
@@ -165,7 +165,7 @@ import { useRoute } from "vue-router/dist/vue-router";
const {
query: { ballotId = 3 },
} = useRoute();
-const { data: dataInfo } = useRequest(VOTE_DETAIL2, { ballotId });
+const { data: dataInfo } = useRequest(VOTE_DETAIL2(ballotId));
console.log("dataInfo", dataInfo);
const handleClick = (tab, event) => {
console.log(tab, event);
From 322d1313287bb103dad01b8e38ff54eb1080bfbe Mon Sep 17 00:00:00 2001
From: lixg
Date: Sun, 11 Dec 2022 21:23:51 +0800
Subject: [PATCH 09/72] =?UTF-8?q?feat:=E5=90=88=E5=B9=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/api.js | 4 +-
vite.config.js | 114 +++++++++++++++++++++++++------------------------
2 files changed, 61 insertions(+), 57 deletions(-)
diff --git a/src/api/api.js b/src/api/api.js
index 176d87f..591c295 100644
--- a/src/api/api.js
+++ b/src/api/api.js
@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2022-12-11 16:57:58
* @LastEditors: lixg lixg@dongwu-inc.com
- * @LastEditTime: 2022-12-11 21:00:20
+ * @LastEditTime: 2022-12-11 21:21:16
* @FilePath: /fe-stu/src/api/api.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
@@ -39,7 +39,7 @@ export const DISCUSS_SUBMIT_REVIEW_LIST = '/discussSubmit/queryDiscussSubmitAndR
export const COMMENT_LIST = '/comment/list'
-export const VOTE_DETAIL2 = '/vote/queryStemByStemId post'
+export const VOTE_DETAIL2 = ballotId => `/vote/queryStemByStemId?ballotId=${ballotId} post`
export const COMMENT_ADD = '/comment post'
export const COMMENT_PRAISE = '/comment/praise post'
export const COMMENT_COLLECTION = '/comment/collection post'
diff --git a/vite.config.js b/vite.config.js
index 2226a4d..738747b 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -2,69 +2,73 @@
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2022-11-21 17:28:10
* @LastEditors: lixg lixg@dongwu-inc.com
- * @LastEditTime: 2022-11-22 12:45:57
+ * @LastEditTime: 2022-12-11 21:11:35
* @FilePath: /fe-stu/vite.config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
-import {defineConfig} from 'vite'
+import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import legacy from '@vitejs/plugin-legacy'
-import {viteMockServe} from 'vite-plugin-mock'
+import { viteMockServe } from 'vite-plugin-mock'
import topLevelAwait from "vite-plugin-top-level-await";
const path = require('path')
-export default defineConfig(({command}) =>
- ({
- base: '/fe-student',
- plugins: [
- vue(),
- // legacy({
- // targets: ['chrome 64', 'defaults', 'not IE 11']
- // }),
- topLevelAwait({
- promiseExportName: '__tla',
- promiseImportName: i => `__tla_${i}`
- }),
- // viteMockServe({
- // mockPath: './src/mock/mocks',
- // })
- ],
- resolve: {
- alias: [
- {find: '@', replacement: path.resolve(__dirname, 'src')}
- ]
- }, server: {
- proxy: {
- '/file/upload': {
- target: 'http://111.231.196.214:30001',
- changeOrigin: true,
- },
- '/stu': {
- target: 'http://localhost:30001',
- changeOrigin: true,
- },
- '/queryVoteSubmitDetailById': {
- target: 'http://localhost:30001',
- changeOrigin: true,
- },
- '/work': {
- target: 'http://localhost:30001',
- changeOrigin: true,
- },
- '/discuss': {
- target: 'http://localhost:30001',
- changeOrigin: true,
- },
- '/discussSubmit': {
- target: 'http://localhost:30001',
- changeOrigin: true,
- },
- '/comment': {
- target: 'http://localhost:30001',
- changeOrigin: true,
- },
- }
+export default defineConfig(({ command }) =>
+({
+ base: '/fe-student',
+ plugins: [
+ vue(),
+ // legacy({
+ // targets: ['chrome 64', 'defaults', 'not IE 11']
+ // }),
+ topLevelAwait({
+ promiseExportName: '__tla',
+ promiseImportName: i => `__tla_${i}`
+ }),
+ // viteMockServe({
+ // mockPath: './src/mock/mocks',
+ // })
+ ],
+ resolve: {
+ alias: [
+ { find: '@', replacement: path.resolve(__dirname, 'src') }
+ ]
+ }, server: {
+ proxy: {
+ '/file/upload': {
+ target: 'http://111.231.196.214:30001',
+ changeOrigin: true,
+ },
+ '/stu': {
+ target: 'http://localhost:30001',
+ changeOrigin: true,
+ },
+ '/queryVoteSubmitDetailById': {
+ target: 'http://localhost:30001',
+ changeOrigin: true,
+ },
+ '/work': {
+ target: 'http://localhost:30001',
+ changeOrigin: true,
+ },
+ '/discuss': {
+ target: 'http://localhost:30001',
+ changeOrigin: true,
+ },
+ '/discussSubmit': {
+ target: 'http://localhost:30001',
+ changeOrigin: true,
+ },
+ '/comment': {
+ target: 'http://localhost:30001',
+ changeOrigin: true,
+ },
+ '/vote': {
+ target: 'http://111.231.196.214:12013/manageApi',
+ changeOrigin: true,
+ },
}
- })
+ }
+})
)
From 1693c2db1d1f923a091caae159d2f78b0c3e5711 Mon Sep 17 00:00:00 2001
From: yuping <82253452@qq.com>
Date: Sun, 11 Dec 2022 23:56:13 +0800
Subject: [PATCH 10/72] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=88=9D=E5=A7=8B?=
=?UTF-8?q?=E5=8C=96=20=E7=AC=AC=E4=B8=80=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/api.js | 1 +
src/api/request.js | 25 ++++++------
src/api/utils.js | 12 +++++-
src/views/discuss/DiscussPage.vue | 45 +++++++++++-----------
src/views/login/login.vue | 64 +++++++++++++++++++++++++++++++
5 files changed, 111 insertions(+), 36 deletions(-)
create mode 100644 src/views/login/login.vue
diff --git a/src/api/api.js b/src/api/api.js
index 3359976..fd80dfc 100644
--- a/src/api/api.js
+++ b/src/api/api.js
@@ -7,6 +7,7 @@
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
export const BASE = 'http://111.231.196.214:30001/manageApi'
+export const LOGIN = '/admin/CheckUser/userLogin post'
// export const FILE_UPLOAD = 'http://111.231.196.214:30001/file/upload'
export const FILE_UPLOAD = '/file/upload'
export const COMMON_TOKEN = 'https://upload-z2.qiniup.com'
diff --git a/src/api/request.js b/src/api/request.js
index 79e8f87..689d18b 100644
--- a/src/api/request.js
+++ b/src/api/request.js
@@ -1,5 +1,5 @@
import router from "@/router";
-import { ref, watch } from "vue";
+import {ref, watch} from "vue";
import axios from 'axios';
export function useRequest(_url, params = {}) {
@@ -30,7 +30,7 @@ export function useRequest(_url, params = {}) {
export async function request(_url, params) {
const s = _url.split(' ')
let url = s[0]
- const method = s[1] || 'get'
+ const method = s[1]?.toLowerCase() || 'get'
if (method === 'get') {
let paramsArray = [];
//拼接参数
@@ -49,22 +49,23 @@ export async function request(_url, params) {
method,
headers: {
'X-Token': localStorage.getItem('token'),
- ...method !== 'get' ? { 'Content-Type': 'application/json' } : {}
+ ...method !== 'get' ? {'Content-Type': 'application/json'} : {}
},
baseURL: '',
- ...method !== 'get' ? { data: JSON.stringify(body) } : {}
+ ...method !== 'get' ? {data: JSON.stringify(body)} : {}
}).then(resp => resp.data).then(response => {
if (response.code !== 200 && response.code !== 0) {
- if (response.code === 3 || response.code === 4 || response.code === 100) {
- // router.push({path: '/login'})
- return
+ console.log(1111111111)
+ console.log(response.code)
+ if (import.meta.env.DEV && response.code === 1000) {
+ router.push({path: '/login'})
} else {
- // response.showMsg && notification.open({
- // message: response.showMsg,
- // duration: 2,
- // });
- return
+ // response.showMsg && notification.open({
+ // message: response.showMsg,
+ // duration: 2,
+ // });
}
+ throw new Error('接口异常')
}
return response
}).catch(e => {
diff --git a/src/api/utils.js b/src/api/utils.js
index b749636..bf71f6e 100644
--- a/src/api/utils.js
+++ b/src/api/utils.js
@@ -1,3 +1,13 @@
-export function useImage(src){
+export function useImage(src) {
return new URL(`../assets/image/${src}`, import.meta.url).href
+}
+
+export function setCookie(name, value, perpetual) {
+ const d = new Date()
+ d.setDate(perpetual * 24 * 60 * 60 * 1000)
+ document.cookie = `${name}=${value};expires=${d.toGMTString()};path=/`
+}
+
+export function getCookie(name) {
+ return document.cookie?.split(";").find(e => e.includes(name)).replace(`${name}=`, '') || ''
}
\ No newline at end of file
diff --git a/src/views/discuss/DiscussPage.vue b/src/views/discuss/DiscussPage.vue
index fcbfd6c..3fdd151 100644
--- a/src/views/discuss/DiscussPage.vue
+++ b/src/views/discuss/DiscussPage.vue
@@ -63,18 +63,18 @@
{{ d.discussExplain }}