mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
feat:合并
This commit is contained in:
@@ -457,9 +457,10 @@ export default {
|
||||
|
||||
//获取项目修改记录
|
||||
const getrecord = () => {
|
||||
console.log("props.chooseProject", props.chooseProject);
|
||||
editRecord(props.chooseProject)
|
||||
.then((res) => {
|
||||
console.log("获取修改记录", res);
|
||||
console.log("获取修改记录2", res);
|
||||
if (res.data.code === 200) {
|
||||
state.tableData = res.data.data.records;
|
||||
// console.log("state.tableData", state.tableData);
|
||||
|
||||
@@ -218,7 +218,7 @@
|
||||
<a-col>
|
||||
<slot name="extension" v-bind:data="{ record }"></slot>
|
||||
</a-col>
|
||||
<!-- 新加 换组 通过 拒绝
|
||||
<!-- 新加 换组 通过 拒绝 -->
|
||||
<a-col v-if="type === 1">
|
||||
<div
|
||||
style="
|
||||
@@ -232,18 +232,29 @@
|
||||
换组
|
||||
</div>
|
||||
</a-col>
|
||||
-->
|
||||
<a-col v-if="type === 3 && record.status!==0">
|
||||
<a-col v-if="type === 3 && record.status !== 0">
|
||||
<div
|
||||
style=" color: #4ea6ff; font-size: 14px;text-align: center; margin-left: 10px; cursor: pointer; "
|
||||
style="
|
||||
color: #4ea6ff;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
margin-left: 10px;
|
||||
cursor: pointer;
|
||||
"
|
||||
@click="updateStatus(0, record.id)"
|
||||
>
|
||||
通过
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col v-if="type === 3 && record.status!==0">
|
||||
<a-col v-if="type === 3 && record.status !== 0">
|
||||
<div
|
||||
style=" color: #4ea6ff;font-size: 14px;text-align: center; margin-left: 10px;cursor: pointer; "
|
||||
style="
|
||||
color: #4ea6ff;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
margin-left: 10px;
|
||||
cursor: pointer;
|
||||
"
|
||||
@click="updateStatus(2, record.id)"
|
||||
>
|
||||
拒绝
|
||||
@@ -252,7 +263,13 @@
|
||||
<a-col>
|
||||
<div
|
||||
@click="del(record.id)"
|
||||
style=" color: #4ea6ff;font-size: 14px;text-align: center; margin-left: 10px; cursor: pointer;"
|
||||
style="
|
||||
color: #4ea6ff;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
margin-left: 10px;
|
||||
cursor: pointer;
|
||||
"
|
||||
>
|
||||
删除
|
||||
</div>
|
||||
@@ -458,7 +475,7 @@ const tablecolumns = ref([
|
||||
className: "h",
|
||||
ellipsis: true,
|
||||
customRender: ({ record: { studentOrgName, studentDepartName } }) =>
|
||||
(allDepartShow(studentOrgName, studentDepartName)),
|
||||
allDepartShow(studentOrgName, studentDepartName),
|
||||
},
|
||||
{
|
||||
title: "加入方式",
|
||||
@@ -468,7 +485,15 @@ const tablecolumns = ref([
|
||||
align: "center",
|
||||
customRender: ({ record: { source } }) =>
|
||||
// ({ 1: "快速添加", 2: "组织", 3: "受众", 4: "报名" }[source]),
|
||||
({ 0: "手动加入", 1: "手动加入", 2: "手动加入", 3: "手动加入", 4: "报名", 5: "手动加入", 6: "手动加入"}[source]),
|
||||
({
|
||||
0: "手动加入",
|
||||
1: "手动加入",
|
||||
2: "手动加入",
|
||||
3: "手动加入",
|
||||
4: "报名",
|
||||
5: "手动加入",
|
||||
6: "手动加入",
|
||||
}[source]),
|
||||
},
|
||||
...props.columns,
|
||||
{
|
||||
@@ -481,10 +506,15 @@ const tablecolumns = ref([
|
||||
},
|
||||
]);
|
||||
|
||||
function allDepartShow(a,b) {
|
||||
let org = (a=="" || a == null || a == undefined) ? a = "" : a.slice(0,1) =='/' ? a.slice(1,a.length) : a;
|
||||
let depart = (b=="" || b == null || b == undefined) ? b = "" : b;
|
||||
let allname = org == "" && depart == "" ? '-' : org + depart;
|
||||
function allDepartShow(a, b) {
|
||||
let org =
|
||||
a == "" || a == null || a == undefined
|
||||
? (a = "")
|
||||
: a.slice(0, 1) == "/"
|
||||
? a.slice(1, a.length)
|
||||
: a;
|
||||
let depart = b == "" || b == null || b == undefined ? (b = "") : b;
|
||||
let allname = org == "" && depart == "" ? "-" : org + depart;
|
||||
return allname;
|
||||
}
|
||||
|
||||
@@ -943,8 +973,6 @@ const AddImpStuvisibleClose = (isget) => {
|
||||
background-image: url("@/assets/images/coursewareManage/export.png");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
/*.delete {
|
||||
z-index: 9999;
|
||||
|
||||
@@ -2353,18 +2353,18 @@ import { useStore } from "vuex";
|
||||
|
||||
//列表表格
|
||||
const columns1 = [
|
||||
// {
|
||||
// title: "序号",
|
||||
// width: 100,
|
||||
// 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;
|
||||
// },
|
||||
// },
|
||||
{
|
||||
title: "课程编号",
|
||||
width: 100,
|
||||
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;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "名称",
|
||||
width: 400,
|
||||
|
||||
Reference in New Issue
Block a user