|
|
|
@ -4,6 +4,7 @@ import WelcomeTable from "./components/table/index.vue";
|
|
|
|
|
import { onMounted, ref } from "vue";
|
|
|
|
|
import { ArrowRight } from "@element-plus/icons-vue";
|
|
|
|
|
import { queryMyKnowledgeList } from "@/api/home";
|
|
|
|
|
import { useRouter } from "vue-router";
|
|
|
|
|
import { processList, commonList } from "./data";
|
|
|
|
|
|
|
|
|
|
defineOptions({
|
|
|
|
@ -34,6 +35,18 @@ const assignedAmount = (type: any) => {
|
|
|
|
|
return knowledgeList.value.invalidProcessCount;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
const goTo = (type: any) => {
|
|
|
|
|
if (type === "报送知识") {
|
|
|
|
|
router.push("/knowledgeCentre/addSubmission");
|
|
|
|
|
} else if (type === "全量知识") {
|
|
|
|
|
router.push("/knowledgeCentre/submission");
|
|
|
|
|
} else if (type === "知识审批") {
|
|
|
|
|
router.push("/knowledgeCentre/approval");
|
|
|
|
|
} else if (type === "账号管理") {
|
|
|
|
|
router.push("/systemManagement/accountManagement");
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
getTableData();
|
|
|
|
|
});
|
|
|
|
@ -196,9 +209,10 @@ onMounted(() => {
|
|
|
|
|
</div>
|
|
|
|
|
<div class="common_content">
|
|
|
|
|
<div
|
|
|
|
|
class="common_content_box"
|
|
|
|
|
class="common_content_box cursor-pointer"
|
|
|
|
|
v-for="(v, i) in commonList"
|
|
|
|
|
:key="i"
|
|
|
|
|
@click="goTo(v.label)"
|
|
|
|
|
>
|
|
|
|
|
<img :src="v.bgImage" class="w-[50px] h-[50px]" />
|
|
|
|
|
<span>{{ v.label }}</span>
|
|
|
|
|