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