diff --git a/.env b/.env
new file mode 100644
index 00000000..75716181
--- /dev/null
+++ b/.env
@@ -0,0 +1,8 @@
+VUE_APP_BASE=/manage
+VUE_APP_BASE_API=/manageApi
+VUE_APP_PROXY_URL=http://111.231.196.214:30001/
+VUE_APP_LOGIN_URL=https://u-pre.boe.com/web
+
+
+VUE_APP_IFRAME_URL=https://u-pre.boe.com/pc-release/iframe
+VUE_APP_IFRAME_STUDENT_URL=https://u-pre.boe.com/pc-release/loading
diff --git a/.env.boe b/.env.boe
new file mode 100644
index 00000000..6991e05f
--- /dev/null
+++ b/.env.boe
@@ -0,0 +1,4 @@
+VUE_APP_BASE=/manage
+VUE_APP_BASE_API=/manageApi
+
+
diff --git a/.env.prod b/.env.prod
new file mode 100644
index 00000000..2e9213ab
--- /dev/null
+++ b/.env.prod
@@ -0,0 +1,2 @@
+VUE_APP_BASE=/manage
+VUE_APP_BASE_API=/manageApi
\ No newline at end of file
diff --git a/.env.release b/.env.release
new file mode 100644
index 00000000..4d5f0120
--- /dev/null
+++ b/.env.release
@@ -0,0 +1,7 @@
+VUE_APP_BASE=/manage-release
+VUE_APP_BASE_API=/manageApi-release
+VUE_APP_LOGIN_URL=https://u.boe.com/web
+
+
+VUE_APP_IFRAME_URL=https://u.boe.com/pc-release/iframe
+VUE_APP_IFRAME_STUDENT_URL=https://u.boe.com/pc-release/loading
\ No newline at end of file
diff --git a/.env.test b/.env.test
new file mode 100644
index 00000000..6991e05f
--- /dev/null
+++ b/.env.test
@@ -0,0 +1,4 @@
+VUE_APP_BASE=/manage
+VUE_APP_BASE_API=/manageApi
+
+
diff --git a/package.json b/package.json
index 8f3d37fb..f694a453 100644
--- a/package.json
+++ b/package.json
@@ -1,69 +1,71 @@
{
- "name": "fe_manage",
- "version": "0.1.0",
- "private": true,
- "homepage": "http://u-pre.boe.com/manage/",
- "scripts": {
- "serve": "vue-cli-service serve",
- "build": "vue-cli-service build",
- "lint": "vue-cli-service lint"
- },
- "dependencies": {
- "@wangeditor/editor": "^5.1.23",
- "@wangeditor/editor-for-vue": "^5.1.12",
- "ant-design-vue": "^3.2.12",
- "axios": "^1.1.3",
- "core-js": "^3.8.3",
- "dayjs": "^1.11.6",
- "element-plus": "^2.2.17",
- "element-resize-detector": "^1.2.4",
- "html2canvas": "^1.4.1",
- "jquery": "^3.6.1",
- "mitt": "^3.0.0",
- "moment": "^2.29.4",
- "qrcode.vue": "^3.3.3",
- "qs": "^6.11.0",
- "sortablejs": "^1.15.0",
- "vue": "^3.2.13",
- "vue-router": "^4.0.3",
- "vuedraggable": "^4.1.0",
- "vuex": "^4.0.0"
- },
- "devDependencies": {
- "@babel/core": "^7.12.16",
- "@babel/eslint-parser": "^7.12.16",
- "@vue/cli-plugin-babel": "~5.0.0",
- "@vue/cli-plugin-eslint": "~5.0.0",
- "@vue/cli-plugin-router": "~5.0.0",
- "@vue/cli-plugin-vuex": "~5.0.0",
- "@vue/cli-service": "~5.0.0",
- "eslint": "^7.32.0",
- "eslint-plugin-vue": "^8.0.3",
- "sass": "^1.32.7",
- "sass-loader": "^12.0.0"
- },
- "eslintConfig": {
- "root": true,
- "env": {
- "node": true
- },
- "extends": [
- "plugin:vue/vue3-essential",
- "eslint:recommended"
- ],
- "parserOptions": {
- "parser": "@babel/eslint-parser"
- },
- "rules": {
- "no-console": "off",
- "no-debugger": "off",
- "no-mixed-spaces-and-tabs": "off"
- }
- },
- "browserslist": [
- "> 1%",
- "last 2 versions",
- "not dead",
- "not ie 11"
- ]
+ "name": "fe_manage",
+ "version": "0.1.0",
+ "private": true,
+ "scripts": {
+ "serve": "vue-cli-service serve",
+ "build": "vue-cli-service build",
+ "build:boe": "vue-cli-service build --mode boe",
+ "build:release": "vue-cli-service build --mode release",
+ "build:prod": "vue-cli-service build --mode prod",
+ "build:test": "vue-cli-service build --mode test"
+ },
+ "dependencies": {
+ "@wangeditor/editor": "^5.1.23",
+ "@wangeditor/editor-for-vue": "^5.1.12",
+ "ant-design-vue": "^3.2.12",
+ "axios": "^1.1.3",
+ "core-js": "^3.8.3",
+ "dayjs": "^1.11.6",
+ "element-plus": "^2.2.17",
+ "element-resize-detector": "^1.2.4",
+ "html2canvas": "^1.4.1",
+ "jquery": "^3.6.1",
+ "mitt": "^3.0.0",
+ "moment": "^2.29.4",
+ "qrcode.vue": "^3.3.3",
+ "qs": "^6.11.0",
+ "sortablejs": "^1.15.0",
+ "vue": "^3.2.13",
+ "vue-router": "^4.0.3",
+ "vuedraggable": "^4.1.0",
+ "vuex": "^4.0.0"
+ },
+ "devDependencies": {
+ "@babel/core": "^7.12.16",
+ "@babel/eslint-parser": "^7.12.16",
+ "@vue/cli-plugin-babel": "~5.0.0",
+ "@vue/cli-plugin-eslint": "~5.0.0",
+ "@vue/cli-plugin-router": "~5.0.0",
+ "@vue/cli-plugin-vuex": "~5.0.0",
+ "@vue/cli-service": "~5.0.0",
+ "eslint": "^7.32.0",
+ "eslint-plugin-vue": "^8.0.3",
+ "sass": "^1.32.7",
+ "sass-loader": "^12.0.0"
+ },
+ "eslintConfig": {
+ "root": true,
+ "env": {
+ "node": true
+ },
+ "extends": [
+ "plugin:vue/vue3-essential",
+ "eslint:recommended"
+ ],
+ "parserOptions": {
+ "parser": "@babel/eslint-parser"
+ },
+ "rules": {
+ "no-console": "off",
+ "no-debugger": "off",
+ "no-mixed-spaces-and-tabs": "off"
+ }
+ },
+ "browserslist": [
+ "> 1%",
+ "last 2 versions",
+ "not dead",
+ "not ie 11"
+ ]
}
diff --git a/src/App.vue b/src/App.vue
index 2354d8c4..5b29d867 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -44,15 +44,15 @@ export default defineComponent({
const store = useStore();
const isLogin = ref(false);
// console.log("router", router.getRoutes(), route);
- console.log("版本0.9.13------------");
+ console.log("版本0.9.14------------");
const routes = computed(() => {
return router.getRoutes().filter((e) => e.meta?.isLink);
});
watch(
- () => route.path,
- () => {
- route.path === "/login" && (isLogin.value = true);
- }
+ () => route.path,
+ () => {
+ route.path === "/login" && (isLogin.value = true);
+ }
);
const currentRouteName = computed(() => route.name);
@@ -78,8 +78,8 @@ export default defineComponent({
return;
}
const memberInitInfo = await api1
- .getMemberInfo({ keyWord: "", pageNo: 1, pageSize: 10 })
- .then((res) => res.data.data.rows);
+ .getMemberInfo({ keyWord: "", pageNo: 1, pageSize: 10 })
+ .then((res) => res.data.data.rows);
store.commit("SET_MEMBER_INFO", memberInitInfo);
localStorage.setItem("memberInitInfo", JSON.stringify(memberInitInfo));
}
@@ -104,13 +104,13 @@ export default defineComponent({
}
const getDictList = (param) =>
- api1
- .getDict({
- pageNo: 1,
- pageSize: 20,
- setCode: param,
- })
- .then((res) => res.data.data.rows);
+ api1
+ .getDict({
+ pageNo: 1,
+ pageSize: 20,
+ setCode: param,
+ })
+ .then((res) => res.data.data.rows);
//获取组织树
const getOrgTree = () => {
const orgtreeList = localStorage.getItem("orgtreeList");
@@ -119,16 +119,16 @@ export default defineComponent({
return;
}
api
- .getOrgInfo({
- keyWord: "",
- id: -1,
- pageNo: 1,
- pageSize: 20,
- })
- .then((res) => {
- localStorage.setItem("orgtreeList", JSON.stringify(res.data.data));
- store.commit("getOrgtreeList", res.data.data);
- });
+ .getOrgInfo({
+ keyWord: "",
+ id: -1,
+ pageNo: 1,
+ pageSize: 20,
+ })
+ .then((res) => {
+ localStorage.setItem("orgtreeList", JSON.stringify(res.data.data));
+ store.commit("getOrgtreeList", res.data.data);
+ });
};
init();
return {
@@ -167,7 +167,7 @@ export default defineComponent({
// font-family: MicrosoftYaHei, Microsoft YaHei, Avenir, Helvetica, Arial,
// sans-serif;
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
- Microsoft YaHei, Arial, sans-serif;
+ Microsoft YaHei, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: #2c3e50;
diff --git a/src/api/config.js b/src/api/config.js
index 7e138e80..4e9b11ef 100644
--- a/src/api/config.js
+++ b/src/api/config.js
@@ -2,12 +2,13 @@
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2022-11-21 14:32:52
* @LastEditors: lixg lixg@dongwu-inc.com
- * @LastEditTime: 2022-12-13 15:30:27
+ * @LastEditTime: 2022-12-14 20:56:10
* @FilePath: /fe-manage/src/api/config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { message } from "ant-design-vue";
import axios from "axios";
+import router from "@/router";
// import { getCookie } from '../api/method'
// const Qs = require("qs");
@@ -16,61 +17,60 @@ import axios from "axios";
axios.defaults.withCredentials = true;
const http = axios.create({
- baseURL: "/manageApi-release",
- timeout: 1000 * 15,
- // headers: { "Content-Type": "multipart/form-data" },
- headers: { "Content-Type": "application/json" },
+ baseURL: process.env.VUE_APP_BASE_API,
+ timeout: 1000 * 15,
+ // headers: { "Content-Type": "multipart/form-data" },
+ headers: { "Content-Type": "application/json" },
});
http.interceptors.request.use(
- (config) => {
- // console.log("config", config);
- // const token = localStorage.getItem("token");
- // // const token = getCookie('token')
- // // console.log('token', token)
- // if (token) {
- // config.headers.token = token; //测试1111
- // } else {
- // console.log("当前请求页面无token,请执行操作!!!");
+ (config) => {
+ // console.log("config", config);
+ // const token = localStorage.getItem("token");
+ // // const token = getCookie('token')
+ // // console.log('token', token)
+ // if (token) {
+ // config.headers.token = token; //测试1111
+ // } else {
+ // console.log("当前请求页面无token,请执行操作!!!");
- // // 此处测试默认配置token
- // config.headers.token =
- // "eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC91LmJvZS5jb20iLCJpYXQiOjE2NzAxNTMxMDMsImV4cCI6MTY3MDE2MDMwMywiR2l2ZW5OYW1lIjoiYm9ldSIsInVzZXJJZCI6IjZCMDQ5RkFGLUMzMTQtN0NDRi0wRDI4LTBEMjNGNEM0MjUzMSIsInVJZCI6Ijk2NTM0MjAyNzQ5NzYwNzE2OCIsInBlcm1pc3Npb24iOiIifQ==.c937b2d3a59cbab2136fdde55fd38f06bdff041212aab0fa6741bc4be41e28a7";
- // // }
- return config;
- },
- (err) => {
- console.log("登陆前拦截", err);
- return Promise.reject(err);
- }
+ // // 此处测试默认配置token
+ // config.headers.token =
+ // "eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC91LmJvZS5jb20iLCJpYXQiOjE2NzAxNTMxMDMsImV4cCI6MTY3MDE2MDMwMywiR2l2ZW5OYW1lIjoiYm9ldSIsInVzZXJJZCI6IjZCMDQ5RkFGLUMzMTQtN0NDRi0wRDI4LTBEMjNGNEM0MjUzMSIsInVJZCI6Ijk2NTM0MjAyNzQ5NzYwNzE2OCIsInBlcm1pc3Npb24iOiIifQ==.c937b2d3a59cbab2136fdde55fd38f06bdff041212aab0fa6741bc4be41e28a7";
+ // // }
+ return config;
+ },
+ (err) => {
+ console.log("登陆前拦截", err);
+ return Promise.reject(err);
+ }
);
http.interceptors.response.use(
- (response) => {
- // console.log('response', response)
- const {
- data: { code, msg },
- } = response;
- // console.log('code', code)
- if (code === 0 || code === 200) {
- return response;
- } else {
- if (code === 1000) {
- window.open("https://u-pre.boe.com/web/", '_self');
- // window.open("http://111.231.196.214:12013/manage/login", '_self');
- }
- console.log("api %o", msg);
+ (response) => {
+ // console.log('response', response)
+ const {
+ data: { code, msg },
+ } = response;
+ // console.log('code', code)
+ if (code === 0 || code === 200) {
+ return response;
+ } else {
+ if (code === 1000) {
+ process.env.NODE_ENV === 'development' ? router.push({ path: 'login' }) : (window.location.href = process.env.VUE_APP_LOGIN_URL)
+ }
+ console.log("api %o", msg);
+ }
+ return response;
+ },
+ function (error) {
+ if (error.message == "timeout of 1ms exceeded") {
+ message.destroy();
+ message.error("请求超时");
+ }
+ console.log("api error %o", error);
+ return Promise.reject(error);
}
- return response;
- },
- function (error) {
- if (error.message == "timeout of 1ms exceeded") {
- message.destroy();
- message.error("请求超时");
- }
- console.log("api error %o", error);
- return Promise.reject(error);
- }
);
export default http;
diff --git a/src/api/method.js b/src/api/method.js
index 243ae474..98913705 100644
--- a/src/api/method.js
+++ b/src/api/method.js
@@ -276,7 +276,10 @@ const commonData = {
const organizationalTree = []
//嵌套页面
-const iframeUrl = "https://u-pre.boe.com/pc-release/iframe"
+const iframeUrl = process.env.VUE_APP_IFRAME_URL
+//学员端路由
+const studentUrl = process.env.VUE_APP_IFRAME_STUDENT_URL
+
//二维码
const codeUrl = "https://u-pre.boe.com"
export {
@@ -292,5 +295,6 @@ export {
commonData,
organizationalTree,
iframeUrl,
+ studentUrl,
codeUrl,
}
\ No newline at end of file
diff --git a/src/components/NavTop.vue b/src/components/NavTop.vue
index c60640bd..b69ba583 100644
--- a/src/components/NavTop.vue
+++ b/src/components/NavTop.vue
@@ -61,7 +61,7 @@
import { reactive, toRefs } from "vue";
import DownLoad from "../components/drawers/DownLoad";
import * as api from "../api/index1";
-
+import { studentUrl } from "../api/method";
export default {
name: "NavTop",
components: {
@@ -76,12 +76,12 @@ export default {
{
id: 1,
name: "管理员",
- go: "/manage-release/learningpath",
+ go: "/learningpath",
},
{
id: 2,
name: "学员",
- go: "https://u.boe.com/pc-release/uc/study/courses",
+ go: studentUrl,
},
],
diff --git a/src/components/drawers/ActiveAttendance.vue b/src/components/drawers/ActiveAttendance.vue
index e41f7511..0c7a9b5f 100644
--- a/src/components/drawers/ActiveAttendance.vue
+++ b/src/components/drawers/ActiveAttendance.vue
@@ -513,14 +513,14 @@ export default {
align: "center",
className: "h",
},
- {
- title: "所在岗位",
- dataIndex: "gang",
- key: "gang",
- width: 50,
- align: "center",
- className: "h",
- },
+ // {
+ // title: "所在岗位",
+ // dataIndex: "gang",
+ // key: "gang",
+ // width: 50,
+ // align: "center",
+ // className: "h",
+ // },
{
title: "签到时间",
dataIndex: "cur",
diff --git a/src/components/drawers/AddDiscuss.vue b/src/components/drawers/AddDiscuss.vue
index 5b39e01a..cb1616d1 100644
--- a/src/components/drawers/AddDiscuss.vue
+++ b/src/components/drawers/AddDiscuss.vue
@@ -191,11 +191,12 @@ export default {
}
};
const updateTask = async (res) => {
- if(!props.isactive){
+
+ if (props.isLevel == 1) {
+ if(!props.isactive){
message.destroy();
return message.warning("请先选中关卡");
}
- if (props.isLevel == 1) {
await RouterEditTask({
chapterId: props.isactive,
courseId: res.data.data.discussId,
diff --git a/src/components/drawers/AddEval.vue b/src/components/drawers/AddEval.vue
index 28c69f5a..b68eba22 100644
--- a/src/components/drawers/AddEval.vue
+++ b/src/components/drawers/AddEval.vue
@@ -177,11 +177,12 @@ export default {
};
//向关卡或阶段渲染
const updateTask = async (value) => {
- if(!props.isactive){
+
+ if (props.isLevel == 1) {
+ if(!props.isactive){
message.destroy();
return message.warning("请先选中关卡");
}
- if (props.isLevel == 1) {
await RouterEditTask({
chapterId: props.isactive,
courseId: Number(value.evaluationId),
diff --git a/src/components/drawers/AddFaceteach.vue b/src/components/drawers/AddFaceteach.vue
index 5b642080..79f0c08c 100644
--- a/src/components/drawers/AddFaceteach.vue
+++ b/src/components/drawers/AddFaceteach.vue
@@ -702,11 +702,12 @@ export default {
// 新增编辑或新增项目任务
const updateTask = async (res) => {
console.log("props.isLevel=====", props.isLevel);
- if(!props.isactive){
+
+ if (props.isLevel == 1) {
+ if(!props.isactive){
message.destroy();
return message.warning("请先选中关卡");
}
- if (props.isLevel == 1) {
let editObj1 = {
chapterId: props.isactive,
courseId: res.data.data.offcoursePlanId,
diff --git a/src/components/drawers/AddGroupMembers.vue b/src/components/drawers/AddGroupMembers.vue
index f953497b..7f71100d 100644
--- a/src/components/drawers/AddGroupMembers.vue
+++ b/src/components/drawers/AddGroupMembers.vue
@@ -155,14 +155,14 @@ export default {
align: "center",
className: "h",
},
- {
- title: "岗位",
- dataIndex: "gangw",
- key: "gangw",
- width: 60,
- align: "center",
- className: "h",
- },
+ // {
+ // title: "岗位",
+ // dataIndex: "gangw",
+ // key: "gangw",
+ // width: 60,
+ // align: "center",
+ // className: "h",
+ // },
// {
// title: "进度",
// dataIndex: "progress",
diff --git a/src/components/drawers/AddInvist.vue b/src/components/drawers/AddInvist.vue
index 2a3ee083..ddb7666f 100644
--- a/src/components/drawers/AddInvist.vue
+++ b/src/components/drawers/AddInvist.vue
@@ -21,21 +21,17 @@
-
+ v-model:assessmentVisible="assessmentVisible"
+ v-model:assessmentId="assessmentId"
+ v-model:assessmentName="assessmentName"
+ />
-
-
-
-
-
+
+
+
@@ -119,16 +115,16 @@ export default {
assessmentName: "",
assessment: null,
assessment1: null,
- assessmentVisible:false,
+ assessmentVisible: false,
titleTag: false,
});
- // const getCheckedAss = (ass) => {
- // state.assessmentId = ass.assessmentId;
- // state.assessment = ass;
- // console.log("state.assessment1",state.assessment);
- //
- // };
-
+ // const getCheckedAss = (ass) => {
+ // state.assessmentId = ass.assessmentId;
+ // state.assessment = ass;
+ // console.log("state.assessment1",state.assessment);
+ //
+ // };
+
const closeDrawer = () => {
ctx.emit("update:addinvistVisible", false);
ctx.emit("update:edit", false);
@@ -138,43 +134,45 @@ export default {
// ctx.emit("changeData", false);
localStorage.setItem("stageId", props.chooseStageId);
localStorage.setItem("chapterId", props.isactive);
-
};
const checkAssDrawer = () => {
state.assessmentVisible = true;
};
const afterVisibleChange = (bool) => {
- if(bool && props.EditInvistId >0){
+ if (bool && props.EditInvistId > 0) {
state.assessmentVisible = true;
state.assessmentId = props.EditInvistId;
- }else{
- state.assessmentId =null;
- state.assessmentName =null;
+ } else {
+ state.assessmentId = null;
+ state.assessmentName = null;
}
-
};
-
+
const updateTask = () => {
- console.log("state.assessmentId ",state.assessmentId ,state.assessmentName );
+ console.log(
+ "state.assessmentId ",
+ state.assessmentId,
+ state.assessmentName
+ );
if (!state.assessmentId) {
return message.warning("请选择评估");
}
let l_data_id = [];
- l_data_id.push(Number(state.assessmentId))
- console.log("state.assessment",state.assessment,state.assessmentId);
+ l_data_id.push(Number(state.assessmentId));
+ console.log("state.assessment", state.assessment, state.assessmentId);
if (props.isLevel == 1) {
- if(!props.isactive){
+ if (!props.isactive) {
message.destroy();
return message.warning("请先选中关卡");
}
IsExistence({
chapterId: Number(props.isactive),
- courseTaskId:l_data_id,
+ courseTaskId: l_data_id,
routerId: props.routerId,
type: 11,
})
.then((res) => {
- console.log('shifouchongfu',res)
+ console.log("shifouchongfu", res);
console.log("路径图中是否包含此评估了", res);
if (res.data.data.length) {
let strdata = res.data.data;
@@ -200,7 +198,9 @@ export default {
})
.then(() => {
message.destroy();
- message.success(`${props.edit ? "编辑" : "新增"}关卡任务成功`);
+ message.success(
+ `${props.edit ? "编辑" : "新增"}关卡任务成功`
+ );
ctx.emit("changeData", false);
closeDrawer();
state.addLoading = false;
@@ -210,20 +210,20 @@ export default {
message.error(`${props.edit ? "编辑" : "新增"}关卡任务失败`);
});
}
- }).catch(err=>{
- console.log(err)
})
-
-
+ .catch((err) => {
+ console.log(err);
+ });
} else if (props.isLevel == 2) {
IsExistenceProject({
courseTaskId: l_data_id,
projectId: props.projectId,
stageId: props.chooseStageId || 0,
type: 11,
- }).then(res=>{
- console.log(res)
- console.log("项目中是否包含此评估了", res);
+ })
+ .then((res) => {
+ console.log(res);
+ console.log("项目中是否包含此评估了", res);
if (res.data.data.length) {
let strdata = res.data.data;
let tipStr = "";
@@ -239,71 +239,70 @@ export default {
return;
} else {
apiTask
- .addTask({
- courseId: state.assessmentId,
- name: state.assessmentName,
- projectId: props.projectId,
- projectTaskId: props.projectTaskId || 0,
- stageId: props.chooseStageId || 0,
- type: 11,
- })
- .then(() => {
- message.success(`${props.edit ? "编辑" : "新增"}任务成功`);
- ctx.emit("changeData", false);
- closeDrawer();
- })
- .catch(() => {
- message.error(`${props.edit ? "编辑" : "新增"}任务失败`);
- });
+ .addTask({
+ courseId: state.assessmentId,
+ name: state.assessmentName,
+ projectId: props.projectId,
+ projectTaskId: props.projectTaskId || 0,
+ stageId: props.chooseStageId || 0,
+ type: 11,
+ })
+ .then(() => {
+ message.success(`${props.edit ? "编辑" : "新增"}任务成功`);
+ ctx.emit("changeData", false);
+ closeDrawer();
+ })
+ .catch(() => {
+ message.error(`${props.edit ? "编辑" : "新增"}任务失败`);
+ });
}
- }).catch(err=>{
- console.log(err)
- })
-
+ })
+ .catch((err) => {
+ console.log(err);
+ });
} else if (props.isLevel == 3) {
IsExistenceProjectTemplate({
courseTaskId: l_data_id,
projectTemplateId: props.projectTemplateId,
stageId: props.chooseStageId || 0,
type: 11,
- }).then((res)=>{
- console.log(res)
+ }).then((res) => {
+ console.log(res);
console.log("项目中是否包含此评估了", res);
- if (res.data.data.length) {
- let strdata = res.data.data;
- let tipStr = "";
- for (let i = 0; i < strdata.length; i++) {
- if (i == strdata.length - 1) {
- tipStr += strdata[i].courseName;
- } else {
- tipStr += strdata[i].courseName + "/";
- }
+ if (res.data.data.length) {
+ let strdata = res.data.data;
+ let tipStr = "";
+ for (let i = 0; i < strdata.length; i++) {
+ if (i == strdata.length - 1) {
+ tipStr += strdata[i].courseName;
+ } else {
+ tipStr += strdata[i].courseName + "/";
}
- message.destroy();
- message.warning("评估(" + tipStr + ")重复添加");
- return;
- }else{
- addTempTask({
- courseId: state.assessmentId,
- name: state.assessmentName,
- projectTemplateId: props.projectTemplateId,
- projectTaskId: props.projectTaskId || 0,
- stageId: props.chooseStageId || 0,
- type: 11,
- })
- .then(() => {
- message.destroy();
- message.success(`${props.edit ? "编辑" : "新增"}任务成功`);
- ctx.emit("changeData", false);
- closeDrawer();
- })
- .catch(() => {
- message.destroy();
- message.error(`${props.edit ? "编辑" : "新增"}任务失败`);
- });
}
+ message.destroy();
+ message.warning("评估(" + tipStr + ")重复添加");
+ return;
+ } else {
+ addTempTask({
+ courseId: state.assessmentId,
+ name: state.assessmentName,
+ projectTemplateId: props.projectTemplateId,
+ projectTaskId: props.projectTaskId || 0,
+ stageId: props.chooseStageId || 0,
+ type: 11,
+ })
+ .then(() => {
+ message.destroy();
+ message.success(`${props.edit ? "编辑" : "新增"}任务成功`);
+ ctx.emit("changeData", false);
+ closeDrawer();
+ })
+ .catch(() => {
+ message.destroy();
+ message.error(`${props.edit ? "编辑" : "新增"}任务失败`);
+ });
+ }
});
-
}
};
@@ -313,7 +312,6 @@ export default {
closeDrawer,
updateTask,
checkAssDrawer,
-
};
},
};
@@ -339,7 +337,6 @@ export default {
}
}
.contentMain {
-
.main {
width: 100%;
.main_left {
@@ -348,7 +345,7 @@ export default {
.main_item {
display: flex;
align-items: center;
-
+
.fi_input {
margin-right: 20px;
}
@@ -410,7 +407,7 @@ export default {
display: flex;
justify-content: space-between;
align-items: center;
- margin-bottom:3px;
+ margin-bottom: 3px;
height: 40px;
background-color: #e9f6fe;
.mntc_left {
@@ -439,11 +436,11 @@ export default {
}
}
}
-
+
.main_btns {
height: 72px;
width: 100%;
-
+
bottom: 0;
left: 0;
display: flex;
diff --git a/src/components/drawers/AddProject.vue b/src/components/drawers/AddProject.vue
index 04f75503..98d6dbe1 100644
--- a/src/components/drawers/AddProject.vue
+++ b/src/components/drawers/AddProject.vue
@@ -54,7 +54,7 @@
-
-
+
-
+
{
- apiProj
- .getProjectList({
+ indexAudit
+ .auditlist({
createName: state.inputV1,
manager: state.inputV2,
name: state.inputV3,
@@ -450,8 +451,8 @@ export default {
status: 3,
});
- apiProj
- .getProjectList({
+ indexAudit
+ .auditlist({
createName: state.inputV3,
manager: state.inputV2,
name: state.inputV1,
@@ -551,7 +552,7 @@ export default {
const updateTask = async (res) => {
if (props.isLevel == 1) {
- if(!props.isactive){
+ if (!props.isactive) {
message.destroy();
return message.warning("请先选中关卡");
}
@@ -849,7 +850,7 @@ export default {
}
}
}
-
+
.main_item2 {
display: flex;
align-items: flex-start;
@@ -930,36 +931,36 @@ export default {
}
}
.main_table {
- position: relative;
- padding-bottom: 80px;
- .ant-checkbox-wrapper {
- align-items: center;
- margin-top: -2px;
- }
- .ant-table-selection-column {
- padding: 0px !important;
- padding-left: 5px !important;
- }
- .ant-table-thead > tr > th {
- background-color: rgba(239, 244, 252, 1);
- }
- th.h {
- background-color: #eff4fc !important;
- }
- .ant-table-tbody
- > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
- > td {
- background: #f6f9fd;
- }
- .pa {
- left: 0;
- width: 100%;
- display: flex;
- justify-content: center;
- position: absolute;
- bottom: 20px;
- }
+ position: relative;
+ padding-bottom: 80px;
+ .ant-checkbox-wrapper {
+ align-items: center;
+ margin-top: -2px;
}
+ .ant-table-selection-column {
+ padding: 0px !important;
+ padding-left: 5px !important;
+ }
+ .ant-table-thead > tr > th {
+ background-color: rgba(239, 244, 252, 1);
+ }
+ th.h {
+ background-color: #eff4fc !important;
+ }
+ .ant-table-tbody
+ > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
+ > td {
+ background: #f6f9fd;
+ }
+ .pa {
+ left: 0;
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ position: absolute;
+ bottom: 20px;
+ }
+ }
.main_btns {
height: 72px;
width: 100%;
@@ -991,7 +992,6 @@ export default {
color: #fff;
}
}
-
}
}
diff --git a/src/components/drawers/AssessmentAll.vue b/src/components/drawers/AssessmentAll.vue
index 016926f9..ae06897b 100644
--- a/src/components/drawers/AssessmentAll.vue
+++ b/src/components/drawers/AssessmentAll.vue
@@ -1,59 +1,54 @@
-
-
-
-
-
+
+
-
-
-
-
- 已选择 0 条
-
-
-
- 已选择 1 条;
- 名称: {{ assessment.name }}
-
- 题数: {{ assessment.num }}
-
- 创建人:
- {{ assessment.creator }}
-
- 创建时间:
- {{ assessment.time }}
-
-
-
-
-
-
-
+
+
-
+
diff --git a/src/components/project/ProjectLevel.vue b/src/components/project/ProjectLevel.vue
index 10b9c9b6..65611995 100644
--- a/src/components/project/ProjectLevel.vue
+++ b/src/components/project/ProjectLevel.vue
@@ -1,27 +1,34 @@
+
- {{ options?.find(e => e.value == id)?.label || '' }}
+ {{ options?.find((e) => e.value == id)?.label || "" }}
diff --git a/src/components/project/TrainClass.vue b/src/components/project/TrainClass.vue
index 9ddbebd5..4f944ccf 100644
--- a/src/components/project/TrainClass.vue
+++ b/src/components/project/TrainClass.vue
@@ -1,27 +1,34 @@
+
- {{ options.find(e => e.value == id)?.label || '' }}
+ {{ options.find((e) => e.value == id)?.label || "" }}
-
diff --git a/src/router/index.js b/src/router/index.js
index 07ef4a8e..f376229f 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2022-11-09 09:26:26
* @LastEditors: lixg lixg@dongwu-inc.com
- * @LastEditTime: 2022-12-14 17:38:53
+ * @LastEditTime: 2022-11-21 17:42:59
* @FilePath: /fe-manage/src/router/index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
@@ -17,7 +17,7 @@ const routes = [
...routesConfig
]
const router = createRouter({
- history: createWebHistory("/manage-release/"),
+ history: createWebHistory(process.env.VUE_APP_BASE),
routes,
})
diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue
index 6a1db8f9..7fe0a2fb 100644
--- a/src/views/courselibrary/CoursewareManage.vue
+++ b/src/views/courselibrary/CoursewareManage.vue
@@ -75,25 +75,23 @@
-
+
@@ -631,8 +629,8 @@
授课教师
-
-
+
@@ -813,31 +811,33 @@
? 'disabled operation'
: 'operation',
]"
- >
-
-
{
- handleEdit(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 编辑
-
+ >
+
+
{
+ handleEdit(record, String(record.courseform));
+ }
+ "
+ style="display: inline-block; margin-left: 20px"
+ >
+ 编辑
+
-
{
- handleCopy(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 复制
-
-
-
+
-
{
- handleDelete(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 删除
+
{
+ handleDelete(record, String(record.courseform));
+ }
+ "
+ style="display: inline-block; margin-left: 20px"
+ >
+ 删除
+
-
-
-
{
- handleRejectExit(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 撤回
-
-
{
- handleCopy(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 复制
-
-
-
+
-
+
-
-
-
{
- handleStart(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 开课
-
-
{
- handleLook(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 查看
-
-
-
+
-
{
- handleCopy(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 复制
-
-
-
+
-
{
handleStop(record, String(record.courseform));
@@ -1136,9 +1143,8 @@
>
停用
-
-
-
+
+
-
-
-
{
- handleStart(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 开课
-
-
{
- handleEdit(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 编辑
-
-
-
{
- handleCopy(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 复制
-
-
-
+
-
{
- handleOpen(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 启用
-
-
{
- handleDelete(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 删除
-
+
{
+ handleOpen(record, String(record.courseform));
+ }
+ "
+ style="display: inline-block; margin-left: 20px"
+ >
+ 启用
+
+
{
+ handleDelete(record, String(record.courseform));
+ }
+ "
+ style="display: inline-block; margin-left: 20px"
+ >
+ 删除
+
@@ -1295,7 +1306,7 @@
column.key === 'operation'
"
>
-
-
-
{
- handleEdit(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 编辑
-
-
{
- handleCopy(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 复制
-
-
-
+
-
{
- handleDelete(record, String(record.courseform));
- }
- "
- style="display: inline-block; margin-left: 20px"
- >
- 删除
-
+
{
+ handleDelete(record, String(record.courseform));
+ }
+ "
+ style="display: inline-block; margin-left: 20px"
+ >
+ 删除
+
@@ -1720,12 +1734,13 @@
重置
@@ -1758,8 +1773,8 @@
-
-
-
{
- handelEditStu(record);
- }
- "
- >
- 编辑
+
{
+ handelEditStu(record);
+ }
+ "
+ >
+ 编辑
+
+
{
+ handelGuan(record);
+ }
+ "
+ >
+ 管理
+
-
{
- handelGuan(record);
- }
- "
- >
- 管理
-
-
-
+
-
+
{
@@ -1802,7 +1819,7 @@
>
复制
- {
handleDeleteKaike(record);
@@ -1824,11 +1841,12 @@
-->
-
+
@@ -1853,8 +1871,6 @@
-
-
@@ -1950,7 +1966,7 @@
授课教师
-
-
+
签到设置
@@ -1987,7 +2003,6 @@
-
评估设置
@@ -2017,7 +2032,7 @@
/>
-
-
@@ -2227,7 +2250,12 @@
-
+
{
- return text ? text : "0";
- },
- },
- {
- title: "评分",
- width: 130,
- dataIndex: "grade",
- key: "5",
- align: "center",
- customRender: ({ text }) => {
- return text ? text : "0";
- },
- },
+ // {
+ // title: "学习人数",
+ // width: 130,
+ // dataIndex: "stunum",
+ // key: "4",
+ // align: "center",
+ // customRender: ({ text }) => {
+ // // return text ? text : "0";
+ // },
+ // },
+ // {
+ // title: "评分",
+ // width: 130,
+ // dataIndex: "grade",
+ // key: "5",
+ // align: "center",
+ // customRender: ({ text }) => {
+ // return text ? text : "0";
+ // },
+ // },
{
title: "状态",
width: 130,
@@ -3113,19 +3141,19 @@ const columns4 = [
];
//开课表格
const columns6 = [
- // {
+ // {
// title: "序号",
// dataIndex: "num",
// key: "num",
- // width: "6%",
- // align: "center",
+ // width: "6%",
+ // align: "center",
// ellipsis: true,
- // customRender: ({ index, record }) => {
- // const pageNum =
- // Number(record.pageNo) - 1 > 0 ? (Number(record.pageNo) - 1) * 10 : 0;
- // return index + 1 + pageNum;
- // },
- // },
+ // customRender: ({ index, record }) => {
+ // const pageNum =
+ // Number(record.pageNo) - 1 > 0 ? (Number(record.pageNo) - 1) * 10 : 0;
+ // return index + 1 + pageNum;
+ // },
+ // },
{
title: "课程名称",
dataIndex: "organization",
@@ -3205,18 +3233,18 @@ const columns6 = [
];
//开课学员管理
const columns7 = [
-//// {
- // title: "序号",
-// width: 200,
- // dataIndex: "num",
+ //// {
+ // title: "序号",
+ // width: 200,
+ // dataIndex: "num",
// key: "num",
// align: "center",
- // customRender: ({ index, record }) => {
- // const pageNum =
- // Number(record.pageNo) - 1 > 0 ? (Number(record.pageNo) - 1) * 10 : 0;
- // return index + 1 + pageNum;
- // },
- // },
+ // customRender: ({ index, record }) => {
+ // const pageNum =
+ // Number(record.pageNo) - 1 > 0 ? (Number(record.pageNo) - 1) * 10 : 0;
+ // return index + 1 + pageNum;
+ // },
+ // },
{
title: "姓名",
width: 200,
@@ -3246,16 +3274,16 @@ const columns7 = [
return text ? text : "-";
},
},
- {
- title: "岗位",
- width: 300,
- dataIndex: "postion",
- key: "3",
- align: "center",
- customRender: ({ text }) => {
- return text ? text : "-";
- },
- },
+ // {
+ // title: "岗位",
+ // width: 300,
+ // dataIndex: "postion",
+ // key: "3",
+ // align: "center",
+ // customRender: ({ text }) => {
+ // return text ? text : "-";
+ // },
+ // },
{
title: "Band",
width: 200,
@@ -3604,7 +3632,7 @@ export default defineComponent({
imageUrl: "",
imgList: [],
- validate:false,
+ validate:true,
pageSize2: 10,
currentPage2: 0,
@@ -3651,7 +3679,7 @@ export default defineComponent({
codevisible: false, //二维码弹窗
codeInfo: null, //二维码内容
codeUrl: codeUrl,
- finished:false,
+ finished: false,
// 课程三级分类
options2222: [
{
@@ -3956,8 +3984,16 @@ export default defineComponent({
let startTime = "";
let endTime = "";
if (state.projectTime) {
- startTime = state.projectTime[0];
- endTime = state.projectTime[1];
+
+ startTime = toDate(
+ new Date(state.projectTime[0].$d).getTime() / 1000,
+ "Y-M-D"
+ );
+ endTime = toDate(
+ new Date(state.projectTime[1].$d).getTime() / 1000,
+ "Y-M-D"
+ );
+
}
let res = await list({
pageNo: state.currentPage1,
@@ -4554,12 +4590,12 @@ export default defineComponent({
message.destroy();
return message.warning("请输入必填项");
}
-
- console.log("state.validate",state.validate);
- if(!state.finished){
+
+ console.log("state.validate", state.validate);
+ if (!state.finished) {
return;
}
-
+
if (!state.validate && state.finished) {
message.destroy();
return message.warning("该课程名称已存在");
@@ -4569,11 +4605,10 @@ export default defineComponent({
state.bs_hs,
state.valueE1 == 2
);
- if( !state.valueE1 && !state.valueE2){
+ if (!state.valueE1 && !state.valueE2) {
message.destroy();
return message.warning("请选择课程形式");
}
-
if (state.valueE1 === 2) {
state.of_hs = false;
@@ -4814,7 +4849,7 @@ export default defineComponent({
.catch();
console.log("res");
- console.log(item);
+ console.log("获取面授课详情", item);
state.xjkkinputV2 = item.address;
state.checked1 = item.applyFlag === 1 ? true : false;
@@ -5050,7 +5085,7 @@ export default defineComponent({
type: -1,
}).then((res) => {
if (res.data.code === 200) {
- message.destroy();
+ message.destroy();
message.success("删除成功");
getTableDate();
delete_exit1();
@@ -5087,7 +5122,7 @@ export default defineComponent({
console.log(obj);
editPlan(obj).then((res) => {
if (res.data.code === 200) {
- message.destroy();
+ message.destroy();
message.success("复制成功");
getTableDate3();
delete_exit1();
@@ -5119,7 +5154,7 @@ export default defineComponent({
};
edit(postData).then((res) => {
if (res.data.code === 200) {
- message.destroy();
+ message.destroy();
message.success("复制成功");
getTableDate();
delete_exit1();
@@ -5137,7 +5172,7 @@ export default defineComponent({
type: -2,
}).then((res) => {
if (res.data.code === 200) {
- message.destroy();
+ message.destroy();
message.success("操作成功");
getTableDate();
delete_exit1();
@@ -5377,7 +5412,7 @@ export default defineComponent({
}).then((res) => {
if (res.data.code === 200) {
getTableDate();
- message.destroy();
+ message.destroy();
message.success("启用成功");
}
});
@@ -6001,7 +6036,6 @@ export default defineComponent({
}
}
-
.tableBox {
margin: 20px 38px 30px;
@@ -6017,20 +6051,20 @@ export default defineComponent({
}
.operation {
- display: flex;
- justify-content: right;
- .fb {
display: flex;
- margin-right: 20px;
- .jc {
- color: #4ea6ff;
- font-size: 14px;
- margin-left: 20px;
- white-space: nowrap;
- cursor: pointer;
+ justify-content: right;
+ .fb {
+ display: flex;
+ margin-right: 20px;
+ .jc {
+ color: #4ea6ff;
+ font-size: 14px;
+ margin-left: 20px;
+ white-space: nowrap;
+ cursor: pointer;
+ }
}
}
- }
.ynuse {
display: flex;
justify-content: center;
@@ -7612,31 +7646,31 @@ export default defineComponent({
}
.operation {
- display: flex;
- justify-content: right;
- margin-right:20px;
- .fb {
display: flex;
+ justify-content: right;
margin-right: 20px;
- .jc {
- color: #4ea6ff;
- font-size: 14px;
- margin-left: 20px;
- white-space: nowrap;
+ .fb {
+ display: flex;
+ margin-right: 20px;
+ .jc {
+ color: #4ea6ff;
+ font-size: 14px;
+ margin-left: 20px;
+ white-space: nowrap;
+ cursor: pointer;
+ }
+ }
+ }
+ .ynuse {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+
+ .use {
cursor: pointer;
}
}
}
- .ynuse {
- display: flex;
- justify-content: center;
- align-items: center;
-
- .use {
- cursor: pointer;
- }
- }
- }
.stm_inputbtn {
display: flex;
width: 90%;
@@ -7663,29 +7697,29 @@ export default defineComponent({
}
}
.btn {
- padding: 0px 26px 0px 26px;
- height: 38px;
- background: #4ea6ff;
- border-radius: 8px;
- //border: 1px solid rgba(64, 158, 255, 1);
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 14px;
- flex-shrink: 0;
- cursor: pointer;
+ padding: 0px 26px 0px 26px;
+ height: 38px;
+ background: #4ea6ff;
+ border-radius: 8px;
+ //border: 1px solid rgba(64, 158, 255, 1);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-right: 14px;
+ flex-shrink: 0;
+ cursor: pointer;
- .search {
- background-size: 100%;
- }
+ .search {
+ background-size: 100%;
+ }
- .btnText {
- font-size: 14px;
- font-weight: 400;
- color: #ffffff;
- line-height: 36px;
- margin-left: 5px;
- }
+ .btnText {
+ font-size: 14px;
+ font-weight: 400;
+ color: #ffffff;
+ line-height: 36px;
+ margin-left: 5px;
+ }
}
.btnn {
@@ -7754,60 +7788,60 @@ export default defineComponent({
background: rgba(64, 158, 255, 0.2);
}
.btns {
+ display: flex;
+ // flex-wrap: wrap;
+ .btn {
+ padding: 0px 21px 0px 21px;
+ height: 38px;
+ background: #4ea6ff;
+ border-radius: 8px;
+ //border: 1px solid rgba(64, 158, 255, 1);
display: flex;
- // flex-wrap: wrap;
- .btn {
- padding: 0px 21px 0px 21px;
- height: 38px;
- background: #4ea6ff;
- border-radius: 8px;
- //border: 1px solid rgba(64, 158, 255, 1);
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 14px;
- flex-shrink: 0;
- cursor: pointer;
+ align-items: center;
+ justify-content: center;
+ margin-right: 14px;
+ flex-shrink: 0;
+ cursor: pointer;
- .search {
- background-size: 100%;
- }
-
- .btnText {
- font-size: 14px;
- font-weight: 400;
- color: #ffffff;
- line-height: 36px;
- margin-left: 5px;
- }
+ .search {
+ background-size: 100%;
}
- .btn3 {
- margin-right: 0px;
-
- .search {
- width: 17px;
- height: 18px;
- background-image: url("../../assets/images/courseManage/add0.png");
- }
- }
-
- .btn3:hover {
- background: rgba(64, 158, 255, 0.76);
-
- .search {
- background-image: url("../../assets/images/courseManage/add0.png");
- }
-
- .btnText {
- color: #ffffff;
- }
- }
-
- .btn3:active {
- background: #0982ff;
+ .btnText {
+ font-size: 14px;
+ font-weight: 400;
+ color: #ffffff;
+ line-height: 36px;
+ margin-left: 5px;
}
}
+
+ .btn3 {
+ margin-right: 0px;
+
+ .search {
+ width: 17px;
+ height: 18px;
+ background-image: url("../../assets/images/courseManage/add0.png");
+ }
+ }
+
+ .btn3:hover {
+ background: rgba(64, 158, 255, 0.76);
+
+ .search {
+ background-image: url("../../assets/images/courseManage/add0.png");
+ }
+
+ .btnText {
+ color: #ffffff;
+ }
+ }
+
+ .btn3:active {
+ background: #0982ff;
+ }
+ }
}
.btn3 {
@@ -7910,7 +7944,6 @@ export default defineComponent({
}
.ant-table-thead > tr > th {
-
background-color: #eff4fc !important;
}
@@ -7925,20 +7958,20 @@ export default defineComponent({
}
.operation {
+ display: flex;
+ justify-content: right;
+ .fb {
display: flex;
- justify-content: right;
- .fb {
- display: flex;
- margin-right: 20px;
- .jc {
- color: #4ea6ff;
- font-size: 14px;
- margin-left: 20px;
- white-space: nowrap;
- cursor: pointer;
- }
+ margin-right: 20px;
+ .jc {
+ color: #4ea6ff;
+ font-size: 14px;
+ margin-left: 20px;
+ white-space: nowrap;
+ cursor: pointer;
}
}
+ }
.tableBox {
.pa {
@@ -7954,7 +7987,6 @@ export default defineComponent({
}
}
}
-
}
}
}
@@ -8009,180 +8041,180 @@ export default defineComponent({
.i5_left {
display: flex;
- .select {
- margin-right: 20px;
- margin-bottom: 20px;
- }
+ .select {
+ margin-right: 20px;
+ margin-bottom: 20px;
+ }
- .addTimeBox {
- position: relative;
- display: flex;
- align-items: center;
-
- .addTime {
- position: absolute;
- z-index: 10;
- margin-left: 10px;
- color: rgba(0, 0, 0, 0.4);
- }
-
- .ant-picker {
- padding-left: 85px;
- }
-
- .ant-picker-range .ant-picker-active-bar {
- margin-left: 85px;
- }
- }
-
- .btn {
- padding: 0px 26px 0px 26px;
- height: 38px;
- background: #4ea6ff;
- border-radius: 8px;
- //border: 1px solid rgba(64, 158, 255, 1);
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 14px;
- flex-shrink: 0;
- cursor: pointer;
-
- .search {
- background-size: 100%;
- }
-
- .btnText {
- font-size: 14px;
- font-weight: 400;
- color: #ffffff;
- line-height: 36px;
- margin-left: 5px;
- }
- }
-
- .btnn {
- padding: 0px 26px 0px 26px;
- height: 38px;
- background: #ffffff;
- border-radius: 8px;
- border: 1px solid rgba(64, 158, 255, 1);
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 14px;
- flex-shrink: 0;
- cursor: pointer;
-
- .search {
- background-size: 100%;
- }
-
- .btnText {
- font-size: 14px;
- font-weight: 400;
- color: #4ea6ff;
- line-height: 36px;
- margin-left: 5px;
- }
- }
-
- .btn1 {
- .search {
- width: 15px;
- height: 17px;
- background-image: url("../../assets/images/courseManage/search0.png");
- }
- }
-
- .btn2 {
- .search {
- width: 16px;
- height: 18px;
- background-image: url("../../assets/images/courseManage/reset1.png");
- }
- }
-
- .btn1:hover {
- background: rgba(64, 158, 255, 0.76);
-
- .search {
- background-image: url("../../assets/images/courseManage/search0.png");
- }
-
- .btnText {
- color: #ffffff;
- }
- }
-
- .btn1:active {
- background: #0982ff;
- }
-
- .btn2:hover {
- background: rgba(64, 158, 255, 0.1);
- }
-
- .btn2:active {
- background: rgba(64, 158, 255, 0.2);
- }
- }
-
- .btns {
+ .addTimeBox {
+ position: relative;
display: flex;
- // flex-wrap: wrap;
- .btn {
- padding: 0px 26px 0px 26px;
- height: 38px;
- background: #4ea6ff;
- border-radius: 8px;
- //border: 1px solid rgba(64, 158, 255, 1);
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 14px;
- flex-shrink: 0;
- cursor: pointer;
+ align-items: center;
- .search {
- background-size: 100%;
- }
-
- .btnText {
- font-size: 14px;
- font-weight: 400;
- color: #ffffff;
- line-height: 36px;
- margin-left: 5px;
- }
+ .addTime {
+ position: absolute;
+ z-index: 10;
+ margin-left: 10px;
+ color: rgba(0, 0, 0, 0.4);
}
- .btn3 {
- margin-right: 0px;
+ .ant-picker {
+ padding-left: 85px;
+ }
- .search {
- width: 17px;
- height: 18px;
- background-image: url("../../assets/images/courseManage/add0.png");
+ .ant-picker-range .ant-picker-active-bar {
+ margin-left: 85px;
+ }
+ }
+
+ .btn {
+ padding: 0px 26px 0px 26px;
+ height: 38px;
+ background: #4ea6ff;
+ border-radius: 8px;
+ //border: 1px solid rgba(64, 158, 255, 1);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-right: 14px;
+ flex-shrink: 0;
+ cursor: pointer;
+
+ .search {
+ background-size: 100%;
+ }
+
+ .btnText {
+ font-size: 14px;
+ font-weight: 400;
+ color: #ffffff;
+ line-height: 36px;
+ margin-left: 5px;
+ }
+ }
+
+ .btnn {
+ padding: 0px 26px 0px 26px;
+ height: 38px;
+ background: #ffffff;
+ border-radius: 8px;
+ border: 1px solid rgba(64, 158, 255, 1);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-right: 14px;
+ flex-shrink: 0;
+ cursor: pointer;
+
+ .search {
+ background-size: 100%;
+ }
+
+ .btnText {
+ font-size: 14px;
+ font-weight: 400;
+ color: #4ea6ff;
+ line-height: 36px;
+ margin-left: 5px;
+ }
+ }
+
+ .btn1 {
+ .search {
+ width: 15px;
+ height: 17px;
+ background-image: url("../../assets/images/courseManage/search0.png");
+ }
+ }
+
+ .btn2 {
+ .search {
+ width: 16px;
+ height: 18px;
+ background-image: url("../../assets/images/courseManage/reset1.png");
+ }
+ }
+
+ .btn1:hover {
+ background: rgba(64, 158, 255, 0.76);
+
+ .search {
+ background-image: url("../../assets/images/courseManage/search0.png");
+ }
+
+ .btnText {
+ color: #ffffff;
+ }
+ }
+
+ .btn1:active {
+ background: #0982ff;
+ }
+
+ .btn2:hover {
+ background: rgba(64, 158, 255, 0.1);
+ }
+
+ .btn2:active {
+ background: rgba(64, 158, 255, 0.2);
}
}
- .btn3:hover {
- background: rgba(64, 158, 255, 0.76);
+ .btns {
+ display: flex;
+ // flex-wrap: wrap;
+ .btn {
+ padding: 0px 26px 0px 26px;
+ height: 38px;
+ background: #4ea6ff;
+ border-radius: 8px;
+ //border: 1px solid rgba(64, 158, 255, 1);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-right: 14px;
+ flex-shrink: 0;
+ cursor: pointer;
- .search {
- background-image: url("../../assets/images/courseManage/add0.png");
+ .search {
+ background-size: 100%;
+ }
+
+ .btnText {
+ font-size: 14px;
+ font-weight: 400;
+ color: #ffffff;
+ line-height: 36px;
+ margin-left: 5px;
+ }
}
- .btnText {
- color: #ffffff;
+ .btn3 {
+ margin-right: 0px;
+
+ .search {
+ width: 17px;
+ height: 18px;
+ background-image: url("../../assets/images/courseManage/add0.png");
+ }
+ }
+
+ .btn3:hover {
+ background: rgba(64, 158, 255, 0.76);
+
+ .search {
+ background-image: url("../../assets/images/courseManage/add0.png");
+ }
+
+ .btnText {
+ color: #ffffff;
+ }
+ }
+
+ .btn3:active {
+ background: #0982ff;
}
}
-
- .btn3:active {
- background: #0982ff;
- }
- }
}
.stmm_i6 {
diff --git a/src/views/courselibrary/CoursewareManage_Old.vue b/src/views/courselibrary/CoursewareManage_Old.vue
index adda96ba..2cf74957 100644
--- a/src/views/courselibrary/CoursewareManage_Old.vue
+++ b/src/views/courselibrary/CoursewareManage_Old.vue
@@ -3529,16 +3529,16 @@ const columns7 = [
return text ? text : "-";
},
},
- {
- title: "岗位",
- width: 300,
- dataIndex: "postion",
- key: "3",
- align: "center",
- customRender: ({ text }) => {
- return text ? text : "-";
- },
- },
+ // // {
+ // title: "岗位",
+ // width: 300,
+ // dataIndex: "postion",
+ // key: "3",
+ // align: "center",
+ // customRender: ({ text }) => {
+ // return text ? text : "-";
+ // },
+ // },
{
title: "Band",
width: 200,
diff --git a/src/views/courselibrary/components/seeModal.vue b/src/views/courselibrary/components/seeModal.vue
index 3fd5d40c..1d9971d6 100644
--- a/src/views/courselibrary/components/seeModal.vue
+++ b/src/views/courselibrary/components/seeModal.vue
@@ -156,7 +156,7 @@
@@ -207,21 +207,43 @@
-
- {{ item.indexOf('-')!==-1?item.slice(item.lastIndexOf('/')+1,item.indexOf('-')) + item.slice(item.lastIndexOf('.')) :item }}
+
+ {{
+ item.indexOf("-") !== -1
+ ? item.slice(
+ item.lastIndexOf("/") + 1,
+ item.lastIndexOf("-")
+ ) + item.slice(item.lastIndexOf("."))
+ : item
+ }}
+
下载
@@ -262,134 +284,140 @@ export default defineComponent({
},
},
setup(props, { emit }) {
- console.log(props);
+ console.log("props", props);
const state = reactive({
imgList: [],
options2222: [
{
- title: '领导力',
- value: '100',
- selectable:false,
+ title: "领导力",
+ value: "100",
+ selectable: false,
children: [
{
- title: '领导业务',
- value: '1001',
+ title: "领导业务",
+ value: "1001",
},
{
- title: '领导团队',
- value: '1002',
+ title: "领导团队",
+ value: "1002",
},
{
- title: '领导自我',
- value: '1003',
+ title: "领导自我",
+ value: "1003",
},
],
},
{
- title: '专业力',
- value: '200',
- selectable:false,
+ title: "专业力",
+ value: "200",
+ selectable: false,
children: [
{
- title: '研发',
- value: '2001',
+ title: "研发",
+ value: "2001",
},
{
- title: '产品和解决方案',
- value: '2002',
+ title: "产品和解决方案",
+ value: "2002",
},
{
- title: '生产技术与制造',
- value: '2003',
+ title: "生产技术与制造",
+ value: "2003",
},
{
- title: '供应链',
- value: '2004',
+ title: "供应链",
+ value: "2004",
},
{
- title: '营销',
- value: '2005',
+ title: "营销",
+ value: "2005",
},
{
- title: '品质',
- value: '2006',
+ title: "品质",
+ value: "2006",
},
{
- title: '战略与企划',
- value: '2007',
+ title: "战略与企划",
+ value: "2007",
},
{
- title: '流程管理',
- value: '2008',
+ title: "流程管理",
+ value: "2008",
},
{
- title: '业绩管理',
- value: '2009',
+ title: "业绩管理",
+ value: "2009",
},
{
- title: '项目管理',
- value: '20010',
+ title: "项目管理",
+ value: "20010",
},
{
- title: '信息技术',
- value: '20011',
+ title: "信息技术",
+ value: "20011",
},
{
- title: '环境与安全',
- value: '20012',
+ title: "环境与安全",
+ value: "20012",
},
{
- title: '人力资源',
- value: '20013',
+ title: "人力资源",
+ value: "20013",
},
{
- title: '企业文化',
- value: '20014',
+ title: "企业文化",
+ value: "20014",
},
{
- title: '品牌',
- value: '20015',
+ title: "品牌",
+ value: "20015",
},
{
- title: '财务',
- value: '20016',
+ title: "财务",
+ value: "20016",
},
{
- title: '法务',
- value: '20017',
+ title: "法务",
+ value: "20017",
},
{
- title: '行政',
- value: '20018',
+ title: "行政",
+ value: "20018",
},
{
- title: '医工',
- value: '20019',
- }
+ title: "医工",
+ value: "20019",
+ },
],
},
{
- title: '通用力',
- value: '300',
- selectable:false,
+ title: "通用力",
+ value: "300",
+ selectable: false,
children: [
{
- title: '职业操守与道德',
- value: '3001',
+ title: "职业操守与道德",
+ value: "3001",
},
{
- title: '职业素养与技能',
- value: '3002',
+ title: "职业素养与技能",
+ value: "3002",
},
{
- title: '规章制度',
- value: '3003',
+ title: "规章制度",
+ value: "3003",
},
- ],
- }
- ]
+ ],
+ },
+ ],
+ ceshi: "https://u-pre.boe.com/upload/测试下载ppt2-1671002026755.pptx",
+ ceshi2: "http://111.231.196.214:12016/测试下载ppt3-1671001683026.pptx",
});
+ // item.slice(
+ // item.lastIndexOf("/") + 1,
+ // item.indexOf("-")
+ // ) + item.slice(item.lastIndexOf("."))
const filterTxt = (txt) => {
if (txt) {
return txt;
@@ -400,8 +428,8 @@ export default defineComponent({
const filterClassTxt = (txt) => {
let str = "-";
if (txt) {
- for(let i =0; i
(
+
+ {faName
+ ? gaName !== null
+ ? gaName + "/" + faName
+ : faName
+ : name}
+
+ ),
+ },
{
title: "项目经理",
dataIndex: "manager",
diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue
index 3aa4108c..f5ee9805 100644
--- a/src/views/learningpath/LevelAdd.vue
+++ b/src/views/learningpath/LevelAdd.vue
@@ -1483,14 +1483,14 @@ export default {
align: "center",
className: "h",
},
- {
- title: "岗位",
- dataIndex: "gang",
- key: "gang",
- width: 110,
- align: "center",
- className: "h",
- },
+ // {
+ // title: "岗位",
+ // dataIndex: "gang",
+ // key: "gang",
+ // width: 110,
+ // align: "center",
+ // className: "h",
+ // },
{
title: "当前关卡",
dataIndex: "cur",
@@ -1499,14 +1499,14 @@ export default {
align: "center",
className: "h",
},
- {
- title: "进度",
- dataIndex: "jin",
- key: "jin",
- width: 110,
- align: "center",
- className: "h",
- },
+ {
+ title: "进度",
+ dataIndex: "jin",
+ key: "jin",
+ width: 110,
+ align: "center",
+ className: "h",
+ },
{
title: "开始时间",
dataIndex: "time",
diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue
index e0f50cc2..5092963e 100644
--- a/src/views/learningpath/LevelAddDetail.vue
+++ b/src/views/learningpath/LevelAddDetail.vue
@@ -1531,14 +1531,14 @@ export default {
align: "center",
className: "h",
},
- {
- title: "岗位",
- dataIndex: "gang",
- key: "gang",
- width: 110,
- align: "center",
- className: "h",
- },
+ // {
+ // title: "岗位",
+ // dataIndex: "gang",
+ // key: "gang",
+ // width: 110,
+ // align: "center",
+ // className: "h",
+ // },
{
title: "当前关卡",
dataIndex: "cur",
@@ -1547,14 +1547,14 @@ export default {
align: "center",
className: "h",
},
- {
- title: "进度",
- dataIndex: "jin",
- key: "jin",
- width: 110,
- align: "center",
- className: "h",
- },
+ {
+ title: "进度",
+ dataIndex: "jin",
+ key: "jin",
+ width: 110,
+ align: "center",
+ className: "h",
+ },
{
title: "开始时间",
dataIndex: "time",
diff --git a/src/views/projectcenter/LibraryAdd.vue b/src/views/projectcenter/LibraryAdd.vue
index 2a89a9f7..6db2fa8c 100644
--- a/src/views/projectcenter/LibraryAdd.vue
+++ b/src/views/projectcenter/LibraryAdd.vue
@@ -538,24 +538,6 @@
}}
-
-
项目说明:
-
- {{
- projectInfo.remark
- }}
-
-
-
-
同步学习记录:
-
-
同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)
-
-
项目级别:
@@ -568,14 +550,32 @@
+
+
同步学习记录:
+
+
同步课程学习记录(如学员在课程库中拥有课程的学习记录,自动免修该课程)
+
+
+
+
项目说明:
+
+ {{
+ projectInfo.remark
+ }}
+
+
diff --git a/src/views/projectcenter/ProjectAdd.vue b/src/views/projectcenter/ProjectAdd.vue
index f5914863..a27b84b0 100644
--- a/src/views/projectcenter/ProjectAdd.vue
+++ b/src/views/projectcenter/ProjectAdd.vue
@@ -3,13 +3,13 @@