bug修复
This commit is contained in:
@ -6,7 +6,7 @@ export const getUnApprovalCount = (name) =>
|
|||||||
method: "get",
|
method: "get",
|
||||||
params: {
|
params: {
|
||||||
name,
|
name,
|
||||||
type: "1",
|
type: "0",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
`/approval/data-list/laboratory`,
|
`/approval/data-list/laboratory`,
|
||||||
].includes(basePath)
|
].includes(basePath)
|
||||||
"
|
"
|
||||||
|
:value="getCount(basePath)"
|
||||||
class="count-badge"
|
class="count-badge"
|
||||||
>
|
>
|
||||||
<!-- FIXME:无限递归bug-->
|
<!-- FIXME:无限递归bug-->
|
||||||
@ -41,6 +42,12 @@
|
|||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
<template #title
|
<template #title
|
||||||
|
><span
|
||||||
|
:title="hasTitle(onlyOneChild.meta.title)"
|
||||||
|
class="menu-title"
|
||||||
|
>{{ onlyOneChild.meta.title }}</span
|
||||||
|
></template>
|
||||||
|
<!-- <template #title
|
||||||
><span
|
><span
|
||||||
:title="hasTitle(onlyOneChild.meta.title)"
|
:title="hasTitle(onlyOneChild.meta.title)"
|
||||||
class="menu-title"
|
class="menu-title"
|
||||||
@ -56,7 +63,7 @@
|
|||||||
: onlyOneChild.meta.title
|
: onlyOneChild.meta.title
|
||||||
}}</span
|
}}</span
|
||||||
></template
|
></template
|
||||||
>
|
>-->
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</app-link>
|
</app-link>
|
||||||
</template>
|
</template>
|
||||||
@ -114,17 +121,17 @@ const onlyOneChild = ref({});
|
|||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
|
|
||||||
const getCount = (basePath) => {
|
const getCount = (basePath) => {
|
||||||
if (basePath == "/approval/list") {
|
if (basePath === "/approval/list") {
|
||||||
return userStore.unApprovedBusiness;
|
return userStore.unApprovedBusiness;
|
||||||
} else if (props.basePath == "/approval/dataList/approval") {
|
} else if (props.basePath === "/approval/dataList/approval") {
|
||||||
return userStore.unApprovedExpert;
|
return userStore.unApprovedExpert;
|
||||||
} else if (props.basePath == "/auditing/achievement") {
|
} else if (props.basePath === "/auditing/achievement") {
|
||||||
return userStore.unApprovedAchivement;
|
return userStore.unApprovedAchivement;
|
||||||
} else if (props.basePath == "/auditing/demand") {
|
} else if (props.basePath === "/auditing/demand") {
|
||||||
return userStore.unApprovedTechnology;
|
return userStore.unApprovedTechnology;
|
||||||
} else if (props.basePath == "/auditing/Enterpriseproducts") {
|
} else if (props.basePath === "/auditing/Enterpriseproducts") {
|
||||||
return userStore.unApprovedProduct;
|
return userStore.unApprovedProduct;
|
||||||
} else if (props.basePath == "/auditing/serviceDemand") {
|
} else if (props.basePath === "/auditing/serviceDemand") {
|
||||||
return userStore.unApprovedService;
|
return userStore.unApprovedService;
|
||||||
} else if (props.basePath === "/approval/data-list/laboratory") {
|
} else if (props.basePath === "/approval/data-list/laboratory") {
|
||||||
return userStore.unApprovedLab;
|
return userStore.unApprovedLab;
|
||||||
|
@ -114,7 +114,7 @@ const useUserStore = defineStore("user", {
|
|||||||
pageSize: 1,
|
pageSize: 1,
|
||||||
pageNum: 10,
|
pageNum: 10,
|
||||||
});
|
});
|
||||||
this.unApprovedExpert = resp.total;
|
this.unApprovedExpert = resp.rows.length;
|
||||||
},
|
},
|
||||||
async getUnApprovedAchivement() {
|
async getUnApprovedAchivement() {
|
||||||
const resp = await getUnApprovalCount("achievement");
|
const resp = await getUnApprovalCount("achievement");
|
||||||
@ -125,12 +125,18 @@ const useUserStore = defineStore("user", {
|
|||||||
this.unApprovedTechnology = resp.data ?? 0;
|
this.unApprovedTechnology = resp.data ?? 0;
|
||||||
},
|
},
|
||||||
async getUnApprovedService() {
|
async getUnApprovedService() {
|
||||||
|
// const resp = await getUnApprovalCount("service");
|
||||||
const resp = await getUnApprovalCount("service");
|
const resp = await getUnApprovalCount("service");
|
||||||
this.unApprovedService = resp.data ?? 0;
|
this.unApprovedService = resp.data ?? 0;
|
||||||
},
|
},
|
||||||
async getUnApprovedProduct() {
|
async getUnApprovedProduct() {
|
||||||
const resp = await getUnApprovalCount("product");
|
// const resp = await getUnApprovalCount("product");
|
||||||
this.unApprovedProduct = resp.data ?? 0;
|
const resp = await enterpriseProductApprovalList({
|
||||||
|
status: 0,
|
||||||
|
pageSize: 1,
|
||||||
|
pageNum: 10,
|
||||||
|
})
|
||||||
|
this.unApprovedProduct = resp.total ?? 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
async getServiceDemandTotal() {
|
async getServiceDemandTotal() {
|
||||||
|
@ -233,7 +233,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row v-if="formType == 1">
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="所属单位" prop="workplace">
|
<el-form-item label="所属单位" prop="workplace">
|
||||||
<el-input v-model="modelValue.workplace" />
|
<el-input v-model="modelValue.workplace" />
|
||||||
|
@ -228,8 +228,8 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<div :style="{ marginLeft: labelWidth + 'px' }">
|
<div :style="{ marginLeft: labelWidth + 'px' }">
|
||||||
<el-button @click="submitForm('2')">审核拒绝</el-button>
|
<!-- <el-button @click="submitForm('2')">审核拒绝</el-button>-->
|
||||||
<el-button type="primary" @click="submitForm('1')">通过审核</el-button>
|
<el-button type="primary" @click="submitForm('1')">审阅</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
@change="handleQuery"
|
@change="handleQuery"
|
||||||
>
|
>
|
||||||
<!-- <el-radio-button :label="1">已发布</el-radio-button> -->
|
<!-- <el-radio-button :label="1">已发布</el-radio-button> -->
|
||||||
<el-radio-button :label="0">待审核</el-radio-button>
|
<!-- <el-radio-button :label="0">待审核</el-radio-button>-->
|
||||||
<el-radio-button :label="1">已通过</el-radio-button>
|
<el-radio-button :label="1">已通过</el-radio-button>
|
||||||
<el-radio-button :label="2">已驳回</el-radio-button>
|
<el-radio-button :label="2">已驳回</el-radio-button>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@ -101,9 +101,8 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
round
|
round
|
||||||
size="small"
|
size="small"
|
||||||
:disabled="queryParams.status != 0"
|
|
||||||
@click="handleApproval(row.id)"
|
@click="handleApproval(row.id)"
|
||||||
>审批
|
>审阅
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
@ -150,7 +149,7 @@ const data = reactive({
|
|||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
status: 0,
|
status: 1,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const { queryParams } = toRefs(data);
|
const { queryParams } = toRefs(data);
|
||||||
|
@ -160,8 +160,9 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<div :style="{ marginLeft: labelWidth + 'px' }">
|
<div :style="{ marginLeft: labelWidth + 'px' }">
|
||||||
<el-button @click="submitForm('2')">审核拒绝</el-button>
|
<!-- <el-button @click="submitForm('2')">审核拒绝</el-button>-->
|
||||||
<el-button type="primary" @click="submitForm('1')">通过审核</el-button>
|
<!-- <el-button type="primary" @click="submitForm('1')">通过审核</el-button>-->
|
||||||
|
<el-button type="primary" @click="submitBack()">返回</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -224,6 +225,10 @@ const submitForm = async (status) => {
|
|||||||
router.back();
|
router.back();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const submitBack = () => {
|
||||||
|
router.back();
|
||||||
|
};
|
||||||
|
|
||||||
getAchievementInfo();
|
getAchievementInfo();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
@change="handleQuery"
|
@change="handleQuery"
|
||||||
>
|
>
|
||||||
<!-- <el-radio-button :label="1">已发布</el-radio-button> -->
|
<!-- <el-radio-button :label="1">已发布</el-radio-button> -->
|
||||||
<el-radio-button :label="0">待审核</el-radio-button>
|
<!-- <el-radio-button :label="0">待审核</el-radio-button>-->
|
||||||
<el-radio-button :label="1">已通过</el-radio-button>
|
<el-radio-button :label="1">已通过</el-radio-button>
|
||||||
<el-radio-button :label="2">已驳回</el-radio-button>
|
<el-radio-button :label="2">已驳回</el-radio-button>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@ -92,11 +92,11 @@
|
|||||||
}}
|
}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column
|
<el-table-column
|
||||||
label="所属研究机构"
|
label="所属单位"
|
||||||
align="center"
|
align="center"
|
||||||
prop=""
|
prop="workplace"
|
||||||
></el-table-column> -->
|
></el-table-column>
|
||||||
<!-- <el-table-column label="站点" align="center">
|
<!-- <el-table-column label="站点" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
{{
|
{{
|
||||||
@ -112,7 +112,7 @@
|
|||||||
<el-table-column align="center" label="操作">
|
<el-table-column align="center" label="操作">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button round size="small" type="primary" @click="approval(row.id)"
|
<el-button round size="small" type="primary" @click="approval(row.id)"
|
||||||
>审批
|
>审阅
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
round
|
round
|
||||||
@ -154,7 +154,7 @@ const data = reactive({
|
|||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
status: 0,
|
status: 1,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -49,12 +49,12 @@
|
|||||||
</el-row> -->
|
</el-row> -->
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="dataList">
|
<el-table v-loading="loading" :data="dataList">
|
||||||
<el-table-column
|
<!-- <el-table-column
|
||||||
label="活动id"
|
label="活动id"
|
||||||
prop="activityId"
|
prop="activityId"
|
||||||
align="center"
|
align="center"
|
||||||
width="80"
|
width="80"
|
||||||
/>
|
/>-->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="活动报名id"
|
label="活动报名id"
|
||||||
prop="id"
|
prop="id"
|
||||||
@ -62,6 +62,8 @@
|
|||||||
width="100"
|
width="100"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="姓名" prop="name" align="center" />
|
<el-table-column label="姓名" prop="name" align="center" />
|
||||||
|
<el-table-column label="职位" prop="post" align="center" />
|
||||||
|
<el-table-column label="职称" prop="jobTitle" align="center" />
|
||||||
<!-- <el-table-column label="分类" prop="name" align="center" /> -->
|
<!-- <el-table-column label="分类" prop="name" align="center" /> -->
|
||||||
<!-- <el-table-column label="所属领域" prop="name" align="center" /> -->
|
<!-- <el-table-column label="所属领域" prop="name" align="center" /> -->
|
||||||
<el-table-column label="手机号" prop="phone" align="center" />
|
<el-table-column label="手机号" prop="phone" align="center" />
|
||||||
|
Reference in New Issue
Block a user