更新
This commit is contained in:
parent
5f40cb7d41
commit
d49e157efb
@ -382,14 +382,14 @@
|
|||||||
<a-form-item field="" label="" no-style>
|
<a-form-item field="" label="" no-style>
|
||||||
<div v-if="modalForm.user_ca_cert">证书有效期:{{parseTime(modalForm.user_ca_cert.cert_application_time,'{y}-{m}-{d}')}}-{{parseTime(modalForm.user_ca_cert.cert_expire_time,'{y}-{m}-{d}')}}</div>
|
<div v-if="modalForm.user_ca_cert">证书有效期:{{parseTime(modalForm.user_ca_cert.cert_application_time,'{y}-{m}-{d}')}}-{{parseTime(modalForm.user_ca_cert.cert_expire_time,'{y}-{m}-{d}')}}</div>
|
||||||
<a-space style="margin-top: 15px;">
|
<a-space style="margin-top: 15px;">
|
||||||
<!-- <a-button type="primary" >证书申请</a-button> -->
|
<a-button type="primary" @click="()=>{okVisible=true;okStatus=6;}" v-has="'admin:sysDoctorList:applyCA'">证书申请</a-button>
|
||||||
<a-button type="primary" status="success" @click="()=>{okVisible=true;okStatus=2;}">证书续期</a-button>
|
<a-button type="primary" status="success" @click="()=>{okVisible=true;okStatus=2;}" v-has="'admin:sysDoctorList:updateCA'">证书续期</a-button>
|
||||||
<a-button type="primary" status="danger" @click="()=>{okVisible=true;okStatus=3;}">证书注销</a-button>
|
<a-button type="primary" status="danger" @click="()=>{okVisible=true;okStatus=3;}" v-has="'admin:sysDoctorList:removeCA'">证书注销</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
<a-divider />
|
<a-divider />
|
||||||
<div class="title">签章配置</div>
|
<div class="title">签章配置</div>
|
||||||
<a-space style="margin-top: 15px;">
|
<a-space style="margin-top: 15px;">
|
||||||
<a-button type="primary" status="success" @click="()=>{okVisible=true;okStatus=4;}">签章申请</a-button>
|
<a-button type="primary" status="success" @click="()=>{okVisible=true;okStatus=4;}" v-has="'admin:sysDoctorList:applySign'">签章申请</a-button>
|
||||||
<!-- <a-button type="primary" status="danger" @click="()=>{okVisible=true;okStatus=5;}">签章更新</a-button> -->
|
<!-- <a-button type="primary" status="danger" @click="()=>{okVisible=true;okStatus=5;}">签章更新</a-button> -->
|
||||||
</a-space>
|
</a-space>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<template #action="{ record }">
|
<template #action="{ record }">
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button v-has="'admin:sysFamilyList:detail'" type="text"
|
<a-button v-has="'admin:sysDicitonary:updateCA'" type="text"
|
||||||
@click="handleUpdateCA(record)"><icon-book />证书续期</a-button>
|
@click="handleUpdateCA(record)"><icon-book />证书续期</a-button>
|
||||||
<!-- <a-button v-has="'admin:sysFamilyList:edit'" type="text" @click="handleUpdate(record)"><icon-edit />
|
<!-- <a-button v-has="'admin:sysFamilyList:edit'" type="text" @click="handleUpdate(record)"><icon-edit />
|
||||||
修改</a-button> -->
|
修改</a-button> -->
|
||||||
@ -78,8 +78,7 @@
|
|||||||
|
|
||||||
const handleUpdateCA=(record)=>{
|
const handleUpdateCA=(record)=>{
|
||||||
updateHospitalCA().then(data=>{
|
updateHospitalCA().then(data=>{
|
||||||
let result=data.data;
|
if(data.code==200){
|
||||||
if(result.code==200){
|
|
||||||
Message.success('证书更新成功');
|
Message.success('证书更新成功');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -185,7 +184,6 @@
|
|||||||
.cert .arco-form-item-label-col {
|
.cert .arco-form-item-label-col {
|
||||||
flex: 0 0 8px !important;
|
flex: 0 0 8px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.red {
|
.red {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
@ -193,7 +191,6 @@
|
|||||||
color: red;
|
color: red;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardNum {
|
.cardNum {
|
||||||
width: 148px;
|
width: 148px;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -567,7 +567,7 @@
|
|||||||
<a-form-item field="" label="" no-style>
|
<a-form-item field="" label="" no-style>
|
||||||
<div v-if="modalForm.user_ca_cert">证书有效期:{{parseTime(modalForm.user_ca_cert.cert_application_time,'{y}-{m}-{d}')}}-{{parseTime(modalForm.user_ca_cert.cert_expire_time,'{y}-{m}-{d}')}}</div>
|
<div v-if="modalForm.user_ca_cert">证书有效期:{{parseTime(modalForm.user_ca_cert.cert_application_time,'{y}-{m}-{d}')}}-{{parseTime(modalForm.user_ca_cert.cert_expire_time,'{y}-{m}-{d}')}}</div>
|
||||||
<a-space style="margin-top: 15px;">
|
<a-space style="margin-top: 15px;">
|
||||||
<!-- <a-button type="primary" >证书申请</a-button> -->
|
<a-button type="primary" @click="()=>{okVisible=true;okStatus=6;}" v-has="'admin:sysDoctorList:applyCA'">证书申请</a-button>
|
||||||
<a-button type="primary" status="success" @click="()=>{okVisible=true;okStatus=2;}" v-has="'admin:sysDoctorList:updateCA'">证书续期</a-button>
|
<a-button type="primary" status="success" @click="()=>{okVisible=true;okStatus=2;}" v-has="'admin:sysDoctorList:updateCA'">证书续期</a-button>
|
||||||
<a-button type="primary" status="danger" @click="()=>{okVisible=true;okStatus=3;}" v-has="'admin:sysDoctorList:removeCA'">证书注销</a-button>
|
<a-button type="primary" status="danger" @click="()=>{okVisible=true;okStatus=3;}" v-has="'admin:sysDoctorList:removeCA'">证书注销</a-button>
|
||||||
|
|
||||||
@ -616,6 +616,7 @@
|
|||||||
<div v-else-if="okStatus==3">确定注销CA证书?</div>
|
<div v-else-if="okStatus==3">确定注销CA证书?</div>
|
||||||
<div v-else-if="okStatus==4">确定申请签章?</div>
|
<div v-else-if="okStatus==4">确定申请签章?</div>
|
||||||
<div v-else-if="okStatus==5">确定更新签章?</div>
|
<div v-else-if="okStatus==5">确定更新签章?</div>
|
||||||
|
<div v-else-if="okStatus==6">确定申请CA证书?</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -623,7 +624,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, ref, getCurrentInstance, onMounted, watch } from 'vue';
|
import { reactive, ref, getCurrentInstance, onMounted, watch } from 'vue';
|
||||||
import { getDoctorList, addDoctor, removeDoctor, updateDoctor, getDoctorDetail, departmentList, decryptCard, hospitalList, expertiseList, areaList, bankList, decryptBank } from '@/api/doctor/list';
|
import { getDoctorList, addDoctor, removeDoctor, updateDoctor, getDoctorDetail, departmentList, decryptCard, hospitalList, expertiseList, areaList, bankList, decryptBank } from '@/api/doctor/list';
|
||||||
import { updateCA,removeCA,updateSign,applySign } from '@/api/doctor/ca';
|
import { applyCA,updateCA,removeCA,updateSign,applySign } from '@/api/doctor/ca';
|
||||||
import { ossSign, ossUpload } from '@/api/oss';
|
import { ossSign, ossUpload } from '@/api/oss';
|
||||||
import { parseTime } from '@/utils/parseTime';
|
import { parseTime } from '@/utils/parseTime';
|
||||||
import { Message } from '@arco-design/web-vue';
|
import { Message } from '@arco-design/web-vue';
|
||||||
@ -1147,18 +1148,26 @@
|
|||||||
//await nextTick();
|
//await nextTick();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
//申请证书
|
||||||
|
|
||||||
|
const handleApplyCA=()=>{
|
||||||
|
applyCA(modalForm.user_doctor_info.user_id).then(data=>{
|
||||||
|
if(data.code==200){
|
||||||
|
Message.success('证书申请成功');
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
const handleUpdateCA=()=>{
|
const handleUpdateCA=()=>{
|
||||||
updateCA(modalForm.user_doctor_info.user_id).then(data=>{
|
updateCA(modalForm.user_doctor_info.user_id).then(data=>{
|
||||||
let result=data.data;
|
|
||||||
if(result.code==200){
|
if(data.code==200){
|
||||||
Message.success('证书更新成功');
|
Message.success('证书更新成功');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const handleRemoveCA=()=>{
|
const handleRemoveCA=()=>{
|
||||||
removeCA(modalForm.user_doctor_info.user_id).then(data=>{
|
removeCA(modalForm.user_doctor_info.user_id).then(data=>{
|
||||||
let result=data.data;
|
if(data.code==200){
|
||||||
if(result.code==200){
|
|
||||||
Message.success('证书注销成功');
|
Message.success('证书注销成功');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -1344,6 +1353,8 @@
|
|||||||
}else if(okStatus.value==5){
|
}else if(okStatus.value==5){
|
||||||
//签章更新
|
//签章更新
|
||||||
handleUpdateSign();
|
handleUpdateSign();
|
||||||
|
}else if(okStatus.value==6){
|
||||||
|
handleApplyCA();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user