mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 11:26:45 +08:00
提交
This commit is contained in:
@@ -18,8 +18,8 @@ import { boeRequest } from "@/api/request";
|
|||||||
// "application/x-www-form-urlencoded";
|
// "application/x-www-form-urlencoded";
|
||||||
axios.defaults.withCredentials = true;
|
axios.defaults.withCredentials = true;
|
||||||
const http = axios.create({
|
const http = axios.create({
|
||||||
baseURL: '/growth',
|
// baseURL: '/growth',
|
||||||
// baseURL: process.env.VUE_APP_BASE_API_GROWTH,
|
baseURL: process.env.VUE_APP_BASE_API_GROWTH,
|
||||||
timeout: 1000 * 15,
|
timeout: 1000 * 15,
|
||||||
// headers: { "Content-Type": "multipart/form-data" },
|
// headers: { "Content-Type": "multipart/form-data" },
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export const batchSendMessage = (data) => http.post('/professional/urgeLearning/
|
|||||||
// 删除手动添加的专业力必修
|
// 删除手动添加的专业力必修
|
||||||
export const delGrowth = (growthId) => http.get('/professional/compulsory/delGrowth/' + growthId)
|
export const delGrowth = (growthId) => http.get('/professional/compulsory/delGrowth/' + growthId)
|
||||||
|
|
||||||
// 删除手动添加的专业力必修
|
|
||||||
export const markComplete = (obj) => http.get('/professional/allocation/markComplete', { params: obj })
|
export const markComplete = (obj) => http.get('/professional/allocation/markComplete', { params: obj })
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -499,7 +499,7 @@ const columns = ref([
|
|||||||
<div class="opa">
|
<div class="opa">
|
||||||
<a
|
<a
|
||||||
className="opa"
|
className="opa"
|
||||||
style={{ color: "#666" }}
|
style={{ color: "#4ea6ff" }}
|
||||||
onClick={() => removeStu(record.id)}
|
onClick={() => removeStu(record.id)}
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
|
|||||||
@@ -120,10 +120,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<!-- <template #action="{ record }">
|
<template #action="{ record }">
|
||||||
<template
|
<template
|
||||||
v-if="
|
v-if="
|
||||||
record.completionStatus == 2 && checkMenu('growthStudentMarkComplete')
|
record.completionStatus == 2 &&
|
||||||
|
checkMenu('growthStudentMarkComplete')
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<a-button type="link" @click="setPermissions(record)"
|
<a-button type="link" @click="setPermissions(record)"
|
||||||
@@ -133,7 +134,7 @@
|
|||||||
<template v-else>
|
<template v-else>
|
||||||
<div>--</div>
|
<div>--</div>
|
||||||
</template>
|
</template>
|
||||||
</template> -->
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -151,6 +152,7 @@ import { message } from "ant-design-vue";
|
|||||||
import { TASK_TYPE } from "@/utils/constGrown";
|
import { TASK_TYPE } from "@/utils/constGrown";
|
||||||
import { checkGrowthPer } from "@/utils/utils";
|
import { checkGrowthPer } from "@/utils/utils";
|
||||||
import { checkMenu } from "@/utils/utils";
|
import { checkMenu } from "@/utils/utils";
|
||||||
|
import dialog from "@/utils/dialog";
|
||||||
export default {
|
export default {
|
||||||
name: "SeeStu",
|
name: "SeeStu",
|
||||||
components: {},
|
components: {},
|
||||||
@@ -226,14 +228,13 @@ export default {
|
|||||||
0: "未开始",
|
0: "未开始",
|
||||||
}[completionStatus]),
|
}[completionStatus]),
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// title: "操作",
|
title: "操作",
|
||||||
// dataIndex: "operation",
|
dataIndex: "operation",
|
||||||
// key: "operation",
|
key: "operation",
|
||||||
// width: 50,
|
align: "center",
|
||||||
// align: "center",
|
slots: { customRender: "action" },
|
||||||
// slots: { customRender: "action" },
|
},
|
||||||
// },
|
|
||||||
]);
|
]);
|
||||||
const formData = ref();
|
const formData = ref();
|
||||||
const openDrawer = (row) => {
|
const openDrawer = (row) => {
|
||||||
@@ -258,9 +259,14 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const setPermissions = (row) => {
|
const setPermissions = (row) => {
|
||||||
markComplete({ id: row.id }).then((res) => {
|
dialog({
|
||||||
getData();
|
content: "确定标记完成该课程吗?",
|
||||||
message.success("操作成功");
|
ok: async () => {
|
||||||
|
markComplete({ id: row.id }).then((res) => {
|
||||||
|
getData();
|
||||||
|
message.success("操作成功");
|
||||||
|
});
|
||||||
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
@@ -271,6 +277,7 @@ export default {
|
|||||||
columns,
|
columns,
|
||||||
getData,
|
getData,
|
||||||
formData,
|
formData,
|
||||||
|
checkMenu,
|
||||||
checkGrowthPer,
|
checkGrowthPer,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -562,6 +562,7 @@ export default {
|
|||||||
key: "stdPositionName",
|
key: "stdPositionName",
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
width: 400,
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
return record.stdPosition
|
return record.stdPosition
|
||||||
? `${record.stdPositionName}(${record.stdPosition})`
|
? `${record.stdPositionName}(${record.stdPosition})`
|
||||||
@@ -576,27 +577,26 @@ export default {
|
|||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "学习人数",
|
title: "完成人数/总人数",
|
||||||
dataIndex: "learnNum",
|
|
||||||
key: "learnNum",
|
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 150,
|
customRender: ({ record }) => {
|
||||||
|
return `${record.comLearnNum}/${record.learnNum}`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "完成人数",
|
title: "必修|选修",
|
||||||
dataIndex: "comLearnNum",
|
|
||||||
key: "comLearnNum",
|
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 150,
|
customRender: ({ record }) => {
|
||||||
|
return `${record.requiredTaskNum}|${record.elePublishedNum}`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "完成比例",
|
title: "完成比例",
|
||||||
dataIndex: "ratio",
|
dataIndex: "ratio",
|
||||||
key: "ratio",
|
key: "ratio",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 150,
|
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
return `${record.ratio * 100}%`;
|
return `${record.ratio * 100}%`;
|
||||||
@@ -617,30 +617,13 @@ export default {
|
|||||||
dataIndex: "updateTime",
|
dataIndex: "updateTime",
|
||||||
key: "updateTime",
|
key: "updateTime",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
width: 180,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
// {
|
|
||||||
// title: "归属人",
|
|
||||||
// dataIndex: "createName",
|
|
||||||
// key: "createName",
|
|
||||||
// width: 60,
|
|
||||||
// align: "center",
|
|
||||||
// ellipsis: true,
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// title: "数据来源",
|
|
||||||
// dataIndex: "dataSource",
|
|
||||||
// key: "dataSource",
|
|
||||||
// align: "center",
|
|
||||||
// ellipsis: true,
|
|
||||||
// customRender: ({ record }) => {
|
|
||||||
// return record.dataSource == 1 ? "AMED" : "手动添加";
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
align: "right",
|
align: "right",
|
||||||
|
width: 200,
|
||||||
slots: { customRender: "listData" },
|
slots: { customRender: "listData" },
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
@@ -749,23 +732,21 @@ export default {
|
|||||||
band: state.band,
|
band: state.band,
|
||||||
};
|
};
|
||||||
if (state.editId) {
|
if (state.editId) {
|
||||||
updatePostInfomation(params)
|
updatePostInfomation(params).then((res) => {
|
||||||
.then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
message.success("保存成功");
|
||||||
message.success("保存成功");
|
of_exit();
|
||||||
of_exit();
|
listDatas();
|
||||||
listDatas();
|
}
|
||||||
}
|
});
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
saveGrowth(params)
|
saveGrowth(params).then((res) => {
|
||||||
.then((res) => {
|
if (res.data.code == 200) {
|
||||||
if (res.data.code == 200) {
|
message.success("保存成功");
|
||||||
message.success("保存成功");
|
of_exit();
|
||||||
of_exit();
|
listDatas();
|
||||||
listDatas();
|
}
|
||||||
}
|
});
|
||||||
})
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const of_exit = () => {
|
const of_exit = () => {
|
||||||
|
|||||||
@@ -550,6 +550,7 @@ export default {
|
|||||||
key: "stdPositionName",
|
key: "stdPositionName",
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
|
width: 400,
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
return record.stdPosition
|
return record.stdPosition
|
||||||
? `${record.stdPositionName}(${record.stdPosition})`
|
? `${record.stdPositionName}(${record.stdPosition})`
|
||||||
@@ -564,27 +565,26 @@ export default {
|
|||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "学习人数",
|
title: "完成人数/总人数",
|
||||||
dataIndex: "learnNum",
|
|
||||||
key: "learnNum",
|
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 150,
|
customRender: ({ record }) => {
|
||||||
|
return `${record.comLearnNum}/${record.learnNum}`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "完成人数",
|
title: "必修|选修",
|
||||||
dataIndex: "comLearnNum",
|
|
||||||
key: "comLearnNum",
|
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 150,
|
customRender: ({ record }) => {
|
||||||
|
return `${record.requiredTaskNum}|${record.elePublishedNum}`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "完成比例",
|
title: "完成比例",
|
||||||
dataIndex: "ratio",
|
dataIndex: "ratio",
|
||||||
key: "ratio",
|
key: "ratio",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 150,
|
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
return `${record.ratio * 100}%`;
|
return `${record.ratio * 100}%`;
|
||||||
@@ -605,30 +605,13 @@ export default {
|
|||||||
dataIndex: "updateTime",
|
dataIndex: "updateTime",
|
||||||
key: "updateTime",
|
key: "updateTime",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
width: 180,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
// {
|
|
||||||
// title: "归属人",
|
|
||||||
// dataIndex: "createName",
|
|
||||||
// key: "createName",
|
|
||||||
// width: 60,
|
|
||||||
// align: "center",
|
|
||||||
// ellipsis: true,
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// title: "数据来源",
|
|
||||||
// dataIndex: "dataSource",
|
|
||||||
// key: "dataSource",
|
|
||||||
// align: "center",
|
|
||||||
// ellipsis: true,
|
|
||||||
// customRender: ({ record }) => {
|
|
||||||
// return record.dataSource == 1 ? "AMED" : "手动添加";
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
align: "right",
|
align: "right",
|
||||||
|
width: 200,
|
||||||
slots: { customRender: "listData" },
|
slots: { customRender: "listData" },
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -852,7 +852,7 @@ export default {
|
|||||||
// 撤回
|
// 撤回
|
||||||
const resize = () => {
|
const resize = () => {
|
||||||
dialog({
|
dialog({
|
||||||
content: "确定撤回?",
|
content: "确定撤回当前任务?",
|
||||||
contentTwo: "撤回后学员进度保留,发布后可继续学习",
|
contentTwo: "撤回后学员进度保留,发布后可继续学习",
|
||||||
ok: () => {
|
ok: () => {
|
||||||
state.spinning = true;
|
state.spinning = true;
|
||||||
|
|||||||
@@ -18,16 +18,16 @@ module.exports = defineConfig({
|
|||||||
overlay: false,// 解决代码抛出异常
|
overlay: false,// 解决代码抛出异常
|
||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
// "/professional": {
|
"/professional": {
|
||||||
// target: 'http://192.168.31.211:32002',
|
target: 'http://192.168.31.211:32002',
|
||||||
// // target: 'http://192.168.50.195:32002',
|
// target: 'http://192.168.50.195:32002',
|
||||||
// // target: 'http://192.168.86.195:32002',
|
// target: 'http://192.168.86.195:32002',
|
||||||
// changeOrigin: true,
|
|
||||||
// },
|
|
||||||
"/growth": {
|
|
||||||
target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
|
// "/growth": {
|
||||||
|
// target: 'https:' + process.env.VUE_APP_BOE_API_URL,
|
||||||
|
// changeOrigin: true,
|
||||||
|
// },
|
||||||
"/manageApi": {
|
"/manageApi": {
|
||||||
target: 'https:' + process.env.VUE_APP_PROXY_URL,
|
target: 'https:' + process.env.VUE_APP_PROXY_URL,
|
||||||
changeOrigin: true, //表示是否改变原域名
|
changeOrigin: true, //表示是否改变原域名
|
||||||
|
|||||||
Reference in New Issue
Block a user