更新自贡
This commit is contained in:
parent
e58c60e6f7
commit
bc2b51d0e3
@ -86,9 +86,8 @@ import ButtonNav from '@/components/ButtonNav';
|
|||||||
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'recTime',
|
prop: 'time',
|
||||||
label: '日期',
|
label: '日期',
|
||||||
filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'originArea',
|
prop: 'originArea',
|
||||||
@ -249,13 +248,6 @@ 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) {
|
||||||
|
@ -86,9 +86,8 @@ import ButtonNav from '@/components/ButtonNav';
|
|||||||
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'recTime',
|
prop: 'time',
|
||||||
label: '日期',
|
label: '日期',
|
||||||
filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
@ -98,16 +97,16 @@ const tableProps = [
|
|||||||
prop: 'energyTypeName',
|
prop: 'energyTypeName',
|
||||||
label: '能源类型',
|
label: '能源类型',
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
prop: 'bindObjectName',
|
// prop: 'bindObjectName',
|
||||||
label: '监控对象',
|
// label: '监控对象',
|
||||||
filter: (val) => (val != null ? val : '--'),
|
// filter: (val) => (val != null ? val : '--'),
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
prop: 'meterName',
|
// prop: 'meterName',
|
||||||
label: '抄表名',
|
// label: '抄表名',
|
||||||
filter: (val) => (val != null ? val : '--'),
|
// filter: (val) => (val != null ? val : '--'),
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
prop: 'quantity',
|
prop: 'quantity',
|
||||||
label: '累计使用量',
|
label: '累计使用量',
|
||||||
@ -127,16 +126,16 @@ const tableProps2 = [
|
|||||||
prop: 'energyTypeName',
|
prop: 'energyTypeName',
|
||||||
label: '能源类型',
|
label: '能源类型',
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
prop: 'bindObjectName',
|
// prop: 'bindObjectName',
|
||||||
label: '监控对象',
|
// label: '监控对象',
|
||||||
filter: (val) => (val != null ? val : '--'),
|
// filter: (val) => (val != null ? val : '--'),
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
prop: 'meter',
|
// prop: 'meter',
|
||||||
label: '抄表名',
|
// label: '抄表名',
|
||||||
filter: (val) => (val != null ? val : '--'),
|
// filter: (val) => (val != null ? val : '--'),
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
prop: 'quantity',
|
prop: 'quantity',
|
||||||
label: '累计使用量',
|
label: '累计使用量',
|
||||||
@ -273,13 +272,6 @@ 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;
|
||||||
|
@ -87,9 +87,8 @@ import ButtonNav from '@/components/ButtonNav';
|
|||||||
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'recTime',
|
prop: 'time',
|
||||||
label: '日期',
|
label: '日期',
|
||||||
filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
@ -250,13 +249,6 @@ 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;
|
||||||
|
@ -85,9 +85,8 @@ import ButtonNav from '@/components/ButtonNav';
|
|||||||
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'recTime',
|
prop: 'time',
|
||||||
label: '日期',
|
label: '日期',
|
||||||
filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
@ -119,9 +118,8 @@ const tableProps = [
|
|||||||
];
|
];
|
||||||
const tableProps2 = [
|
const tableProps2 = [
|
||||||
{
|
{
|
||||||
prop: 'recTime',
|
prop: 'time',
|
||||||
label: '日期',
|
label: '日期',
|
||||||
filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
@ -239,13 +237,6 @@ 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;
|
||||||
|
@ -87,9 +87,8 @@ import ButtonNav from '@/components/ButtonNav';
|
|||||||
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'recTime',
|
prop: 'time',
|
||||||
label: '时间',
|
label: '时间',
|
||||||
filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
@ -309,13 +308,6 @@ 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;
|
||||||
|
@ -86,9 +86,8 @@ import ButtonNav from '@/components/ButtonNav';
|
|||||||
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'recTime',
|
prop: 'time',
|
||||||
label: '日期',
|
label: '日期',
|
||||||
filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
@ -98,16 +97,16 @@ const tableProps = [
|
|||||||
prop: 'energyTypeName',
|
prop: 'energyTypeName',
|
||||||
label: '能源类型',
|
label: '能源类型',
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
prop: 'bindObjectName',
|
// prop: 'bindObjectName',
|
||||||
label: '监控对象',
|
// label: '监控对象',
|
||||||
filter: (val) => (val != null ? val : '--'),
|
// filter: (val) => (val != null ? val : '--'),
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
prop: 'meterName',
|
// prop: 'meterName',
|
||||||
label: '抄表名',
|
// label: '抄表名',
|
||||||
filter: (val) => (val != null ? val : '--'),
|
// filter: (val) => (val != null ? val : '--'),
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
prop: 'quantity',
|
prop: 'quantity',
|
||||||
label: '累计使用量',
|
label: '累计使用量',
|
||||||
@ -127,16 +126,16 @@ const tableProps2 = [
|
|||||||
prop: 'energyTypeName',
|
prop: 'energyTypeName',
|
||||||
label: '能源类型',
|
label: '能源类型',
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
prop: 'bindObjectName',
|
// prop: 'bindObjectName',
|
||||||
label: '监控对象',
|
// label: '监控对象',
|
||||||
filter: (val) => (val != null ? val : '--'),
|
// filter: (val) => (val != null ? val : '--'),
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
prop: 'meter',
|
// prop: 'meter',
|
||||||
label: '抄表名',
|
// label: '抄表名',
|
||||||
filter: (val) => (val != null ? val : '--'),
|
// filter: (val) => (val != null ? val : '--'),
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
prop: 'quantity',
|
prop: 'quantity',
|
||||||
label: '累计使用量',
|
label: '累计使用量',
|
||||||
@ -274,11 +273,6 @@ 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;
|
||||||
|
@ -87,9 +87,8 @@ import ButtonNav from '@/components/ButtonNav';
|
|||||||
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'recTime',
|
prop: 'time',
|
||||||
label: '日期',
|
label: '日期',
|
||||||
filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
@ -271,11 +270,6 @@ 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;
|
||||||
|
@ -49,9 +49,8 @@ import { parseTime } from '@/filter/code-filter';
|
|||||||
import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
|
import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'recTime',
|
prop: 'time',
|
||||||
label: '日期',
|
label: '日期',
|
||||||
filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
|
|
||||||
width:130,
|
width:130,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -176,13 +175,6 @@ 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;
|
||||||
|
@ -87,9 +87,8 @@ import ButtonNav from '@/components/ButtonNav';
|
|||||||
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'recTime',
|
prop: 'time',
|
||||||
label: '日期',
|
label: '日期',
|
||||||
filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
@ -248,13 +247,6 @@ 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;
|
||||||
|
@ -87,9 +87,8 @@ import ButtonNav from '@/components/ButtonNav';
|
|||||||
|
|
||||||
const tableProps = [
|
const tableProps = [
|
||||||
{
|
{
|
||||||
prop: 'recTime',
|
prop: 'time',
|
||||||
label: '时间',
|
label: '时间',
|
||||||
filter: (val) => parseTime(val, '{y}年{m}月{d}日'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
@ -309,13 +308,6 @@ 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user