diff --git a/src/api/business/manage/manage-api.js b/src/api/business/manage/manage-api.js
index 306039a..4b58a59 100644
--- a/src/api/business/manage/manage-api.js
+++ b/src/api/business/manage/manage-api.js
@@ -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
diff --git a/src/lib/axios.js b/src/lib/axios.js
index eba6fea..fcad930 100644
--- a/src/lib/axios.js
+++ b/src/lib/axios.js
@@ -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);
diff --git a/src/main.js b/src/main.js
index 7532376..a44efd8 100644
--- a/src/main.js
+++ b/src/main.js
@@ -55,7 +55,7 @@ async function getLoginInfo() {
//更新用户信息到pinia
useUserStore().setUserLoginInfo(res.data);
} catch (e) {
- message.error(e);
+ //message.error(e);
smartSentry.captureError(e);
initVue();
}
diff --git a/src/views/business/manage/manage-list.vue b/src/views/business/manage/manage-list.vue
index 833ada7..e29603f 100644
--- a/src/views/business/manage/manage-list.vue
+++ b/src/views/business/manage/manage-list.vue
@@ -102,17 +102,17 @@
{{ text ? text.substring(0, 11) : '--' }}
-
- {{ text == 1 ? '已签署' : '未签署' }}
+
+ {{ text == 1 ? '正常' : '失效' }}
{{
$smartEnumPlugin.getDescByValue('CASETYPE', item)
}}
-
+
{{
$smartEnumPlugin.getDescByValue('CASESettlementFlag', text)
@@ -121,7 +121,7 @@
删除
-
+
{{record.status==1?'白名单失效':'白名单正常'}}
@@ -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);
+ })
+}