mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 05:46:45 +08:00
fix: 关卡列表bug,和右侧管理内容添加
This commit is contained in:
@@ -362,7 +362,7 @@ export default {
|
||||
let timer;
|
||||
onMounted(() => {
|
||||
setTimeout(() => {
|
||||
getManageList();
|
||||
// getManageList();
|
||||
}, 1000);
|
||||
timer = setInterval(() => {
|
||||
state.open = false;
|
||||
|
||||
@@ -291,7 +291,7 @@ export default {
|
||||
let timer;
|
||||
onMounted(() => {
|
||||
setTimeout(() => {
|
||||
getManageList();
|
||||
// getManageList();
|
||||
}, 1000);
|
||||
timer = setInterval(() => {
|
||||
state.open = false;
|
||||
|
||||
@@ -291,7 +291,7 @@ export default {
|
||||
let timer;
|
||||
onMounted(() => {
|
||||
setTimeout(() => {
|
||||
getManageList();
|
||||
// getManageList();
|
||||
}, 500);
|
||||
timer = setInterval(() => {
|
||||
state.open = false;
|
||||
|
||||
@@ -312,7 +312,7 @@ export default {
|
||||
|
||||
onMounted(() => {
|
||||
setTimeout(() => {
|
||||
getManageList();
|
||||
// getManageList();
|
||||
}, 1000);
|
||||
});
|
||||
return {
|
||||
|
||||
@@ -263,6 +263,7 @@
|
||||
</router-link>
|
||||
</div>
|
||||
<!-- 无数据显示快速创建 -->
|
||||
<div v-show="!taskSyllabus.length">
|
||||
<router-link :to="{ path: '/leveladddetail' }">
|
||||
<div
|
||||
class="taskbox"
|
||||
@@ -283,6 +284,7 @@
|
||||
<div class="centermain">快速创建关卡任务</div>
|
||||
</div>
|
||||
</router-link>
|
||||
</div>
|
||||
<!-- 无数据显示快速创建 -->
|
||||
|
||||
<!-- 有数据-->
|
||||
@@ -396,7 +398,7 @@
|
||||
class="operation"
|
||||
style="cursor: pointer"
|
||||
:style="{
|
||||
display: item.course === '面授' ? 'flex' : 'none',
|
||||
display: item.type === 2 ? 'flex' : 'none',
|
||||
}"
|
||||
@click="showFS"
|
||||
>
|
||||
@@ -405,10 +407,10 @@
|
||||
<div
|
||||
class="operation"
|
||||
style="cursor: pointer"
|
||||
@click="showAA(item.course, item.name)"
|
||||
@click="showAA(item.type, item.name)"
|
||||
:style="{
|
||||
display:
|
||||
item.course === '直播' || item.course === '活动'
|
||||
item.type === 6 || item.type === 9
|
||||
? 'flex'
|
||||
: 'none',
|
||||
}"
|
||||
@@ -420,19 +422,19 @@
|
||||
style="cursor: pointer"
|
||||
:style="{
|
||||
display:
|
||||
item.course === '直播' ||
|
||||
item.course === '活动' ||
|
||||
item.course === '面授'
|
||||
item.type === 6 ||
|
||||
item.type === 9 ||
|
||||
item.type === 2
|
||||
? 'flex'
|
||||
: 'none',
|
||||
}"
|
||||
@click="
|
||||
item.course === '面授'
|
||||
? showCopyModal(item.course)
|
||||
: item.course === '直播'
|
||||
? showzhibModal(item.course)
|
||||
: item.course === '活动'
|
||||
? showhuodModal(item.course)
|
||||
item.type ===2
|
||||
? showCopyModal(item.type)
|
||||
: item.type === 6
|
||||
? showzhibModal(item.type)
|
||||
: item.type === 9
|
||||
? showhuodModal(item.type)
|
||||
: null
|
||||
"
|
||||
>
|
||||
@@ -442,21 +444,21 @@
|
||||
class="operation"
|
||||
style="cursor: pointer; margin-right: 35px"
|
||||
@click="
|
||||
item.course === '在线' ||
|
||||
item.course === '案例' ||
|
||||
item.course === '外链' ||
|
||||
item.course === '讨论' ||
|
||||
item.course === '直播' ||
|
||||
item.course === '评估' ||
|
||||
item.course === '投票' ||
|
||||
item.course === '活动'
|
||||
? showTime(item.course, item.name)
|
||||
: item.course === '考试' || item.course === '测评'
|
||||
? showTest(item.course, item.name)
|
||||
: item.course === '面授'
|
||||
? showFace(item.course)
|
||||
: item.course === '作业'
|
||||
? showWork(item.course)
|
||||
item.type === 1 ||
|
||||
item.type === 3 ||
|
||||
item.type === 7 ||
|
||||
item.type === 8 ||
|
||||
item.type === 6 ||
|
||||
item.type === 11 ||
|
||||
item.type === 12 ||
|
||||
item.type === 9
|
||||
? showTime(item.type, item.name)
|
||||
: item.type === 5 || item.type === 10
|
||||
? showTest(item.type, item.name)
|
||||
: item.type === 2
|
||||
? showFace(item.type)
|
||||
: item.type === 4
|
||||
? showWork(item.type)
|
||||
: null
|
||||
"
|
||||
>
|
||||
@@ -638,81 +640,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Gcon">
|
||||
<div class="pad"></div>
|
||||
<div class="Gin" style="margin-top: 0px">
|
||||
<div class="headone">
|
||||
<div class="box"></div>
|
||||
<div class="onetitle">关卡晋级规则</div>
|
||||
</div>
|
||||
<div class="twomain clearfix">
|
||||
<a-switch
|
||||
size="small"
|
||||
v-model:checked="checked2"
|
||||
style="margin-top: -5px"
|
||||
/>
|
||||
<span class="info">启用关卡自动规则加入</span>
|
||||
<div class="infor">
|
||||
若开启“新建/编辑关卡-添加学员”支持设定自动加入规则,将于每日8点同步数据
|
||||
</div>
|
||||
<div :class="[checked2 ? 'chooseshow' : 'choo']">
|
||||
<div class="fane">选择范围</div>
|
||||
<div class="select">
|
||||
<a-select
|
||||
v-model:value="projectName"
|
||||
style="
|
||||
width: 250px;
|
||||
border-radius: 8px;
|
||||
margin-top: 15px;
|
||||
"
|
||||
placeholder="请选择部门"
|
||||
:options="projectNameList"
|
||||
@change="selectProjectName3"
|
||||
allowClear
|
||||
showSearch
|
||||
></a-select>
|
||||
</div>
|
||||
<div class="select">
|
||||
<a-select
|
||||
v-model:value="projectName2"
|
||||
style="
|
||||
width: 250px;
|
||||
border-radius: 8px;
|
||||
margin-top: 15px;
|
||||
"
|
||||
placeholder="请选择岗位"
|
||||
:options="projectNameList2"
|
||||
@change="selectProjectName2"
|
||||
allowClear
|
||||
showSearch
|
||||
></a-select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btm">
|
||||
<div class="bmo">关卡学习方案展示设置</div>
|
||||
<div class="bmt">仅支持移动端</div>
|
||||
<div class="chosecon">
|
||||
<div class="chose">
|
||||
<input
|
||||
type="checkbox"
|
||||
name="cb1"
|
||||
value="lieb"
|
||||
class="inl"
|
||||
/><span class="sh">列表展示</span>
|
||||
</div>
|
||||
<div class="chose" style="margin-left: 20px">
|
||||
<input
|
||||
type="checkbox"
|
||||
name="cb1"
|
||||
value="lieb"
|
||||
class="inl"
|
||||
/><span class="sh">路径展示</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
|
||||
@@ -1010,79 +938,6 @@ export default {
|
||||
],
|
||||
huodModal: false,
|
||||
zhibModal: false,
|
||||
projectNameListt: [
|
||||
{
|
||||
id: 1,
|
||||
value: "导出信息",
|
||||
label: "导出信息",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
value: "批量调整关卡",
|
||||
label: "批量调整关卡",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
value: "批量删除",
|
||||
label: "批量删除",
|
||||
},
|
||||
],
|
||||
projectNameList: [
|
||||
{
|
||||
id: 1,
|
||||
value: "项目一",
|
||||
label: "项目一",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
value: "项目二",
|
||||
label: "项目二",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
value: "项目三",
|
||||
label: "项目三",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
value: "项目四",
|
||||
label: "项目四",
|
||||
},
|
||||
],
|
||||
projectNameList2: [
|
||||
{
|
||||
id: 1,
|
||||
value: "项目一",
|
||||
label: "项目一",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
value: "项目二",
|
||||
label: "项目二",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
value: "项目三",
|
||||
label: "项目三",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
value: "项目四",
|
||||
label: "项目四",
|
||||
},
|
||||
],
|
||||
projectNameList4: [
|
||||
{
|
||||
id: 1,
|
||||
value: "关卡1",
|
||||
label: "关卡1",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
value: "关卡2",
|
||||
label: "关卡2",
|
||||
},
|
||||
],
|
||||
//任务大纲列表
|
||||
taskSyllabus: [
|
||||
{
|
||||
@@ -1109,7 +964,6 @@ export default {
|
||||
nubvalue3: ref("4"),
|
||||
nubvalue1: ref("4"),
|
||||
fileList:ref([]),
|
||||
checked2: false,
|
||||
docChecked:true,
|
||||
currentPage: 1,
|
||||
tableDataTotal: 100,
|
||||
@@ -1263,22 +1117,6 @@ export default {
|
||||
]
|
||||
})
|
||||
|
||||
// console.log("store", state.routerId);
|
||||
const selectProjectName = (value, index) => {
|
||||
console.log("value", value, index);
|
||||
if (value === "批量删除") {
|
||||
showDeleteALLModal();
|
||||
}
|
||||
};
|
||||
const selectProjectName2 = (value, index) => {
|
||||
console.log("value", value, index);
|
||||
};
|
||||
const selectProjectName3 = (value, index) => {
|
||||
console.log("value", value, index);
|
||||
};
|
||||
const selectProjectName4 = (value, index) => {
|
||||
console.log("value", value, index);
|
||||
};
|
||||
const tableDataFunc = () => {
|
||||
const columns = [
|
||||
{
|
||||
@@ -1601,10 +1439,6 @@ export default {
|
||||
return {
|
||||
...toRefs(state),
|
||||
...toRefs(levelList),
|
||||
selectProjectName,
|
||||
selectProjectName2,
|
||||
selectProjectName3,
|
||||
selectProjectName4,
|
||||
showDeleteALLModal,
|
||||
closeDeleteALLModal,
|
||||
tableDataFunc,
|
||||
|
||||
Reference in New Issue
Block a user