专家首页

main
significative 3 months ago
parent f97967a920
commit ab53aaf868
  1. 2
      jeecgboot-vue3-master/src/api/demo/depart.ts
  2. 10
      jeecgboot-vue3-master/src/views/depart/workbench/components/chExpert/index.vue

@ -10,6 +10,6 @@ enum Api {
// Get personal center-basic settings // Get personal center-basic settings
export const pageSchoolApi = () => defHttp.get<GetAccountInfoModel>({ url: Api.PAGE_SCHOOL }); export const pageSchoolApi = () => defHttp.get<GetAccountInfoModel>({ url: Api.PAGE_SCHOOL });
export const pageDepartmentApi = (orgCode: string) => defHttp.get<GetAccountInfoModel>({ url: Api.PAGE_DEPARTMENT, params: { orgCode } }); export const pageDepartmentApi = (orgCode: string) => defHttp.get<GetAccountInfoModel>({ url: Api.PAGE_DEPARTMENT, params: { orgCode } });
export const getZjsybsjs = () => defHttp.get({ url: Api.PAGE_ZJSYBSJS }); export const getZjsybsjs = (params = { recreateFlag: false }) => defHttp.get({ url: Api.PAGE_ZJSYBSJS, params });
export const getXsfxbg = (params = { recreateFlag: false }) => defHttp.get({ url: Api.PAGE_XSFXBG, params }); export const getXsfxbg = (params = { recreateFlag: false }) => defHttp.get({ url: Api.PAGE_XSFXBG, params });

@ -1,5 +1,5 @@
<template> <template>
<div class="expert"> <div class="expert" v-show="loading">
<a-row :gutter="[16, 16]" type="flex" justify="space-between"> <a-row :gutter="[16, 16]" type="flex" justify="space-between">
<a-col :md="24" :xl="12"> <a-col :md="24" :xl="12">
<a-row :gutter="[16, 16]" type="flex" justify="space-between"> <a-row :gutter="[16, 16]" type="flex" justify="space-between">
@ -9,6 +9,7 @@
<div class="text"> <div class="text">
历史参与评分的年度比赛项目数 历史参与评分的年度比赛项目数
</div> </div>
<div style="color: rgba(0, 0, 0, 0.45);cursor: pointer;" @click="reset">重新生成报告</div>
<Icon icon="mainHome-time|svg" :size="20" /> <Icon icon="mainHome-time|svg" :size="20" />
</div> </div>
<div class="center"> <div class="center">
@ -144,6 +145,13 @@ const data = ref<ob>({
getZjsybsjs().then(res => { getZjsybsjs().then(res => {
Object.assign(data.value, res) Object.assign(data.value, res)
}) })
const loading = ref(true)
function reset() {
loading.value = false
getZjsybsjs({ recreateFlag: true }).then(res => {
Object.assign(data.value, res)
}).finally(() => { loading.value = true })
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>

Loading…
Cancel
Save