更新 #396

Merged
zwq merged 1 commits from projects/zg-zwq into projects/zg-test 2024-09-11 13:59:38 +08:00
10 changed files with 64 additions and 1 deletions
Showing only changes of commit 93ac1c4742 - Show all commits

View File

@ -2,7 +2,7 @@
/* /*
* @Date: 2020-12-29 16:49:28 * @Date: 2020-12-29 16:49:28
* @LastEditors: zwq * @LastEditors: zwq
* @LastEditTime: 2024-09-10 15:15:21 * @LastEditTime: 2024-09-11 13:40:48
* @FilePath: \basic-admin\src\filters\basicData\index.js * @FilePath: \basic-admin\src\filters\basicData\index.js
* @Description: * @Description:
*/ */

View File

@ -265,6 +265,13 @@ export default {
}, },
methods: { methods: {
buttonClick(val) { buttonClick(val) {
if (val.statisticType === 2) {
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年第{w}周');
}else{
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年{m}月{d}日');
}
this.formConfig2[1].startPlaceholder = '开始时间'; this.formConfig2[1].startPlaceholder = '开始时间';
this.formConfig2[1].endPlaceholder = '结束时间'; this.formConfig2[1].endPlaceholder = '结束时间';
switch (val.btnName) { switch (val.btnName) {

View File

@ -240,6 +240,13 @@ export default {
}, },
methods: { methods: {
buttonClick(val) { buttonClick(val) {
if (val.statisticType === 2) {
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年第{w}周');
}else{
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年{m}月{d}日');
}
this.formConfig2[1].startPlaceholder = '开始时间'; this.formConfig2[1].startPlaceholder = '开始时间';
this.formConfig2[1].endPlaceholder = '结束时间'; this.formConfig2[1].endPlaceholder = '结束时间';
switch (val.btnName) { switch (val.btnName) {

View File

@ -228,6 +228,13 @@ export default {
}, },
methods: { methods: {
buttonClick(val) { buttonClick(val) {
if (val.statisticType === 2) {
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年第{w}周');
}else{
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年{m}月{d}日');
}
switch (val.btnName) { switch (val.btnName) {
case 'search': case 'search':
this.listQuery.pageNo = 1; this.listQuery.pageNo = 1;

View File

@ -291,6 +291,13 @@ export default {
}, },
methods: { methods: {
buttonClick(val) { buttonClick(val) {
if (val.statisticType === 2) {
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年第{w}周');
}else{
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年{m}月{d}日');
}
this.formConfig2[0].startPlaceholder = '开始时间'; this.formConfig2[0].startPlaceholder = '开始时间';
this.formConfig2[0].endPlaceholder = '结束时间'; this.formConfig2[0].endPlaceholder = '结束时间';
switch (val.btnName) { switch (val.btnName) {

View File

@ -265,6 +265,13 @@ export default {
}, },
methods: { methods: {
buttonClick(val) { buttonClick(val) {
if (val.statisticType === 2) {
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年第{w}周');
}else{
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年{m}月{d}日');
}
this.formConfig2[1].startPlaceholder = '开始时间'; this.formConfig2[1].startPlaceholder = '开始时间';
this.formConfig2[1].endPlaceholder = '结束时间'; this.formConfig2[1].endPlaceholder = '结束时间';
switch (val.btnName) { switch (val.btnName) {

View File

@ -262,6 +262,13 @@ export default {
}, },
methods: { methods: {
buttonClick(val) { buttonClick(val) {
if (val.statisticType === 2) {
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年第{w}周');
}else{
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年{m}月{d}日');
}
this.formConfig2[1].startPlaceholder = '开始时间'; this.formConfig2[1].startPlaceholder = '开始时间';
this.formConfig2[1].endPlaceholder = '结束时间'; this.formConfig2[1].endPlaceholder = '结束时间';
switch (val.btnName) { switch (val.btnName) {

View File

@ -170,6 +170,13 @@ export default {
}, },
methods: { methods: {
buttonClick(val) { buttonClick(val) {
if (val.statisticType === 2) {
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年第{w}周');
}else{
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年{m}月{d}日');
}
switch (val.btnName) { switch (val.btnName) {
case 'search': case 'search':
this.listQuery.pageNo = 1; this.listQuery.pageNo = 1;

View File

@ -240,6 +240,13 @@ export default {
}, },
methods: { methods: {
buttonClick(val) { buttonClick(val) {
if (val.statisticType === 2) {
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年第{w}周');
}else{
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年{m}月{d}日');
}
switch (val.btnName) { switch (val.btnName) {
case 'search': case 'search':
this.listQuery.pageNo = 1; this.listQuery.pageNo = 1;

View File

@ -290,6 +290,13 @@ export default {
}, },
methods: { methods: {
buttonClick(val) { buttonClick(val) {
if (val.statisticType === 2) {
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年第{w}周');
}else{
this.tableProps[0].filter = (val) =>
parseTime(val, '{y}年{m}月{d}日');
}
this.formConfig2[0].startPlaceholder = '开始时间'; this.formConfig2[0].startPlaceholder = '开始时间';
this.formConfig2[0].endPlaceholder = '结束时间'; this.formConfig2[0].endPlaceholder = '结束时间';
switch (val.btnName) { switch (val.btnName) {