mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 07:16:46 +08:00
提交
This commit is contained in:
@@ -267,7 +267,7 @@ const rulesRef = ref({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
let validate = Form.useForm(formData.value.info, rulesRef).validate;
|
let validate = null;
|
||||||
const durationText = computed(() =>
|
const durationText = computed(() =>
|
||||||
dateTime.value?.length
|
dateTime.value?.length
|
||||||
? dayjs(dateTime.value[1]).diff(dayjs(dateTime.value[0]), "minute")
|
? dayjs(dateTime.value[1]).diff(dayjs(dateTime.value[0]), "minute")
|
||||||
@@ -349,7 +349,7 @@ function openDrawer(row) {
|
|||||||
dayjs(row.info.activityStartTime, "YYYY-MM-DD HH:mm"),
|
dayjs(row.info.activityStartTime, "YYYY-MM-DD HH:mm"),
|
||||||
dayjs(row.info.activityEndTime, "YYYY-MM-DD HH:mm"),
|
dayjs(row.info.activityEndTime, "YYYY-MM-DD HH:mm"),
|
||||||
]);
|
]);
|
||||||
row && (validate = Form.useForm(formData.value.info, rulesRef).validate);
|
validate = Form.useForm(formData.value.info, rulesRef).validate;
|
||||||
visible.value = true;
|
visible.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ const props = defineProps({
|
|||||||
growId: String,
|
growId: String,
|
||||||
});
|
});
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
const formData = useResetRef({
|
const formData = ref({
|
||||||
info: {
|
info: {
|
||||||
discussName: "",
|
discussName: "",
|
||||||
discussExplain: "",
|
discussExplain: "",
|
||||||
@@ -118,12 +118,17 @@ const rulesRef = ref({
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
let validate = Form.useForm(formData.value.info, rulesRef).validate
|
let validate = null;
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
visible.value = false;
|
visible.value = false;
|
||||||
dateTime.value = [];
|
dateTime.value = [];
|
||||||
formData.reset();
|
formData.value = {
|
||||||
formData.value.info = {};
|
info: {
|
||||||
|
discussName: "",
|
||||||
|
discussExplain: "",
|
||||||
|
discussSettings: true,
|
||||||
|
},
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
async function confirm() {
|
async function confirm() {
|
||||||
@@ -161,7 +166,7 @@ function openDrawer(row) {
|
|||||||
row.info.discussSettings === "false" || row.info.discussSettings === false
|
row.info.discussSettings === "false" || row.info.discussSettings === false
|
||||||
? false
|
? false
|
||||||
: true);
|
: true);
|
||||||
row && (validate = Form.useForm(formData.value.info, rulesRef).validate);
|
validate = Form.useForm(formData.value.info, rulesRef).validate;
|
||||||
visible.value = true;
|
visible.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -198,12 +198,13 @@ async function confirm() {
|
|||||||
} else {
|
} else {
|
||||||
message.success("添加成功");
|
message.success("添加成功");
|
||||||
}
|
}
|
||||||
|
closeDrawer();
|
||||||
emit("refresh");
|
emit("refresh");
|
||||||
} else {
|
} else {
|
||||||
message.error(res.msg);
|
message.error(res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
closeDrawer();
|
|
||||||
}
|
}
|
||||||
let validate = null;
|
let validate = null;
|
||||||
function openDrawer(row) {
|
function openDrawer(row) {
|
||||||
|
|||||||
@@ -356,7 +356,7 @@ const props = defineProps({
|
|||||||
});
|
});
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
const headers = { token: getCookieForName("token") };
|
const headers = { token: getCookieForName("token") };
|
||||||
const formData = useResetRef({
|
const formData = ref({
|
||||||
info: {
|
info: {
|
||||||
liveName: "",
|
liveName: "",
|
||||||
liveLink: "",
|
liveLink: "",
|
||||||
@@ -436,7 +436,7 @@ const rulesRef = ref({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
let validate = Form.useForm(formData.value.info, rulesRef).validate;
|
let validate = null;
|
||||||
const { resetFields } = Form.useForm(formData.value.info, rulesRef);
|
const { resetFields } = Form.useForm(formData.value.info, rulesRef);
|
||||||
const durationText = computed(() =>
|
const durationText = computed(() =>
|
||||||
dateTime.value?.length
|
dateTime.value?.length
|
||||||
@@ -451,8 +451,26 @@ const closeDrawer = () => {
|
|||||||
imageUrl.value = "";
|
imageUrl.value = "";
|
||||||
visible.value = false;
|
visible.value = false;
|
||||||
dateTime.value = [];
|
dateTime.value = [];
|
||||||
formData.reset();
|
formData.value = {
|
||||||
formData.value.info = {};
|
info: {
|
||||||
|
liveName: "",
|
||||||
|
liveLink: "",
|
||||||
|
liveStartTime: "",
|
||||||
|
liveEndTime: "",
|
||||||
|
liveNotice: "",
|
||||||
|
liveDuration: "",
|
||||||
|
liveTeacherId: "",
|
||||||
|
liveTeacherName: "",
|
||||||
|
liveCover: "",
|
||||||
|
beforeSignIn: "",
|
||||||
|
afterSignIn: "",
|
||||||
|
isEvaluate: false,
|
||||||
|
assessmentId: "",
|
||||||
|
assessmentName: "",
|
||||||
|
livePlayback: "",
|
||||||
|
liveExplain: "",
|
||||||
|
},
|
||||||
|
};
|
||||||
resetFields();
|
resetFields();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -495,11 +513,11 @@ async function confirm() {
|
|||||||
} else {
|
} else {
|
||||||
message.success("添加成功");
|
message.success("添加成功");
|
||||||
}
|
}
|
||||||
|
closeDrawer();
|
||||||
emit("refresh");
|
emit("refresh");
|
||||||
} else {
|
} else {
|
||||||
message.error(res.msg);
|
message.error(res.msg);
|
||||||
}
|
}
|
||||||
closeDrawer();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -507,7 +525,7 @@ function openDrawer(row) {
|
|||||||
row && (formData.value = row);
|
row && (formData.value = row);
|
||||||
row && (dateTime.value = [row.info.liveStartTime, row.info.liveEndTime]);
|
row && (dateTime.value = [row.info.liveStartTime, row.info.liveEndTime]);
|
||||||
row && (imageUrl.value = row.info.liveCover);
|
row && (imageUrl.value = row.info.liveCover);
|
||||||
row && (validate = Form.useForm(formData.value.info, rulesRef).validate);
|
validate = Form.useForm(formData.value.info, rulesRef).validate;
|
||||||
visible.value = true;
|
visible.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
@click="closeDrawer"
|
@click="closeDrawer"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<template v-if="step == 1">
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<template v-if="datasource.taskType == 4">
|
<template v-if="datasource.taskType == 4">
|
||||||
<div class="endtime">
|
<div class="endtime">
|
||||||
@@ -75,6 +76,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnss" style="margin-top: 20px">
|
<div class="btnss" style="margin-top: 20px">
|
||||||
|
<template v-if="tableData.length">
|
||||||
<div class="btn btn1" @click="godie" style="margin-right: 20px">
|
<div class="btn btn1" @click="godie" style="margin-right: 20px">
|
||||||
<div class="img1"></div>
|
<div class="img1"></div>
|
||||||
<div class="wz">催促学习</div>
|
<div class="wz">催促学习</div>
|
||||||
@@ -97,6 +99,7 @@
|
|||||||
<div class="wz" @click="showEntryScore">导入成绩</div>
|
<div class="wz" @click="showEntryScore">导入成绩</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab" style="margin-top: 20px; margin-bottom: 100px">
|
<div class="tab" style="margin-top: 20px; margin-bottom: 100px">
|
||||||
<a-table
|
<a-table
|
||||||
@@ -124,17 +127,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
</div>
|
<template v-if="step == 2">
|
||||||
</a-drawer>
|
|
||||||
|
|
||||||
<EScore
|
<EScore
|
||||||
v-model:eScorevisible="Evisible"
|
|
||||||
:type="2"
|
:type="2"
|
||||||
|
@close="closeImport"
|
||||||
:id="datasource?.id"
|
:id="datasource?.id"
|
||||||
:pid="datasource?.growthId"
|
:pid="datasource?.growthId"
|
||||||
v-model:searchTaskList="searchTaskList"
|
v-model:searchTaskList="searchTaskList"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
</a-drawer>
|
||||||
|
|
||||||
<!-- <view-assess v-model:Assessvisible="Assessvisible" :datasource="evalDataSource" :evalName="datasource.info?.assessmentName"
|
<!-- <view-assess v-model:Assessvisible="Assessvisible" :datasource="evalDataSource" :evalName="datasource.info?.assessmentName"
|
||||||
:basicdata="datasource.info" /> -->
|
:basicdata="datasource.info" /> -->
|
||||||
</template>
|
</template>
|
||||||
@@ -143,7 +148,6 @@
|
|||||||
import { toRefs, reactive, onMounted, onUnmounted } from "vue";
|
import { toRefs, reactive, onMounted, onUnmounted } from "vue";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
// import ViewAssess from "../ViewAssess";
|
// import ViewAssess from "../ViewAssess";
|
||||||
import { checkGrowthPer } from "@/utils/utils";
|
|
||||||
import EScore from "@/components/growthpath/GrowthScore.vue";
|
import EScore from "@/components/growthpath/GrowthScore.vue";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -202,6 +206,7 @@ export default {
|
|||||||
visible: props.Tvisible,
|
visible: props.Tvisible,
|
||||||
name: "",
|
name: "",
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
|
step: 1, // 步骤数
|
||||||
Evisible: false, //录入成绩抽屉
|
Evisible: false, //录入成绩抽屉
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
@@ -232,6 +237,12 @@ export default {
|
|||||||
evalDataSource: "",
|
evalDataSource: "",
|
||||||
Assessvisible: false,
|
Assessvisible: false,
|
||||||
});
|
});
|
||||||
|
// 关闭导入成绩
|
||||||
|
const closeImport = () => {
|
||||||
|
state.step = 1;
|
||||||
|
state.tableDataTotalLoading = true;
|
||||||
|
getData();
|
||||||
|
};
|
||||||
const tableDataFunc = () => {
|
const tableDataFunc = () => {
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
@@ -431,6 +442,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
|
if (state.step == 1) {
|
||||||
ctx.emit("update:Tvisible", false);
|
ctx.emit("update:Tvisible", false);
|
||||||
state.currentPage = 1;
|
state.currentPage = 1;
|
||||||
state.name = "";
|
state.name = "";
|
||||||
@@ -438,6 +450,11 @@ export default {
|
|||||||
state.tableData = [];
|
state.tableData = [];
|
||||||
state.stdPosition = null;
|
state.stdPosition = null;
|
||||||
state.qualsLevelCode = null;
|
state.qualsLevelCode = null;
|
||||||
|
} else {
|
||||||
|
state.step = 1;
|
||||||
|
state.tableDataTotalLoading = true;
|
||||||
|
getData();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
const afterVisibleChange = (bol) => {
|
const afterVisibleChange = (bol) => {
|
||||||
if (bol == true) {
|
if (bol == true) {
|
||||||
@@ -478,7 +495,7 @@ export default {
|
|||||||
};
|
};
|
||||||
// 导入成绩
|
// 导入成绩
|
||||||
const showEntryScore = () => {
|
const showEntryScore = () => {
|
||||||
state.Evisible = true;
|
state.step = 2;
|
||||||
};
|
};
|
||||||
// 获取数据
|
// 获取数据
|
||||||
function getData() {
|
function getData() {
|
||||||
@@ -582,6 +599,7 @@ export default {
|
|||||||
afterVisibleChange,
|
afterVisibleChange,
|
||||||
tableDataFunc,
|
tableDataFunc,
|
||||||
godie,
|
godie,
|
||||||
|
closeImport,
|
||||||
onMounted,
|
onMounted,
|
||||||
onUnmounted,
|
onUnmounted,
|
||||||
onChange,
|
onChange,
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ const props = defineProps({
|
|||||||
growId: String,
|
growId: String,
|
||||||
});
|
});
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
const formData = useResetRef({
|
const formData = ref({
|
||||||
info: {
|
info: {
|
||||||
linkName: "",
|
linkName: "",
|
||||||
linkAddress: "",
|
linkAddress: "",
|
||||||
@@ -121,13 +121,18 @@ const rulesRef = ref({
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
let validate = Form.useForm(formData.value.info, rulesRef).validate;
|
let validate = null;
|
||||||
|
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
visible.value = false;
|
visible.value = false;
|
||||||
dateTime.value = [];
|
dateTime.value = [];
|
||||||
formData.reset();
|
formData.value = {
|
||||||
formData.value.info = {};
|
info: {
|
||||||
|
linkName: "",
|
||||||
|
linkAddress: "",
|
||||||
|
linkDescription: "",
|
||||||
|
},
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
async function confirm() {
|
async function confirm() {
|
||||||
@@ -160,7 +165,7 @@ async function confirm() {
|
|||||||
|
|
||||||
function openDrawer(row) {
|
function openDrawer(row) {
|
||||||
row && (formData.value = row);
|
row && (formData.value = row);
|
||||||
row && (validate = Form.useForm(formData.value.info, rulesRef).validate);
|
validate = Form.useForm(formData.value.info, rulesRef).validate;
|
||||||
visible.value = true;
|
visible.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,26 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-drawer
|
<div class="ExportScore">
|
||||||
:visible="eScorevisible"
|
|
||||||
class="drawerStyle ExportScore"
|
|
||||||
placement="right"
|
|
||||||
width="700px"
|
|
||||||
@after-visible-change="afterVisibleChange"
|
|
||||||
>
|
|
||||||
<div class="drawerMain">
|
|
||||||
<div class="header">
|
|
||||||
<div class="headerTitle">导入成绩</div>
|
|
||||||
<img
|
|
||||||
style="width: 29px; height: 29px; cursor: pointer"
|
|
||||||
src="../../assets/images/basicinfo/close.png"
|
|
||||||
@click="closeDrawer"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="main">
|
|
||||||
<div class="minatitl">
|
<div class="minatitl">
|
||||||
<div class="up1">请下载</div>
|
<div class="up1">请下载</div>
|
||||||
<div class="up2" @click="downTemplate" style="cursor: pointer">
|
<div class="up2" @click="downTemplate" style="cursor: pointer">模板</div>
|
||||||
模板
|
|
||||||
</div>
|
|
||||||
<div class="up1">,按要求填写数据并导入</div>
|
<div class="up1">,按要求填写数据并导入</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="upload">
|
<div class="upload">
|
||||||
@@ -94,18 +76,13 @@
|
|||||||
|
|
||||||
<div class="curloading">
|
<div class="curloading">
|
||||||
<!-- <div class="cur">55%</div> -->
|
<!-- <div class="cur">55%</div> -->
|
||||||
<div
|
<div style="color: #387df7; margin-left: 20px; cursor: pointer">
|
||||||
style="color: #387df7; margin-left: 20px; cursor: pointer"
|
|
||||||
>
|
|
||||||
下载失败数据
|
下载失败数据
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="cancel" style="margin-left: 20px">暂停</div>
|
<!-- <div class="cancel" style="margin-left: 20px">暂停</div>
|
||||||
<div class="cancel" style="margin-left: 15px">取消</div> -->
|
<div class="cancel" style="margin-left: 15px">取消</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="defeat" style="display: flex; align-items: center">
|
||||||
class="defeat"
|
|
||||||
style="display: flex; align-items: center"
|
|
||||||
>
|
|
||||||
<div style="color: #ff7474">
|
<div style="color: #ff7474">
|
||||||
{{ succNum }}条数据导入成功,{{ errNum }}条数据导入失败
|
{{ succNum }}条数据导入成功,{{ errNum }}条数据导入失败
|
||||||
</div>
|
</div>
|
||||||
@@ -182,12 +159,10 @@
|
|||||||
<button class="btn1" @click="closeDrawer">取消</button>
|
<button class="btn1" @click="closeDrawer">取消</button>
|
||||||
<button class="btn2" @click="closeDrawer">确定</button>
|
<button class="btn2" @click="closeDrawer">确定</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<!-- 加载动画 -->
|
<!-- 加载动画 -->
|
||||||
<div class="aeLoading" :style="{ display: addLoading ? 'flex' : 'none' }">
|
<div class="aeLoading" :style="{ display: addLoading ? 'flex' : 'none' }">
|
||||||
<a-spin :spinning="addLoading" tip="" />
|
<a-spin :spinning="addLoading" tip="" />
|
||||||
</div>
|
</div>
|
||||||
</a-drawer>
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { reactive, toRefs } from "vue";
|
import { reactive, toRefs } from "vue";
|
||||||
@@ -248,6 +223,7 @@ export default {
|
|||||||
state.fileList = [];
|
state.fileList = [];
|
||||||
state.uploadpercent = -1;
|
state.uploadpercent = -1;
|
||||||
state.uploadErr = false; //上传失败
|
state.uploadErr = false; //上传失败
|
||||||
|
ctx.emit("close");
|
||||||
};
|
};
|
||||||
|
|
||||||
const afterVisibleChange = (bool) => {
|
const afterVisibleChange = (bool) => {
|
||||||
@@ -420,33 +396,6 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.ExportScore {
|
.ExportScore {
|
||||||
.drawerMain {
|
|
||||||
min-width: 600px;
|
|
||||||
margin: 0px 32px 0px 32px;
|
|
||||||
overflow-x: auto;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
.header {
|
|
||||||
height: 73px;
|
|
||||||
border-bottom: 1px solid #e8e8e8;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
// background-color: red;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
flex-shrink: 0;
|
|
||||||
|
|
||||||
.headerTitle {
|
|
||||||
font-size: 18px;
|
|
||||||
font-weight: 600;
|
|
||||||
color: #333333;
|
|
||||||
line-height: 25px;
|
|
||||||
// margin-left: 24px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.main {
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
||||||
.minatitl {
|
.minatitl {
|
||||||
@@ -660,7 +609,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.btnn {
|
.btnn {
|
||||||
height: 72px;
|
height: 72px;
|
||||||
@@ -696,5 +644,4 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ const title = computed(() => {
|
|||||||
// 步骤数
|
// 步骤数
|
||||||
const step = ref(1);
|
const step = ref(1);
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
const formData = useResetRef({
|
const formData = ref({
|
||||||
info: {
|
info: {
|
||||||
voteName: "",
|
voteName: "",
|
||||||
voteStartTime: "",
|
voteStartTime: "",
|
||||||
@@ -182,7 +182,7 @@ const rulesRef = ref({
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
let validate = Form.useForm(formData.value.info, rulesRef).validate;
|
let validate = null;
|
||||||
// 关闭弹窗
|
// 关闭弹窗
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
if (step.value > 1) {
|
if (step.value > 1) {
|
||||||
@@ -190,9 +190,14 @@ const closeDrawer = () => {
|
|||||||
} else {
|
} else {
|
||||||
visible.value = false;
|
visible.value = false;
|
||||||
dateTime.value = [];
|
dateTime.value = [];
|
||||||
formData.reset();
|
formData.value = {
|
||||||
formData.value.info = {
|
info: {
|
||||||
|
voteName: "",
|
||||||
|
voteStartTime: "",
|
||||||
|
voteEndTime: "",
|
||||||
voteStemDtoList: [],
|
voteStemDtoList: [],
|
||||||
|
voteExplain: "",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -245,7 +250,7 @@ function openDrawer(row) {
|
|||||||
dayjs(row.info.voteStartTime, "YYYY-MM-DD HH:mm"),
|
dayjs(row.info.voteStartTime, "YYYY-MM-DD HH:mm"),
|
||||||
dayjs(row.info.voteEndTime, "YYYY-MM-DD HH:mm"),
|
dayjs(row.info.voteEndTime, "YYYY-MM-DD HH:mm"),
|
||||||
]);
|
]);
|
||||||
row && (validate = Form.useForm(formData.value.info, rulesRef).validate);
|
validate = Form.useForm(formData.value.info, rulesRef).validate;
|
||||||
visible.value = true;
|
visible.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,8 +35,7 @@
|
|||||||
:multiple="false"
|
:multiple="false"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
:data="{
|
:data="{
|
||||||
growthId: Number(courseId),
|
growthId: String(growId),
|
||||||
type: courseType,
|
|
||||||
}"
|
}"
|
||||||
:showUploadList="false"
|
:showUploadList="false"
|
||||||
>
|
>
|
||||||
@@ -219,7 +218,7 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
courseId: {
|
growId: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
@@ -235,10 +234,10 @@ export default {
|
|||||||
const store = useStore();
|
const store = useStore();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
redisKey: "",
|
redisKey: "",
|
||||||
importStudent: `${process.env.VUE_APP_BOE_API_URL}${
|
// importStudent: `${process.env.VUE_APP_BOE_API_URL}${
|
||||||
process.env.VUE_APP_BASE_API_GROWTH || ""
|
// process.env.VUE_APP_BASE_API_GROWTH || ""
|
||||||
}/professional/allocation/importLearner`,
|
// }/professional/allocation/importLearner`,
|
||||||
|
importStudent: `http://192.168.31.211:32002/professional/allocation/importLearner`,
|
||||||
timers: "", // 定时器,用于清空定时器使用
|
timers: "", // 定时器,用于清空定时器使用
|
||||||
isAddStudent: false, // 用于判断用户是否关闭弹框需要重新获取学员列表
|
isAddStudent: false, // 用于判断用户是否关闭弹框需要重新获取学员列表
|
||||||
uploadpercent: -1,
|
uploadpercent: -1,
|
||||||
@@ -268,7 +267,7 @@ export default {
|
|||||||
if (state.redisKey && state.succNum != 0 && item) {
|
if (state.redisKey && state.succNum != 0 && item) {
|
||||||
saveStudent({
|
saveStudent({
|
||||||
redisKey: state.redisKey,
|
redisKey: state.redisKey,
|
||||||
growId: props.courseId,
|
growId: props.growId,
|
||||||
isImportNotMatchStudent: state.groupValue ? 1 : 0,
|
isImportNotMatchStudent: state.groupValue ? 1 : 0,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@@ -343,7 +342,7 @@ export default {
|
|||||||
console.log("上传成功返回的UUID----->", info);
|
console.log("上传成功返回的UUID----->", info);
|
||||||
console.log("我是导入学员接口传递的参数", {
|
console.log("我是导入学员接口传递的参数", {
|
||||||
file: info.file.originFileObj,
|
file: info.file.originFileObj,
|
||||||
targetId: props.courseId,
|
targetId: props.growId,
|
||||||
type: 14,
|
type: 14,
|
||||||
});
|
});
|
||||||
state.fileName = info.file.name;
|
state.fileName = info.file.name;
|
||||||
|
|||||||
@@ -286,7 +286,7 @@
|
|||||||
<ImportStu
|
<ImportStu
|
||||||
v-model:AddImpStuvisible="AddImpStuvisible"
|
v-model:AddImpStuvisible="AddImpStuvisible"
|
||||||
@AddImpStuvisibleClose="AddImpStuvisibleClose"
|
@AddImpStuvisibleClose="AddImpStuvisibleClose"
|
||||||
:courseId="id"
|
:growId="growId"
|
||||||
:courseType="type"
|
:courseType="type"
|
||||||
/>
|
/>
|
||||||
<GrowthDrawer ref="GrowthDrawerRef" title="新增学员" width="1200px">
|
<GrowthDrawer ref="GrowthDrawerRef" title="新增学员" width="1200px">
|
||||||
@@ -732,11 +732,8 @@ const AddImpStuvisible = ref(false); //导入学员抽屉
|
|||||||
const showImpStu = () => {
|
const showImpStu = () => {
|
||||||
AddImpStuvisible.value = true;
|
AddImpStuvisible.value = true;
|
||||||
};
|
};
|
||||||
const AddImpStuvisibleClose = (isget) => {
|
const AddImpStuvisibleClose = () => {
|
||||||
console.log("关闭了导入学员弹框", isget);
|
|
||||||
if (isget) {
|
|
||||||
getStuList();
|
getStuList();
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function startLoading() {
|
function startLoading() {
|
||||||
|
|||||||
@@ -47,12 +47,10 @@
|
|||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<router-link to="/growthpath"
|
<div style="display: flex" @click="goBack">
|
||||||
><div style="display: flex">
|
|
||||||
<img class="img2" src="../../assets/images/leveladd/back.png" />
|
<img class="img2" src="../../assets/images/leveladd/back.png" />
|
||||||
<div class="return">返回</div>
|
<div class="return">返回</div>
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="split"></div>
|
<div class="split"></div>
|
||||||
@@ -623,7 +621,6 @@
|
|||||||
:title="showTimeText"
|
:title="showTimeText"
|
||||||
:datasource="commonData"
|
:datasource="commonData"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -838,6 +835,11 @@ export default {
|
|||||||
query: { growId: state.routerId, pre: state.preId },
|
query: { growId: state.routerId, pre: state.preId },
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 返回
|
||||||
|
const goBack = () => {
|
||||||
|
router.go(-1);
|
||||||
|
};
|
||||||
// 列表拖动结束
|
// 列表拖动结束
|
||||||
const draggableOnEnd = () => {
|
const draggableOnEnd = () => {
|
||||||
// 开启加载弹窗,getListTask请求完成后会关闭弹框
|
// 开启加载弹窗,getListTask请求完成后会关闭弹框
|
||||||
@@ -1440,6 +1442,7 @@ export default {
|
|||||||
qrcodeAssement,
|
qrcodeAssement,
|
||||||
handleMenuClickpg,
|
handleMenuClickpg,
|
||||||
draggableOnEnd,
|
draggableOnEnd,
|
||||||
|
goBack,
|
||||||
handleMenuClick,
|
handleMenuClick,
|
||||||
qrcodeVisible,
|
qrcodeVisible,
|
||||||
handlerSuperiors,
|
handlerSuperiors,
|
||||||
|
|||||||
Reference in New Issue
Block a user