1.修复时间选择器时间格式化问题

fengcang
x_z 3 years ago
parent e1b2b276ac
commit d0d9eb4003

@ -15,7 +15,9 @@
v-model="filterQuery.submitTime" v-model="filterQuery.submitTime"
type="date" type="date"
placeholder="请选择提交时间" placeholder="请选择提交时间"
:picker-options="pickerOptions"> :picker-options="pickerOptions"
value-format="yyyy-MM-dd"
>
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
@ -186,6 +188,10 @@ export default {
if (res.code === 20000) { if (res.code === 20000) {
this.list = res.data.list || []; this.list = res.data.list || [];
this.total = res.data.total || 0; this.total = res.data.total || 0;
} else {
this.$message.error(res.message);
this.list = [];
this.total = 0;
} }
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;

Loading…
Cancel
Save