master
lion 1 year ago
parent 9acf76fbbc
commit 0a6a6f8342

@ -10,7 +10,7 @@
v-model="myMonth" v-model="myMonth"
@change="changeMyMonth" @change="changeMyMonth"
format="yyyy-MM" format="yyyy-MM"
value-format="MM" value-format="yyyy-MM"
style="width: 150px;margin-right: 10px;" style="width: 150px;margin-right: 10px;"
placeholder="选择月份"> placeholder="选择月份">
</el-date-picker> </el-date-picker>
@ -165,7 +165,7 @@
end_date: '', end_date: '',
// sort_name: 'start_date', // sort_name: 'start_date',
// sort_type: 'ASC', // sort_type: 'ASC',
year: new Date().getFullYear(), year: '',
month: '', month: '',
pid:'', pid:'',
main_department_id:'' main_department_id:''
@ -350,8 +350,10 @@
changeMyMonth(e){ changeMyMonth(e){
console.log(e) console.log(e)
if(e){ if(e){
this.select.month = e this.select.year = e.split("-")[0]
this.select.month = e.split("-")[1]
}else{ }else{
this.select.year = ''
this.select.month = '' this.select.month = ''
} }
}, },

@ -25,7 +25,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath * Detail: https://cli.vuejs.org/config/#publicpath
*/ */
publicPath: process.env.ENV === 'staging' ? '/admin_test' : '/admin', 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', assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development', lintOnSave: process.env.NODE_ENV === 'development',
productionSourceMap: false, productionSourceMap: false,

Loading…
Cancel
Save