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