111
This commit is contained in:
parent
d6cab3c739
commit
30895c570a
@ -5,7 +5,8 @@
|
||||
* @Date: 2024-01-11 15:18:32
|
||||
* @Copyright gdxz
|
||||
*/
|
||||
import { postRequest, getRequest, download,uploadRequest,delRequest} from '/@/lib/axios';
|
||||
import { postRequest, getRequest, download,uploadRequest,delRequest,putRequest} from '/@/lib/axios';
|
||||
|
||||
|
||||
export const manageApi = {
|
||||
|
||||
@ -57,6 +58,9 @@ export const manageApi = {
|
||||
delDoctor: (id) => {
|
||||
return delRequest(`/caseplatformExpertWhite/delete/${id}`);
|
||||
},
|
||||
changeStatus: (id,params) => {
|
||||
return putRequest(`/caseplatformExpertWhite/update/${id}`,params);
|
||||
},
|
||||
|
||||
/**
|
||||
* 审核 @author HMM
|
||||
|
||||
@ -56,9 +56,8 @@ smartAxios.interceptors.response.use(
|
||||
clearAllCoolies();
|
||||
localClear();
|
||||
//跳转到登录页面,直接使用页面刷新的策略
|
||||
setTimeout(() => {
|
||||
router.push("/login");
|
||||
}, 300);
|
||||
|
||||
router.push("/login");
|
||||
return Promise.reject(response);
|
||||
}else if(res.code === 200){
|
||||
return Promise.resolve(res);
|
||||
|
||||
@ -55,7 +55,7 @@ async function getLoginInfo() {
|
||||
//更新用户信息到pinia
|
||||
useUserStore().setUserLoginInfo(res.data);
|
||||
} catch (e) {
|
||||
message.error(e);
|
||||
//message.error(e);
|
||||
smartSentry.captureError(e);
|
||||
initVue();
|
||||
}
|
||||
|
||||
@ -102,17 +102,17 @@
|
||||
<span>{{ text ? text.substring(0, 11) : '--' }}</span>
|
||||
</template>
|
||||
|
||||
<template v-if="column.dataIndex === 'signStatus'">
|
||||
<a-tag :color="text == 1 ? 'success' : 'error'">{{ text == 1 ? '已签署' : '未签署' }}</a-tag>
|
||||
<template v-if="column.dataIndex === 'status'">
|
||||
<a-tag :color="text == 1 ? 'success' : 'error'">{{ text == 1 ? '正常' : '失效' }}</a-tag>
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'caseType'">
|
||||
<a-tag :color="$smartEnumPlugin.getColorByValue('CASETYPE', item)" v-for="item in formatJson(record.caseType)">{{
|
||||
$smartEnumPlugin.getDescByValue('CASETYPE', item)
|
||||
}}</a-tag>
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'status'">
|
||||
<!-- <template v-if="column.dataIndex === 'status'">
|
||||
<a-tag :color="$smartEnumPlugin.getColorByValue('CASESTATUS', text)">{{ $smartEnumPlugin.getDescByValue('CASESTATUS', text) }}</a-tag>
|
||||
</template>
|
||||
</template> -->
|
||||
<template v-if="column.dataIndex === 'settlementFlag'">
|
||||
<a-tag :color="$smartEnumPlugin.getColorByValue('CASESettlementFlag', text)">{{
|
||||
$smartEnumPlugin.getDescByValue('CASESettlementFlag', text)
|
||||
@ -121,7 +121,7 @@
|
||||
<template v-if="column.dataIndex === 'action'">
|
||||
<div class="smart-table-operate">
|
||||
<a-button @click="delDoctor(record.id)" type="link" danger>删除</a-button>
|
||||
|
||||
<a-button @click="changeStatus(record.id,record.status)" type="link" >{{record.status==1?'白名单失效':'白名单正常'}}</a-button>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
@ -184,16 +184,31 @@ const columns = ref([
|
||||
dataIndex: 'name',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '白名单状态',
|
||||
dataIndex: 'status',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '手机号',
|
||||
dataIndex: 'mobile',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '省份',
|
||||
dataIndex: 'prov',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '医院',
|
||||
dataIndex: 'hospitalName',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '科室',
|
||||
dataIndex: 'department',
|
||||
ellipsis: true,
|
||||
},
|
||||
|
||||
{
|
||||
title: '创建时间',
|
||||
@ -299,7 +314,16 @@ async function queryData() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const changeStatus=(id,status)=>{
|
||||
manageApi.changeStatus(id,{
|
||||
status:status==1?2:1
|
||||
}).then((res)=>{
|
||||
message.success(`操作成功`);
|
||||
queryData();
|
||||
}).catch((err)=>{
|
||||
smartSentry.captureError(err);
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user