diff --git a/src/views/task/list/unit.vue b/src/views/task/list/unit.vue index 3fc229f..ab2cd80 100644 --- a/src/views/task/list/unit.vue +++ b/src/views/task/list/unit.vue @@ -10,7 +10,7 @@ v-model="myMonth" @change="changeMyMonth" format="yyyy-MM" - value-format="MM" + value-format="yyyy-MM" style="width: 150px;margin-right: 10px;" placeholder="选择月份"> @@ -165,7 +165,7 @@ end_date: '', // sort_name: 'start_date', // sort_type: 'ASC', - year: new Date().getFullYear(), + year: '', month: '', pid:'', main_department_id:'' @@ -350,8 +350,10 @@ changeMyMonth(e){ console.log(e) if(e){ - this.select.month = e + this.select.year = e.split("-")[0] + this.select.month = e.split("-")[1] }else{ + this.select.year = '' this.select.month = '' } }, diff --git a/vue.config.js b/vue.config.js index c1b0b04..8b49cd5 100644 --- a/vue.config.js +++ b/vue.config.js @@ -25,7 +25,7 @@ module.exports = { * Detail: https://cli.vuejs.org/config/#publicpath */ publicPath: process.env.ENV === 'staging' ? '/admin_test' : '/admin', - outputDir: '/Users/mac/Documents/朗业/2024/h-河道处项目/a-安全生产/safety-manage-service/public/admin', + outputDir: '/Users/mac/Documents/朗业/2024/h-河道处项目/a-安全生产/safety-manage-service/public/admin_test', assetsDir: 'static', lintOnSave: process.env.NODE_ENV === 'development', productionSourceMap: false,