This commit is contained in:
ChenQiuYu 2025-05-23 10:00:54 +08:00
parent def18c3753
commit cd30a1d7c0
1 changed files with 9 additions and 5 deletions

View File

@ -164,6 +164,7 @@
style="width: 100%;flex: 1"
v-if="!isShowCard"
highlight-current-row
ref="multipleTable"
@current-change="handleCurrentChange"
>
<el-table-column label="险种类型" prop="insutype">
@ -278,6 +279,8 @@ const close = () => {
time.value = ''
edit_data.value = {
timeList: [],
insutype: '',
appointmentTime: ''
}
isShowCard.value = true
nextTick(() => {
@ -298,10 +301,10 @@ const dateName = defineModel()
const save = () => {
if (dateName.value == '现在') {
edit_data.value.timeList = ''
edit_data.value.appointmentTime = ''
} else {
edit_data.value.timeList.push(edit_data.value.date, time.value)
edit_data.value.appointmentTime = edit_data.value.timeList.join(' ')
console.log(edit_data.value.appointmentTime)
}
let data = {
...edit_data.value,
@ -381,6 +384,7 @@ const init = (doctorId: any = "", id: any = null, show: any = false) => {
}
const isShowCard = ref<any>(true)
const tableData = ref<any>([])
const multipleTable=ref<any>()
const socialCardUpdate = (e: any) => {
isShowCard.value = false
if (e) {
@ -409,8 +413,8 @@ const socialCardUpdate = (e: any) => {
}
nextTick(() => {
if (tableData.value.length > 0) {
height.value = 870
height.value = 820
multipleTable.value?.setCurrentRow(tableData.value[0])
} else {
height.value = 570
}