mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-13 04:46:48 +08:00
fix:增加版本号
This commit is contained in:
44
package-lock.json
generated
44
package-lock.json
generated
@@ -11,7 +11,8 @@
|
|||||||
"axios": "^1.1.3",
|
"axios": "^1.1.3",
|
||||||
"core-js": "^3.26.0",
|
"core-js": "^3.26.0",
|
||||||
"dayjs": "^1.11.6",
|
"dayjs": "^1.11.6",
|
||||||
"element-plus": "^2.2.20",
|
"element-plus": "^2.2.27",
|
||||||
|
"json-bigint": "^1.0.0",
|
||||||
"vue": "^3.2.45",
|
"vue": "^3.2.45",
|
||||||
"vue-router": "^4.1.6",
|
"vue-router": "^4.1.6",
|
||||||
"vuex": "^4.1.0"
|
"vuex": "^4.1.0"
|
||||||
@@ -3968,6 +3969,14 @@
|
|||||||
"node": "*"
|
"node": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/bignumber.js": {
|
||||||
|
"version": "9.1.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/bignumber.js/-/bignumber.js-9.1.1.tgz",
|
||||||
|
"integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==",
|
||||||
|
"engines": {
|
||||||
|
"node": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/binary-extensions": {
|
"node_modules/binary-extensions": {
|
||||||
"version": "2.2.0",
|
"version": "2.2.0",
|
||||||
"resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.2.0.tgz",
|
"resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.2.0.tgz",
|
||||||
@@ -5465,9 +5474,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/element-plus": {
|
"node_modules/element-plus": {
|
||||||
"version": "2.2.22",
|
"version": "2.2.27",
|
||||||
"resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.2.22.tgz",
|
"resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.2.27.tgz",
|
||||||
"integrity": "sha512-gg2g2WOMNpWf0wGesymUvTV0VZDF/4khQKroSNeCV/vWJ/cqssPYdtqfGxTiFRt/f+JpyFkV7O1mo0yzMCzrBg==",
|
"integrity": "sha512-P04HDOZBYDdvlYuleuCZRULzAc5xJVOBfLDK9xWxVo0vyo8ntdaXS5sTU+/76vrNzuO3FhLn9kvrsbiJEVa1jg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ctrl/tinycolor": "^3.4.1",
|
"@ctrl/tinycolor": "^3.4.1",
|
||||||
"@element-plus/icons-vue": "^2.0.6",
|
"@element-plus/icons-vue": "^2.0.6",
|
||||||
@@ -7682,6 +7691,14 @@
|
|||||||
"node": ">=4"
|
"node": ">=4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/json-bigint": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/json-bigint/-/json-bigint-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"bignumber.js": "^9.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/json-parse-better-errors": {
|
"node_modules/json-parse-better-errors": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmmirror.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
|
"resolved": "https://registry.npmmirror.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
|
||||||
@@ -15310,6 +15327,11 @@
|
|||||||
"integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==",
|
"integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"bignumber.js": {
|
||||||
|
"version": "9.1.1",
|
||||||
|
"resolved": "https://registry.npmmirror.com/bignumber.js/-/bignumber.js-9.1.1.tgz",
|
||||||
|
"integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig=="
|
||||||
|
},
|
||||||
"binary-extensions": {
|
"binary-extensions": {
|
||||||
"version": "2.2.0",
|
"version": "2.2.0",
|
||||||
"resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.2.0.tgz",
|
"resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.2.0.tgz",
|
||||||
@@ -16527,9 +16549,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"element-plus": {
|
"element-plus": {
|
||||||
"version": "2.2.22",
|
"version": "2.2.27",
|
||||||
"resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.2.22.tgz",
|
"resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.2.27.tgz",
|
||||||
"integrity": "sha512-gg2g2WOMNpWf0wGesymUvTV0VZDF/4khQKroSNeCV/vWJ/cqssPYdtqfGxTiFRt/f+JpyFkV7O1mo0yzMCzrBg==",
|
"integrity": "sha512-P04HDOZBYDdvlYuleuCZRULzAc5xJVOBfLDK9xWxVo0vyo8ntdaXS5sTU+/76vrNzuO3FhLn9kvrsbiJEVa1jg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@ctrl/tinycolor": "^3.4.1",
|
"@ctrl/tinycolor": "^3.4.1",
|
||||||
"@element-plus/icons-vue": "^2.0.6",
|
"@element-plus/icons-vue": "^2.0.6",
|
||||||
@@ -18181,6 +18203,14 @@
|
|||||||
"integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==",
|
"integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"json-bigint": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/json-bigint/-/json-bigint-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==",
|
||||||
|
"requires": {
|
||||||
|
"bignumber.js": "^9.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"json-parse-better-errors": {
|
"json-parse-better-errors": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmmirror.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
|
"resolved": "https://registry.npmmirror.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
|
||||||
|
|||||||
27
src/App.vue
27
src/App.vue
@@ -7,7 +7,16 @@
|
|||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div style="background: #0078FC;height: 150px;width:100%;position: absolute;top:0;z-index: 1"></div>
|
<div
|
||||||
|
style="
|
||||||
|
background: #0078fc;
|
||||||
|
height: 150px;
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1;
|
||||||
|
"
|
||||||
|
></div>
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<!-- <div id="nav">
|
<!-- <div id="nav">
|
||||||
<router-link
|
<router-link
|
||||||
@@ -22,18 +31,18 @@
|
|||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</div> -->
|
</div> -->
|
||||||
<main style="z-index: 2;">
|
<main style="z-index: 2">
|
||||||
<router-view/>
|
<router-view />
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import {boeRequest} from "@/api/request";
|
import { boeRequest } from "@/api/request";
|
||||||
import {GET_USER_INFO} from "@/api/ThirdApi";
|
import { GET_USER_INFO } from "@/api/ThirdApi";
|
||||||
import {useStore} from "vuex";
|
import { useStore } from "vuex";
|
||||||
import {onMounted} from "vue";
|
import { onMounted } from "vue";
|
||||||
import router from "@/router";
|
import router from "@/router";
|
||||||
|
console.log("版本0.9.1------------");
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getUserInfo();
|
getUserInfo();
|
||||||
@@ -50,7 +59,7 @@ function getUserInfo() {
|
|||||||
// font-family: MicrosoftYaHei, Microsoft YaHei, Avenir, Helvetica, Arial,
|
// font-family: MicrosoftYaHei, Microsoft YaHei, Avenir, Helvetica, Arial,
|
||||||
// sans-serif;
|
// sans-serif;
|
||||||
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
|
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
|
||||||
Microsoft YaHei, Arial, sans-serif;
|
Microsoft YaHei, Arial, sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
color: #2c3e50;
|
color: #2c3e50;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
)"
|
)"
|
||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
<div>
|
<div style="width: 70%">
|
||||||
<div class="coursename">{{ value.name }}</div>
|
<div class="coursename">{{ value.name }}</div>
|
||||||
<div class="coursetag">
|
<div class="coursetag">
|
||||||
<div class="tag1" style="margin-right: 11px; margin-top: 16px">
|
<div class="tag1" style="margin-right: 11px; margin-top: 16px">
|
||||||
@@ -215,7 +215,7 @@
|
|||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div style="width: 291px">
|
<div style="width: 291px">
|
||||||
<el-progress
|
<el-progress
|
||||||
:percentage="data.totalChapterCnt"
|
:percentage="parseInt(data.totalProgress * 100)"
|
||||||
:show-text="false"
|
:show-text="false"
|
||||||
:stroke-width="8"
|
:stroke-width="8"
|
||||||
:color="
|
:color="
|
||||||
@@ -226,7 +226,7 @@
|
|||||||
3: 'rgba(59, 94, 251, 1)',
|
3: 'rgba(59, 94, 251, 1)',
|
||||||
4: 'rgba(57, 219, 183, 1)',
|
4: 'rgba(57, 219, 183, 1)',
|
||||||
5: 'rgba(57, 219, 183, 1)',
|
5: 'rgba(57, 219, 183, 1)',
|
||||||
}[parseInt(data.totalChapterCnt / 20)]
|
}[parseInt((data.totalProgress * 100) / 20)]
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -240,10 +240,10 @@
|
|||||||
3: 'rgba(59, 94, 251, 1)',
|
3: 'rgba(59, 94, 251, 1)',
|
||||||
4: 'rgba(57, 219, 183, 1)',
|
4: 'rgba(57, 219, 183, 1)',
|
||||||
5: 'rgba(57, 219, 183, 1)',
|
5: 'rgba(57, 219, 183, 1)',
|
||||||
}[parseInt(data.totalChapterCnt / 20)],
|
}[parseInt((data.totalProgress * 100) / 20)],
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
{{ data.totalChapterCnt }}%
|
{{ parseInt(data.totalProgress * 100) }}%
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -254,7 +254,7 @@
|
|||||||
<div class="progress">
|
<div class="progress">
|
||||||
<div style="width: 291px">
|
<div style="width: 291px">
|
||||||
<el-progress
|
<el-progress
|
||||||
:percentage="data.currentChapterCnt"
|
:percentage="parseInt(data.compulsoryProgress * 100)"
|
||||||
:show-text="false"
|
:show-text="false"
|
||||||
:stroke-width="8"
|
:stroke-width="8"
|
||||||
:color="
|
:color="
|
||||||
@@ -265,7 +265,7 @@
|
|||||||
3: 'rgba(59, 94, 251, 1)',
|
3: 'rgba(59, 94, 251, 1)',
|
||||||
4: 'rgba(57, 219, 183, 1)',
|
4: 'rgba(57, 219, 183, 1)',
|
||||||
5: 'rgba(57, 219, 183, 1)',
|
5: 'rgba(57, 219, 183, 1)',
|
||||||
}[parseInt(data.currentChapterCnt / 20)]
|
}[parseInt((data.compulsoryProgress * 100) / 20)]
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -284,10 +284,10 @@
|
|||||||
3: 'rgba(59, 94, 251, 1)',
|
3: 'rgba(59, 94, 251, 1)',
|
||||||
4: 'rgba(57, 219, 183, 1)',
|
4: 'rgba(57, 219, 183, 1)',
|
||||||
5: 'rgba(57, 219, 183, 1)',
|
5: 'rgba(57, 219, 183, 1)',
|
||||||
}[parseInt(data.currentChapterCnt / 20)],
|
}[parseInt((data.compulsoryProgress * 100) / 20)],
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
{{ data.currentChapterCnt }}%
|
{{ parseInt(data.compulsoryProgress * 100) }}%
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -333,6 +333,7 @@ const returnclick = () => {
|
|||||||
const { data } = useRequest(PROJECT_PROCESS, {
|
const { data } = useRequest(PROJECT_PROCESS, {
|
||||||
projectId: projectId || courseId,
|
projectId: projectId || courseId,
|
||||||
});
|
});
|
||||||
|
console.log("datadata", data);
|
||||||
const userInfo = computed(() => store.state.userInfo);
|
const userInfo = computed(() => store.state.userInfo);
|
||||||
|
|
||||||
const activeName = ref("first");
|
const activeName = ref("first");
|
||||||
@@ -512,6 +513,9 @@ function whiteTypes(type) {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #333330;
|
color: #333330;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.coursetag {
|
.coursetag {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2022-12-18 15:56:03
|
* @Date: 2022-12-18 15:56:03
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2022-12-18 21:04:56
|
* @LastEditTime: 2022-12-18 23:02:05
|
||||||
* @FilePath: /fe-stu/src/views/project/ProjectList.vue
|
* @FilePath: /fe-stu/src/views/project/ProjectList.vue
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
-->
|
-->
|
||||||
@@ -118,7 +118,6 @@ import { useRouter } from "vue-router";
|
|||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
const projectClassify = [];
|
const projectClassify = [];
|
||||||
const studyProgress = [];
|
const studyProgress = [];
|
||||||
const pageNo = ref("");
|
|
||||||
const pageSize = ref("");
|
const pageSize = ref("");
|
||||||
const currentPage = ref("");
|
const currentPage = ref("");
|
||||||
const projectTotal = ref("");
|
const projectTotal = ref("");
|
||||||
@@ -136,12 +135,13 @@ const searchClick = () => {
|
|||||||
beginTime = new Date(searchTime.value[0]).getTime();
|
beginTime = new Date(searchTime.value[0]).getTime();
|
||||||
endTime = new Date(searchTime.value[1]).getTime();
|
endTime = new Date(searchTime.value[1]).getTime();
|
||||||
}
|
}
|
||||||
|
console.log("beginTime", beginTime, endTime);
|
||||||
request(PROJECT_LIST, {
|
request(PROJECT_LIST, {
|
||||||
// beginTime: disDetail.value.discussId,
|
// beginTime: beginTime,
|
||||||
// endTime: replayComment.value.content,
|
// endTime: endTime,
|
||||||
// key: projectname.value,
|
key: projectname.value,
|
||||||
// pageNo: pageNo,
|
pageNo: currentPage,
|
||||||
// pageSize: pageSize,
|
pageSize: pageSize,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
commonFetch();
|
commonFetch();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -242,7 +242,7 @@
|
|||||||
3: 'rgba(59, 94, 251, 1)',
|
3: 'rgba(59, 94, 251, 1)',
|
||||||
4: 'rgba(57, 219, 183, 1)',
|
4: 'rgba(57, 219, 183, 1)',
|
||||||
5: 'rgba(57, 219, 183, 1)',
|
5: 'rgba(57, 219, 183, 1)',
|
||||||
}[parseInt(data.totalProgress)]
|
}[(parseInt(data.totalProgress) * 100) / 20]
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -256,7 +256,7 @@
|
|||||||
3: 'rgba(59, 94, 251, 1)',
|
3: 'rgba(59, 94, 251, 1)',
|
||||||
4: 'rgba(57, 219, 183, 1)',
|
4: 'rgba(57, 219, 183, 1)',
|
||||||
5: 'rgba(57, 219, 183, 1)',
|
5: 'rgba(57, 219, 183, 1)',
|
||||||
}[parseInt(data.totalProgress)],
|
}[parseInt((data.totalProgress * 100) / 20)],
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
{{ parseInt(data.totalProgress * 100) }}%
|
{{ parseInt(data.totalProgress * 100) }}%
|
||||||
@@ -281,7 +281,7 @@
|
|||||||
3: 'rgba(59, 94, 251, 1)',
|
3: 'rgba(59, 94, 251, 1)',
|
||||||
4: 'rgba(57, 219, 183, 1)',
|
4: 'rgba(57, 219, 183, 1)',
|
||||||
5: 'rgba(57, 219, 183, 1)',
|
5: 'rgba(57, 219, 183, 1)',
|
||||||
}[parseInt(data.compulsoryProgress)]
|
}[parseInt((data.compulsoryProgress * 100) / 20)]
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -300,7 +300,7 @@
|
|||||||
3: 'rgba(59, 94, 251, 1)',
|
3: 'rgba(59, 94, 251, 1)',
|
||||||
4: 'rgba(57, 219, 183, 1)',
|
4: 'rgba(57, 219, 183, 1)',
|
||||||
5: 'rgba(57, 219, 183, 1)',
|
5: 'rgba(57, 219, 183, 1)',
|
||||||
}[parseInt(data.compulsoryProgress)],
|
}[parseInt((data.compulsoryProgress * 100) / 20)],
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
{{ parseInt(data.compulsoryProgress * 100) }}%
|
{{ parseInt(data.compulsoryProgress * 100) }}%
|
||||||
|
|||||||
Reference in New Issue
Block a user