merge the data of the two columns of check-in date and departure date into one column
merge the data of the two columns of check-in date and departure date into one column
use the slot of vue, the code is as follows
<el-table-column prop="date" label="">
<template slot-scope="scope">
<span>{{scope.row.checkInDate}} ~ {{scope.row.checkOutDate}}</span>
</template>
</el-table-column>
if you want to customize the date format, you can add a vue filter to format the date. Sample code:
{{scope.row.checkInDate | formatDate}}
according to the alsowen answer, post my code
I want to make a page for new orders. There is a list of orders with table,. There is a button ruleForm.list.push (new line) that has a new line in the interface. There are 3 problems with the following code? is it okay to use new Detail () for new ...
want to achieve the following effect: Code <span>{{scope.row.stock }} {{scope.row.stock }}< span> < template> < el-table-column> ...
as shown in the figure above: the enclosed part is obtained dynamically after clicking the expand button, so what is the time when the button is clicked? I want to get the expanded data when I click the expand button. I hope the great god can give us...
problem description in a table, there are two buttons that can be clicked to control the display and hiding of the expanded rows of the table, and the two buttons can switch between different contents the environmental background of the problems and...