Commit be0948b0 authored by 高滢's avatar 高滢

使用 单选

parent 04e903d6
......@@ -20,7 +20,7 @@
</el-select>
</el-form-item>
<el-form-item prop="status">
<el-select v-model="queryParams.insureList" placeholder="宠物保险" multiple collapse-tags clearable>
<el-select v-model="queryParams.insureList" placeholder="宠物保险" collapse-tags clearable>
<el-option
v-for="dict in insureList"
:key="dict.value"
......@@ -307,12 +307,28 @@ export default {
}
this.getUseList()
},
// 导出格式化
exportFormatTime(date) {
// 获取年月日
var year = date.getFullYear()
var month = date.getMonth() + 1 // 月份从0开始,需要加1
var day = date.getDate()
// 将年月日格式化为字符串
if (month < 10) {
month = '0' + month
}
if (day < 10) {
day = '0' + day
}
const formattedDate = year.toString() + month.toString() + day.toString()
return formattedDate
},
/** 导出按钮操作 */
handleExport() {
if (this.ids.length !== 0) {
const exportTable = {}
exportTable.useIds = this.ids
this.download('business/check/exportUse', exportTable, `use_${new Date().getTime()}.xlsx`).then(res => {
this.download('business/check/exportUse', exportTable, `使用管理_${this.exportFormatTime(new Date())}.xlsx`).then(res => {
this.$refs.table.clearSelection()
})
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment