|
|
@@ -18,6 +18,15 @@
|
|
|
<a-input type="text" v-model="searchForm.defname" placeholder="请输入" clearable />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <a-col :xl="8" :lg="7" :md="8" :sm="24">
|
|
|
+ <a-form-item label="日期">
|
|
|
+ <a-range-picker v-model:value="rangeDay"
|
|
|
+ format="YYYY-MM-DD"
|
|
|
+ :placeholder="['开始时间', '结束时间']"
|
|
|
+ @change="onBirthdayChange" />
|
|
|
+ </a-form-item>
|
|
|
+
|
|
|
+ </a-col>
|
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
|
<a-col :md="6" :sm="12">
|
|
|
<a-button @click="handleSearch" type="primary" icon="search">搜索</a-button>
|
|
|
@@ -163,11 +172,14 @@ import { activitiMixin } from '@/views/activiti/mixins/activitiMixin'
|
|
|
import {getEditorJumpUrl,getProjctManageUrl}from '../../../url.config'
|
|
|
import outerFormCheck from '../../share/modal/OuterFormCheck'
|
|
|
import { getAction } from '@/api/manage'
|
|
|
+import moment from 'moment'
|
|
|
export default {
|
|
|
name: 'done-manage',
|
|
|
mixins: [activitiMixin, JeecgListMixin],
|
|
|
components:{
|
|
|
- outerFormCheck
|
|
|
+ outerFormCheck,
|
|
|
+
|
|
|
+ moment
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -176,9 +188,12 @@ export default {
|
|
|
loading: true, // 表单加载状态
|
|
|
selectCount: 0, // 多选计数
|
|
|
selectList: [], // 多选数据
|
|
|
+ rangeDay: [moment().subtract(1, 'months').startOf('day'),moment().endOf('day')], //
|
|
|
searchForm: {
|
|
|
// 搜索框对应data对象
|
|
|
name: '',
|
|
|
+ begin: '',
|
|
|
+ end: '',
|
|
|
pageNumber: 1, // 当前页数
|
|
|
pageSize: 10, // 页面大小
|
|
|
sort: 'createTime', // 默认排序字段
|
|
|
@@ -215,14 +230,35 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ // this.getCurrentAndThreeMonthsAgoDates();
|
|
|
this.init()
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
+ // getCurrentAndThreeMonthsAgoDates() {
|
|
|
+ // // 获取当前日期
|
|
|
+ // let today = new Date();
|
|
|
+ // this.searchForm.begin = today.toISOString().slice(0, 10); // 格式化为 YYYY-MM-DD
|
|
|
+
|
|
|
+ // // 获取三个月前的日期
|
|
|
+ // let threeMonthsAgo = new Date();
|
|
|
+ // threeMonthsAgo.setMonth(threeMonthsAgo.getMonth() - 3);
|
|
|
+ // this.searchForm.end = threeMonthsAgo.toISOString().slice(0, 10); // 格式化为 YYYY-MM-DD
|
|
|
+ // // this.rangeDay[0] = this.searchForm.end
|
|
|
+ // // this.rangeDay[1] = this.searchForm.begin
|
|
|
+ // }
|
|
|
+ // ,
|
|
|
+ onBirthdayChange: function (value, dateString) {
|
|
|
+ this.searchForm.begin=dateString[0];
|
|
|
+ this.searchForm.end=dateString[1];
|
|
|
+ },
|
|
|
loadData() {},
|
|
|
init() {
|
|
|
this.getDataList()
|
|
|
},
|
|
|
getDataList() {
|
|
|
+ console.log("======================")
|
|
|
+ console.log(this.rangeDay)
|
|
|
this.loading = true
|
|
|
this.postFormAction(this.url.doneList, this.searchForm).then(res => {
|
|
|
this.loading = false
|