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;
|
let timer;
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
getManageList();
|
// getManageList();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
timer = setInterval(() => {
|
timer = setInterval(() => {
|
||||||
state.open = false;
|
state.open = false;
|
||||||
|
|||||||
@@ -291,7 +291,7 @@ export default {
|
|||||||
let timer;
|
let timer;
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
getManageList();
|
// getManageList();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
timer = setInterval(() => {
|
timer = setInterval(() => {
|
||||||
state.open = false;
|
state.open = false;
|
||||||
|
|||||||
@@ -291,7 +291,7 @@ export default {
|
|||||||
let timer;
|
let timer;
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
getManageList();
|
// getManageList();
|
||||||
}, 500);
|
}, 500);
|
||||||
timer = setInterval(() => {
|
timer = setInterval(() => {
|
||||||
state.open = false;
|
state.open = false;
|
||||||
|
|||||||
@@ -312,7 +312,7 @@ export default {
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
getManageList();
|
// getManageList();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -263,6 +263,7 @@
|
|||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
<!-- 无数据显示快速创建 -->
|
<!-- 无数据显示快速创建 -->
|
||||||
|
<div v-show="!taskSyllabus.length">
|
||||||
<router-link :to="{ path: '/leveladddetail' }">
|
<router-link :to="{ path: '/leveladddetail' }">
|
||||||
<div
|
<div
|
||||||
class="taskbox"
|
class="taskbox"
|
||||||
@@ -283,6 +284,7 @@
|
|||||||
<div class="centermain">快速创建关卡任务</div>
|
<div class="centermain">快速创建关卡任务</div>
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
</div>
|
||||||
<!-- 无数据显示快速创建 -->
|
<!-- 无数据显示快速创建 -->
|
||||||
|
|
||||||
<!-- 有数据-->
|
<!-- 有数据-->
|
||||||
@@ -396,7 +398,7 @@
|
|||||||
class="operation"
|
class="operation"
|
||||||
style="cursor: pointer"
|
style="cursor: pointer"
|
||||||
:style="{
|
:style="{
|
||||||
display: item.course === '面授' ? 'flex' : 'none',
|
display: item.type === 2 ? 'flex' : 'none',
|
||||||
}"
|
}"
|
||||||
@click="showFS"
|
@click="showFS"
|
||||||
>
|
>
|
||||||
@@ -405,10 +407,10 @@
|
|||||||
<div
|
<div
|
||||||
class="operation"
|
class="operation"
|
||||||
style="cursor: pointer"
|
style="cursor: pointer"
|
||||||
@click="showAA(item.course, item.name)"
|
@click="showAA(item.type, item.name)"
|
||||||
:style="{
|
:style="{
|
||||||
display:
|
display:
|
||||||
item.course === '直播' || item.course === '活动'
|
item.type === 6 || item.type === 9
|
||||||
? 'flex'
|
? 'flex'
|
||||||
: 'none',
|
: 'none',
|
||||||
}"
|
}"
|
||||||
@@ -420,19 +422,19 @@
|
|||||||
style="cursor: pointer"
|
style="cursor: pointer"
|
||||||
:style="{
|
:style="{
|
||||||
display:
|
display:
|
||||||
item.course === '直播' ||
|
item.type === 6 ||
|
||||||
item.course === '活动' ||
|
item.type === 9 ||
|
||||||
item.course === '面授'
|
item.type === 2
|
||||||
? 'flex'
|
? 'flex'
|
||||||
: 'none',
|
: 'none',
|
||||||
}"
|
}"
|
||||||
@click="
|
@click="
|
||||||
item.course === '面授'
|
item.type ===2
|
||||||
? showCopyModal(item.course)
|
? showCopyModal(item.type)
|
||||||
: item.course === '直播'
|
: item.type === 6
|
||||||
? showzhibModal(item.course)
|
? showzhibModal(item.type)
|
||||||
: item.course === '活动'
|
: item.type === 9
|
||||||
? showhuodModal(item.course)
|
? showhuodModal(item.type)
|
||||||
: null
|
: null
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
@@ -442,21 +444,21 @@
|
|||||||
class="operation"
|
class="operation"
|
||||||
style="cursor: pointer; margin-right: 35px"
|
style="cursor: pointer; margin-right: 35px"
|
||||||
@click="
|
@click="
|
||||||
item.course === '在线' ||
|
item.type === 1 ||
|
||||||
item.course === '案例' ||
|
item.type === 3 ||
|
||||||
item.course === '外链' ||
|
item.type === 7 ||
|
||||||
item.course === '讨论' ||
|
item.type === 8 ||
|
||||||
item.course === '直播' ||
|
item.type === 6 ||
|
||||||
item.course === '评估' ||
|
item.type === 11 ||
|
||||||
item.course === '投票' ||
|
item.type === 12 ||
|
||||||
item.course === '活动'
|
item.type === 9
|
||||||
? showTime(item.course, item.name)
|
? showTime(item.type, item.name)
|
||||||
: item.course === '考试' || item.course === '测评'
|
: item.type === 5 || item.type === 10
|
||||||
? showTest(item.course, item.name)
|
? showTest(item.type, item.name)
|
||||||
: item.course === '面授'
|
: item.type === 2
|
||||||
? showFace(item.course)
|
? showFace(item.type)
|
||||||
: item.course === '作业'
|
: item.type === 4
|
||||||
? showWork(item.course)
|
? showWork(item.type)
|
||||||
: null
|
: null
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
@@ -638,81 +640,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
|
|
||||||
@@ -1010,79 +938,6 @@ export default {
|
|||||||
],
|
],
|
||||||
huodModal: false,
|
huodModal: false,
|
||||||
zhibModal: 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: [
|
taskSyllabus: [
|
||||||
{
|
{
|
||||||
@@ -1109,7 +964,6 @@ export default {
|
|||||||
nubvalue3: ref("4"),
|
nubvalue3: ref("4"),
|
||||||
nubvalue1: ref("4"),
|
nubvalue1: ref("4"),
|
||||||
fileList:ref([]),
|
fileList:ref([]),
|
||||||
checked2: false,
|
|
||||||
docChecked:true,
|
docChecked:true,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
tableDataTotal: 100,
|
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 tableDataFunc = () => {
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
@@ -1601,10 +1439,6 @@ export default {
|
|||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
...toRefs(levelList),
|
...toRefs(levelList),
|
||||||
selectProjectName,
|
|
||||||
selectProjectName2,
|
|
||||||
selectProjectName3,
|
|
||||||
selectProjectName4,
|
|
||||||
showDeleteALLModal,
|
showDeleteALLModal,
|
||||||
closeDeleteALLModal,
|
closeDeleteALLModal,
|
||||||
tableDataFunc,
|
tableDataFunc,
|
||||||
|
|||||||
Reference in New Issue
Block a user