Commit ecc2a2e4 by 曾经

日期格式化

parent 7b025608
......@@ -290,7 +290,7 @@ export default {
if (customFlag == 1) {
params.holidaysDate = month + '-' + week + '-' + weekDay;
} else {
params.holidaysDate = (date.getMonth()+1) + '-' + date.getDate();
params.holidaysDate = date.getMonth() + 1 + '-' + date.getDate();
}
addHoliday(params).then(() => {
this.$message.success('添加成功');
......
......@@ -47,10 +47,9 @@
<script>
import fetch from '@/api/operation.js';
const { getPageHolidays, delHoliday, getHolidayCategoryList } = fetch;
import { formatDate } from '@/utils';
import holidayCategoryDialog from './components/holiday-category-dialog.vue';
import holidayCategoryDialog from './component/holiday-category-dialog.vue';
import holidayDialog from './components/holiday-dialog.vue';
import holidayDialog from './component/holiday-dialog.vue';
export default {
name: 'FeeRuleManage',
components: {
......@@ -128,7 +127,7 @@ export default {
}
},
filters: {
formatDate,
formatDate: ({ createTime = '' }) => this.$options.filters.formatDate(createTime),
filterFee(value) {
if (value === null || value === undefined) {
return '--';
......
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