|
@@ -14,6 +14,8 @@ import { list, approval } from "@/api/staff/volunteer.js";
|
|
|
import { getTreeList } from "@/api/staff/price.js";
|
|
|
|
|
|
import DialogForm from '@/views/components/DialogForm/index.vue';
|
|
|
+const { proxy } = getCurrentInstance();
|
|
|
+const { volunteer_app_status } = proxy.useDict("volunteer_app_status");
|
|
|
|
|
|
const options = ref([]);
|
|
|
const userTableRef = ref();
|
|
@@ -24,7 +26,7 @@ const listPageData = reactive({
|
|
|
label: '注册时间',
|
|
|
prop: 'createTime',
|
|
|
type: 'date',
|
|
|
- isSearch: true,
|
|
|
+ isSearch: false,
|
|
|
keys: ['start', 'end']
|
|
|
},
|
|
|
{
|
|
@@ -46,10 +48,10 @@ const listPageData = reactive({
|
|
|
label: '项目类别',
|
|
|
prop: 'projectTypeName',
|
|
|
},
|
|
|
- {
|
|
|
- label: '科目',
|
|
|
- prop: 'projectTypeName',
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // label: '科目',
|
|
|
+ // prop: 'projectTypeName',
|
|
|
+ // },
|
|
|
|
|
|
{
|
|
|
label: '手机号',
|
|
@@ -68,7 +70,7 @@ const listPageData = reactive({
|
|
|
},
|
|
|
{
|
|
|
label: '职业证书',
|
|
|
- prop: 'certificationPicture',
|
|
|
+ prop: 'volunteerPicture',
|
|
|
type: 'img',
|
|
|
},
|
|
|
{
|
|
@@ -77,21 +79,23 @@ const listPageData = reactive({
|
|
|
},
|
|
|
{
|
|
|
label: '审核状态',
|
|
|
- prop: 'skillDescribe',
|
|
|
+ prop: 'appStatus',
|
|
|
+ type:'dict',
|
|
|
+ dict: volunteer_app_status
|
|
|
},
|
|
|
],
|
|
|
searchBtns: [
|
|
|
- {
|
|
|
- label: '批量删除',
|
|
|
- func: () => {
|
|
|
- const ids = userTableRef.value.ids;
|
|
|
- console.log('批量删除', ids)
|
|
|
- handleDelete(ids);
|
|
|
- },
|
|
|
- key: 'deletes',
|
|
|
- hasPermi: ['examine:delete'],
|
|
|
- type: 'danger'
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // label: '批量删除',
|
|
|
+ // func: () => {
|
|
|
+ // const ids = userTableRef.value.ids;
|
|
|
+ // console.log('批量删除', ids)
|
|
|
+ // handleDelete(ids);
|
|
|
+ // },
|
|
|
+ // key: 'deletes',
|
|
|
+ // hasPermi: ['manage:delete'],
|
|
|
+ // type: 'danger'
|
|
|
+ // },
|
|
|
],
|
|
|
tableApi: list,//接口地址
|
|
|
isSelect: true,//是否勾选
|
|
@@ -99,33 +103,36 @@ const listPageData = reactive({
|
|
|
{
|
|
|
label: '审核',
|
|
|
type: 'primary',
|
|
|
- hasPermi: ['examine:edit'],
|
|
|
- key: 'edit',
|
|
|
+ hasPermi: ['manage:examine'],
|
|
|
+ key: 'examine',
|
|
|
func: (row) => {
|
|
|
console.log(row)
|
|
|
openDialog(row, 'examine')
|
|
|
+ },
|
|
|
+ show: (row) => {
|
|
|
+ return row.appStatus == 1
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
label: '查看详情',
|
|
|
type: 'primary',
|
|
|
- hasPermi: ['examine:edit'],
|
|
|
- key: 'edit',
|
|
|
+ hasPermi: ['manage:details'],
|
|
|
+ key: 'details',
|
|
|
func: (row) => {
|
|
|
console.log(row)
|
|
|
openDialog(row)
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- label: '删除',
|
|
|
- type: 'danger',
|
|
|
- hasPermi: ['examine:delete'],
|
|
|
- key: 'edit',
|
|
|
- func: (row) => {
|
|
|
- console.log(row)
|
|
|
- handleDelete([row.id])
|
|
|
- }
|
|
|
- }
|
|
|
+ // {
|
|
|
+ // label: '删除',
|
|
|
+ // type: 'danger',
|
|
|
+ // hasPermi: ['manage:delete'],
|
|
|
+ // key: 'delete',
|
|
|
+ // func: (row) => {
|
|
|
+ // console.log(row)
|
|
|
+ // handleDelete([row.id])
|
|
|
+ // }
|
|
|
+ // }
|
|
|
]
|
|
|
})
|
|
|
const dialogData = reactive({
|
|
@@ -191,11 +198,11 @@ const dialogData = reactive({
|
|
|
options: [
|
|
|
{
|
|
|
label: '通过',
|
|
|
- value: 2
|
|
|
+ value: '2'
|
|
|
},
|
|
|
{
|
|
|
label: '不通过',
|
|
|
- value: 3
|
|
|
+ value: '3'
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -259,7 +266,11 @@ const submitForm = async (parmas) => {
|
|
|
try {
|
|
|
console.log('submit', parmas);
|
|
|
if (title.value === '审核') {
|
|
|
- const res = await approval(parmas)
|
|
|
+ const res = await approval({
|
|
|
+ volunteerInfoId: parmas.volunteerId,
|
|
|
+ appStatus: parmas.appStatus,
|
|
|
+ rejectReason: parmas.rejectReason
|
|
|
+ })
|
|
|
if (up_res.code === 200) {
|
|
|
proxy.$modal.msgSuccess("审核成功");
|
|
|
return;
|
|
@@ -267,9 +278,10 @@ const submitForm = async (parmas) => {
|
|
|
proxy.$modal.msgSuccess(res.msg);
|
|
|
}
|
|
|
} catch (error) {
|
|
|
- console.log('error',error);
|
|
|
-
|
|
|
+ console.log('error', error);
|
|
|
+
|
|
|
} finally {
|
|
|
+ userTableRef.value.resetForm();
|
|
|
dialogFormRef.value.handleDialog(false);
|
|
|
}
|
|
|
|
|
@@ -290,4 +302,4 @@ getTreeListData();
|
|
|
|
|
|
</script>
|
|
|
|
|
|
-<style lang='scss' scoped></style>
|
|
|
+<style lang='scss' scoped></style>
|