bug修复
This commit is contained in:
parent
6c9a63af16
commit
c8fb03a569
@ -7,11 +7,11 @@ export default {
|
||||
loading: null,
|
||||
// 每当这个插件被添加到应用程序中时,如果它是一个对象,就会调用 install 方法。如果它是一个 function,则函数本身将被调用。在这两种情况下——它都会收到两个参数:由 Vue 的 createApp 生成的 app 对象和用户传入的选项。
|
||||
install(app) {
|
||||
// if (this.loading) {
|
||||
// // 防止多次载入
|
||||
// app.config.globalProperties.$loading = this.loading
|
||||
// return
|
||||
// }
|
||||
if (this.loading) {
|
||||
// 防止多次载入
|
||||
app.config.globalProperties.$loading = this.loading
|
||||
return
|
||||
}
|
||||
// 创建Loading实例,用于挂载
|
||||
let instance = createApp(Loading)
|
||||
// 创建div元素装载Loading对象
|
||||
|
||||
@ -19,9 +19,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
//import {Spin } from '@arco-design/web-vue';
|
||||
import { ref } from 'vue'
|
||||
|
||||
const loading = ref(false)
|
||||
const show = () => {
|
||||
loading.value = true
|
||||
@ -29,7 +27,6 @@ const loading = ref(false)
|
||||
const hide = () => {
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
show,
|
||||
hide
|
||||
|
||||
@ -219,7 +219,7 @@
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<a-form-item field="doctor_title" label="职 称 :">
|
||||
<a-select placeholder="请选择所在医院" v-model="modalForm.doctor_title">
|
||||
<a-select placeholder="请选择所在职称" v-model="modalForm.doctor_title">
|
||||
<a-option v-for="item in doctor_title_data" :key="item.doctor_title" :value="item.doctor_title"
|
||||
:label="item.doctor_title_name">{{item.doctor_title_name}}</a-option>
|
||||
</a-select>
|
||||
@ -696,8 +696,8 @@
|
||||
validator: (value, cb) => {
|
||||
return new Promise(resolve => {
|
||||
window.setTimeout(() => {
|
||||
if (license_cert_list.value.length == 0) {
|
||||
cb("请上传医师执业证")
|
||||
if (license_cert_list.value.length<2) {
|
||||
cb("至少上传2张医师执业证照片")
|
||||
}
|
||||
resolve()
|
||||
}, 1000)
|
||||
@ -854,9 +854,9 @@
|
||||
license_cert_list.value = transArr(license_cert);
|
||||
qualification_cert_list.value = transArr(qualification_cert);
|
||||
work_cert_list.value = transArr(work_cert);
|
||||
id_card_front_list.value = transArr(id_card_front);
|
||||
id_card_back_list.value = transArr(id_card_back);
|
||||
sign_image_list.value = transArr(sign_image);
|
||||
id_card_front_list.value = id_card_front && transArr(id_card_front);
|
||||
id_card_back_list.value = id_card_back && transArr(id_card_back);
|
||||
sign_image_list.value = sign_image && transArr(sign_image);
|
||||
oldFrontImg.value=id_card_front;
|
||||
oldBackImg.value=id_card_back;
|
||||
oldSignImg.value=sign_image;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user