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