mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 05:46:45 +08:00
feat:修改学习路径操作
This commit is contained in:
@@ -258,7 +258,9 @@
|
||||
</router-link>
|
||||
</div>
|
||||
<!-- 无数据显示快速创建 -->
|
||||
<router-link to="/leveladddetail">
|
||||
<router-link
|
||||
:to="{ path: '/leveladddetail', query: { routerId: routerId } }"
|
||||
>
|
||||
<div
|
||||
class="taskbox"
|
||||
style="background: linear-gradient(180deg, #fef3dd, #fffaf0)"
|
||||
@@ -493,13 +495,10 @@
|
||||
<button class="addd" @click="showImpStu">导入学员</button>
|
||||
<div class="select">
|
||||
<a-select
|
||||
v-model:value="projectName"
|
||||
style="width: 130px"
|
||||
placeholder="更多操作"
|
||||
value="更多操作"
|
||||
:options="projectNameListt"
|
||||
@change="selectProjectName"
|
||||
allowClear
|
||||
showSearch
|
||||
></a-select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -899,7 +898,8 @@ import TimeManage from "../../components/drawers/TimeManage";
|
||||
import TestManage from "../../components/drawers/TestManage";
|
||||
import FaceManage from "../../components/drawers/FaceManage";
|
||||
import WorkManage from "../../components/drawers/WorkManage";
|
||||
import { useRoute } from "vue-router";
|
||||
// import { useRoute } from "vue-router";
|
||||
// import { useStore } from "vuex";
|
||||
import * as api from "../../api/index1";
|
||||
export default {
|
||||
name: "LevelAdd",
|
||||
@@ -916,9 +916,10 @@ export default {
|
||||
},
|
||||
methods: {},
|
||||
setup() {
|
||||
const routers = useRoute();
|
||||
// const routers = useRoute();
|
||||
// const store = useStore();
|
||||
const state = reactive({
|
||||
routerId: routers.query.routerId, //学习路径页面传的学习路径id
|
||||
routerId: localStorage.getItem("routerId"), //学习路径页面传的学习路径id
|
||||
gatename: null, //关卡名称
|
||||
gatenamee: null, //学员管理关卡名称
|
||||
deleteAll: false, //批量删除学员弹窗
|
||||
@@ -1237,6 +1238,7 @@ export default {
|
||||
},
|
||||
],
|
||||
});
|
||||
console.log("store", state.routerId);
|
||||
const selectProjectName = (value, index) => {
|
||||
console.log("value", value, index);
|
||||
if (value === "批量删除") {
|
||||
@@ -1472,6 +1474,7 @@ export default {
|
||||
});
|
||||
};
|
||||
|
||||
//学员管理------------------------------------------------
|
||||
return {
|
||||
...toRefs(state),
|
||||
selectProjectName,
|
||||
@@ -2839,6 +2842,10 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
.ant-select-selection-item {
|
||||
padding-left: 15px;
|
||||
color: #4ea6ff;
|
||||
}
|
||||
}
|
||||
}
|
||||
.talk {
|
||||
|
||||
Reference in New Issue
Block a user