新增
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: zhp
|
||||
* @Date: 2024-04-15 10:49:13
|
||||
* @LastEditTime: 2024-04-28 10:19:11
|
||||
* @LastEditTime: 2024-05-06 09:24:02
|
||||
* @LastEditors: zhp
|
||||
* @Description:
|
||||
-->
|
||||
@@ -93,7 +93,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import { parseTime } from '../../core/mixins/code-filter';
|
||||
import { parseTime } from '@/mixins/code-filter';
|
||||
import { getEnergyPage } from '@/api/energy';
|
||||
// import inputTable from './inputTable.vue';
|
||||
import lineChart from './lineChart';
|
||||
@@ -116,27 +116,6 @@ export default {
|
||||
},
|
||||
date1: undefined,
|
||||
date2: undefined,
|
||||
// weekNum: undefined,
|
||||
dataList: [
|
||||
{
|
||||
id:'first',
|
||||
},
|
||||
{
|
||||
id: 'second',
|
||||
},
|
||||
{
|
||||
id: 'third',
|
||||
},
|
||||
{
|
||||
id: 'fourth',
|
||||
},
|
||||
{
|
||||
id: 'fifth',
|
||||
},
|
||||
{
|
||||
id: 'sixth',
|
||||
},
|
||||
],
|
||||
urlOptions: {
|
||||
// getDataListURL: getGlassPage,
|
||||
// exportURL: exportGlasscExcel
|
||||
@@ -216,13 +195,14 @@ export default {
|
||||
type:'button',
|
||||
btnName: '导出',
|
||||
name: 'export',
|
||||
color: 'warning',
|
||||
plain: true,
|
||||
color: 'primary',
|
||||
},
|
||||
],
|
||||
formConfig: [
|
||||
{
|
||||
type: 'title',
|
||||
label: '成本管理',
|
||||
label: '能源管理',
|
||||
},
|
||||
],
|
||||
timeList: [
|
||||
@@ -258,8 +238,9 @@ export default {
|
||||
// filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
|
||||
// },
|
||||
{
|
||||
prop: 'userName',
|
||||
prop: 'createTime',
|
||||
label: '日期',
|
||||
filter: parseTime,
|
||||
},
|
||||
{
|
||||
prop: 'nickName',
|
||||
@@ -465,6 +446,8 @@ export default {
|
||||
},
|
||||
async getDataList() {
|
||||
const res = await getEnergyPage(this.listQuery)
|
||||
this.tableData = res.data.list
|
||||
// this.dataProps = res.data.list.map()
|
||||
},
|
||||
add0(m) {
|
||||
return m < 10 ? '0' + m : m
|
||||
|
||||
Reference in New Issue
Block a user