style:增加项目/学习路径图/模板库 新建课程、新建评估、新建项目(路径图)按钮 (跳转列表页目前)

This commit is contained in:
wyx
2023-01-28 18:03:49 +08:00
parent 1badfb721e
commit b1a72a2b87
3 changed files with 71 additions and 3 deletions

View File

@@ -65,7 +65,14 @@
</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="notice_icon"></div>
<div v-if="selectedRows.length == 0">
@@ -227,6 +234,7 @@ import { RouterEditTask } from "@/api/indexTask";
import { message } from "ant-design-vue";
// import * as apiProj from "../../api/index.js";
import dayjs from "dayjs";
import { useRouter } from "vue-router";
import * as indexAudit from "../../api/indexAudit";
export default {
@@ -283,6 +291,7 @@ export default {
},
},
setup(props, ctx) {
const router = useRouter();
const state = reactive({
inputV1: "",
inputV2: "",
@@ -601,6 +610,12 @@ export default {
closeDrawer();
ctx.emit("changeData", false);
};
// 新建项目
const goProjectmanage = () => {
router.push({ path: "/projectmanage" });
}
return {
...toRefs(state),
afterVisibleChange,
@@ -619,6 +634,7 @@ export default {
sureSameModal,
changePagination,
getCurrentPage,
goProjectmanage
};
},
};