mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
style:增加项目/学习路径图/模板库 新建课程、新建评估、新建项目(路径图)按钮 (跳转列表页目前)
This commit is contained in:
@@ -65,7 +65,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="main_notice" v-if="edit">
|
|
||||||
|
<div class="main_item" style="margin-top: 16px;">
|
||||||
|
<button class="xkbtn" @click="goProjectmanage">
|
||||||
|
新建项目
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="main_notice" v-if="edit" style="display:none;">
|
||||||
<div class="mntc_left">
|
<div class="mntc_left">
|
||||||
<div class="notice_icon"></div>
|
<div class="notice_icon"></div>
|
||||||
<div v-if="selectedRows.length == 0">
|
<div v-if="selectedRows.length == 0">
|
||||||
@@ -227,6 +234,7 @@ import { RouterEditTask } from "@/api/indexTask";
|
|||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
// import * as apiProj from "../../api/index.js";
|
// import * as apiProj from "../../api/index.js";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
|
import { useRouter } from "vue-router";
|
||||||
import * as indexAudit from "../../api/indexAudit";
|
import * as indexAudit from "../../api/indexAudit";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -283,6 +291,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
|
const router = useRouter();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
inputV1: "",
|
inputV1: "",
|
||||||
inputV2: "",
|
inputV2: "",
|
||||||
@@ -601,6 +610,12 @@ export default {
|
|||||||
closeDrawer();
|
closeDrawer();
|
||||||
ctx.emit("changeData", false);
|
ctx.emit("changeData", false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 新建项目
|
||||||
|
const goProjectmanage = () => {
|
||||||
|
router.push({ path: "/projectmanage" });
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
afterVisibleChange,
|
afterVisibleChange,
|
||||||
@@ -619,6 +634,7 @@ export default {
|
|||||||
sureSameModal,
|
sureSameModal,
|
||||||
changePagination,
|
changePagination,
|
||||||
getCurrentPage,
|
getCurrentPage,
|
||||||
|
goProjectmanage
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,7 +18,14 @@
|
|||||||
<div class="btnText">重置</div>
|
<div class="btnText">重置</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="main_notice">
|
|
||||||
|
<div class="main_item">
|
||||||
|
<button class="xkbtn" @click="goResearchmanage">
|
||||||
|
新建评估
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="main_notice" style="display:none;">
|
||||||
<div class="mntc_left">
|
<div class="mntc_left">
|
||||||
<div class="notice_icon"></div>
|
<div class="notice_icon"></div>
|
||||||
<div v-if="assessment == null">
|
<div v-if="assessment == null">
|
||||||
@@ -114,6 +121,8 @@
|
|||||||
import { reactive, toRefs, onMounted, watch } from "vue";
|
import { reactive, toRefs, onMounted, watch } from "vue";
|
||||||
import * as api from "../../api/indexInvist.js";
|
import * as api from "../../api/indexInvist.js";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
|
import { useRouter } from "vue-router";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AssessmentAll",
|
name: "AssessmentAll",
|
||||||
// components: {
|
// components: {
|
||||||
@@ -133,6 +142,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
|
const router = useRouter();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
assessmentVisible: false,
|
assessmentVisible: false,
|
||||||
assessment: null,
|
assessment: null,
|
||||||
@@ -355,6 +365,11 @@ export default {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// 新建评估
|
||||||
|
const goResearchmanage = () => {
|
||||||
|
router.push({ path: "/researchmanage" });
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
onSelectChange,
|
onSelectChange,
|
||||||
@@ -366,11 +381,22 @@ export default {
|
|||||||
queryInfo,
|
queryInfo,
|
||||||
searchList,
|
searchList,
|
||||||
afterVisibleChange,
|
afterVisibleChange,
|
||||||
|
goResearchmanage
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.xkbtn {
|
||||||
|
cursor: pointer;
|
||||||
|
width: 130px;
|
||||||
|
height: 40px;
|
||||||
|
background: #4ea6ff;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 0;
|
||||||
|
margin-right: 8px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
.ant-table-striped :deep(.table-striped) td {
|
.ant-table-striped :deep(.table-striped) td {
|
||||||
background-color: #fafafa !important;
|
background-color: #fafafa !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="main_items" style="margin-bottom:32px;">
|
||||||
|
<button class="xkbtn" @click="goCoursewaremanage">
|
||||||
|
新建课程
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
<!--
|
<!--
|
||||||
<div class="main_notice">
|
<div class="main_notice">
|
||||||
<div class="mntc_left">
|
<div class="mntc_left">
|
||||||
@@ -121,6 +126,8 @@ import { reactive, toRefs, computed } from "vue";
|
|||||||
//import {detail} from "../../api/indexCourse";
|
//import {detail} from "../../api/indexCourse";
|
||||||
import { list } from "../../api/indexTaskadd";
|
import { list } from "../../api/indexTaskadd";
|
||||||
import {useStore} from "vuex";
|
import {useStore} from "vuex";
|
||||||
|
import { useRouter } from "vue-router";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -196,6 +203,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
|
const router = useRouter();
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
classTableData: [
|
classTableData: [
|
||||||
@@ -574,6 +582,12 @@ export default {
|
|||||||
state.currentPage = page;
|
state.currentPage = page;
|
||||||
getClassList();
|
getClassList();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 新建课程
|
||||||
|
const goCoursewaremanage = () => {
|
||||||
|
router.push({ path: "/coursewaremanage" });
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...toRefs(state),
|
...toRefs(state),
|
||||||
// showDrawerSelFacet,
|
// showDrawerSelFacet,
|
||||||
@@ -589,13 +603,25 @@ export default {
|
|||||||
rowSelection,
|
rowSelection,
|
||||||
search,
|
search,
|
||||||
submitCourse,
|
submitCourse,
|
||||||
|
goCoursewaremanage
|
||||||
// change,
|
// change,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
||||||
|
.xkbtn {
|
||||||
|
cursor: pointer;
|
||||||
|
width: 130px;
|
||||||
|
height: 40px;
|
||||||
|
background: #4ea6ff;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 0;
|
||||||
|
margin-right: 8px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
.ant-table-striped :deep(.table-striped) td {
|
.ant-table-striped :deep(.table-striped) td {
|
||||||
background-color: #fafafa !important;
|
background-color: #fafafa !important;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user