|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
<el-container>
|
|
|
- <el-header height="80px" class="content-header">
|
|
|
+ <el-header height="30px" class="content-header">
|
|
|
<div class="header-container">
|
|
|
<div class="header-title">昨天天交换量</div>
|
|
|
- <el-form :model="searchformModel" ref="searchForm" label-position="left" class="header-form-detail-inline"
|
|
|
+ <!-- <el-form :model="searchformModel" ref="searchForm" label-position="left" class="header-form-detail-inline"
|
|
|
inline>
|
|
|
<el-form-item label="表名" prop="name">
|
|
|
<el-input v-model="searchformModel.name" placeholder="请输入表名"></el-input>
|
|
@@ -48,32 +48,41 @@
|
|
|
<el-button type="primary" size="mini" @click="handleSubmit">搜索</el-button>
|
|
|
<el-button size="mini" @click="handleReset">重置</el-button>
|
|
|
</el-form-item>
|
|
|
- </el-form>
|
|
|
+ </el-form> -->
|
|
|
</div>
|
|
|
</el-header>
|
|
|
<el-container>
|
|
|
<el-main>
|
|
|
- <MyTableHeader :title="tableHeaderTitle" :tabs="tabs" :buttons="buttons" @tabClick="handleTabClick"
|
|
|
- @buttonClick="handleButtonClick"></MyTableHeader>
|
|
|
+ <MyTableHeader
|
|
|
+ :title="tableHeaderTitle"
|
|
|
+ :tabs="tabs"
|
|
|
+ :buttons="buttons"
|
|
|
+ @tabClick="handleTabClick"
|
|
|
+ @buttonClick="handleButtonClick"
|
|
|
+ ></MyTableHeader>
|
|
|
|
|
|
- <MyTable :tableData="tableData" :formData="formData" :minWidth="340" ref="myTableRef"
|
|
|
- @selection-change="handleSelectionChange" :isOperate="isOperate">
|
|
|
+ <MyTable
|
|
|
+ :tableData="tableData"
|
|
|
+ :formData="formData"
|
|
|
+ :minWidth="340"
|
|
|
+ ref="myTableRef"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
+ :isOperate="isOperate"
|
|
|
+ >
|
|
|
</MyTable>
|
|
|
- <MyPagination :total="tableTotal" :page-size="pageSize" :current-page="currentPage"
|
|
|
- @pageChange="pagi_changePage" @sizeChange="pagi_changeSize"></MyPagination>
|
|
|
+ <MyPagination
|
|
|
+ :total="tableTotal"
|
|
|
+ :page-size="pageSize"
|
|
|
+ :current-page="currentPage"
|
|
|
+ @pageChange="pagi_changePage"
|
|
|
+ @sizeChange="pagi_changeSize"
|
|
|
+ ></MyPagination>
|
|
|
</el-main>
|
|
|
</el-container>
|
|
|
</el-container>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import {
|
|
|
- getTabAccessConfigList,
|
|
|
- addTabAccessConfig,
|
|
|
- updateTabAccessConfigById,
|
|
|
- viewTabAccessConfigById,
|
|
|
- delTabAccessConfigById,
|
|
|
- exportTabAccessConfig,
|
|
|
-} from "@/api/unified-access/access-config";
|
|
|
+import { getExchangeCount } from "@/api/unified-access/access-statistical-analysis.js";
|
|
|
import MyHeader from "@/components/MyHeader";
|
|
|
import MyTable from "@/components/MyTable";
|
|
|
import MyPagination from "@/components/MyPagination";
|
|
@@ -86,14 +95,14 @@ export default {
|
|
|
MyTable,
|
|
|
MyPagination,
|
|
|
},
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
searchformModel: {},
|
|
|
pickerOptions: {
|
|
|
shortcuts: [
|
|
|
{
|
|
|
text: "最近一周",
|
|
|
- onClick (picker) {
|
|
|
+ onClick(picker) {
|
|
|
const end = new Date();
|
|
|
const start = new Date();
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
@@ -102,7 +111,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
text: "最近一个月",
|
|
|
- onClick (picker) {
|
|
|
+ onClick(picker) {
|
|
|
const end = new Date();
|
|
|
const start = new Date();
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
@@ -111,7 +120,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
text: "最近三个月",
|
|
|
- onClick (picker) {
|
|
|
+ onClick(picker) {
|
|
|
const end = new Date();
|
|
|
const start = new Date();
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
@@ -125,11 +134,12 @@ export default {
|
|
|
rowObj: {},
|
|
|
type: "add",
|
|
|
isOperate: false,
|
|
|
+ yesterday:'',
|
|
|
tableData: [],
|
|
|
formData: [
|
|
|
{
|
|
|
label: "操作表",
|
|
|
- fieldName: "dataManner",
|
|
|
+ fieldName: "tableName",
|
|
|
type: "input",
|
|
|
showInTable: true,
|
|
|
value: "",
|
|
@@ -137,7 +147,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "inx",
|
|
|
- fieldName: "gatewayIp",
|
|
|
+ fieldName: "inx",
|
|
|
type: "input",
|
|
|
showInTable: true,
|
|
|
value: "",
|
|
@@ -145,7 +155,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "表当日实际Insert数量",
|
|
|
- fieldName: "gatewayPort",
|
|
|
+ fieldName: "insertCount",
|
|
|
type: "input",
|
|
|
showInTable: true,
|
|
|
value: "",
|
|
@@ -153,7 +163,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "日志_Update数量",
|
|
|
- fieldName: "sixIp",
|
|
|
+ fieldName: "updateCountLog",
|
|
|
type: "input",
|
|
|
showInTable: true,
|
|
|
value: "",
|
|
@@ -161,7 +171,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "表当日实际update数量",
|
|
|
- fieldName: "sixPort",
|
|
|
+ fieldName: "updateCount",
|
|
|
type: "input",
|
|
|
showInTable: true,
|
|
|
value: "",
|
|
@@ -169,7 +179,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "日志_Delete数量",
|
|
|
- fieldName: "offerSystem",
|
|
|
+ fieldName: "deleteCountLog",
|
|
|
type: "input",
|
|
|
showInTable: true,
|
|
|
value: "",
|
|
@@ -178,7 +188,7 @@ export default {
|
|
|
|
|
|
{
|
|
|
label: "表当日实际Delete数量",
|
|
|
- fieldName: "receptionSystem",
|
|
|
+ fieldName: "deleteCount",
|
|
|
type: "input",
|
|
|
showInTable: true,
|
|
|
value: "",
|
|
@@ -186,7 +196,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "插入失败",
|
|
|
- fieldName: "dataDetail",
|
|
|
+ fieldName: "insertError",
|
|
|
type: "input",
|
|
|
showInTable: true,
|
|
|
value: "",
|
|
@@ -194,7 +204,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "更新失败",
|
|
|
- fieldName: "runTime",
|
|
|
+ fieldName: "updateError",
|
|
|
type: "input",
|
|
|
showInTable: true,
|
|
|
value: "",
|
|
@@ -202,7 +212,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "删除失败",
|
|
|
- fieldName: "runTime",
|
|
|
+ fieldName: "deleteError",
|
|
|
type: "input",
|
|
|
showInTable: true,
|
|
|
value: "",
|
|
@@ -210,7 +220,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "操作时间",
|
|
|
- fieldName: "runTime",
|
|
|
+ fieldName: "time",
|
|
|
type: "input",
|
|
|
showInTable: true,
|
|
|
value: "",
|
|
@@ -218,7 +228,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "插入_更新_删除总量",
|
|
|
- fieldName: "runTime",
|
|
|
+ fieldName: "allCount",
|
|
|
type: "input",
|
|
|
showInTable: true,
|
|
|
value: "",
|
|
@@ -250,18 +260,18 @@ export default {
|
|
|
tableHeaderTitle: "项目列表",
|
|
|
tabs: [],
|
|
|
buttons: [
|
|
|
- {
|
|
|
- label: "导出",
|
|
|
- type: "primary",
|
|
|
- methodName: "action1",
|
|
|
- icon: "el-icon-upload",
|
|
|
- },
|
|
|
- {
|
|
|
- label: "对账",
|
|
|
- type: "primary",
|
|
|
- methodName: "action2",
|
|
|
- icon: "el-icon-download",
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // label: "导出",
|
|
|
+ // type: "primary",
|
|
|
+ // methodName: "action1",
|
|
|
+ // icon: "el-icon-upload",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: "对账",
|
|
|
+ // type: "primary",
|
|
|
+ // methodName: "action2",
|
|
|
+ // icon: "el-icon-download",
|
|
|
+ // },
|
|
|
],
|
|
|
|
|
|
headerFormData: [
|
|
@@ -311,14 +321,14 @@ export default {
|
|
|
|
|
|
methods: {
|
|
|
// 头部搜索框
|
|
|
- handleHeaderFormSubmit (form) {
|
|
|
+ handleHeaderFormSubmit(form) {
|
|
|
this.searchForm = form;
|
|
|
this.getList();
|
|
|
},
|
|
|
// 树结构点击
|
|
|
- handleNodeClick () { },
|
|
|
+ handleNodeClick() {},
|
|
|
// 列表头部
|
|
|
- handleTabClick (tab) {
|
|
|
+ handleTabClick(tab) {
|
|
|
this.tabs.forEach((item) => {
|
|
|
if (item.label === tab.label) {
|
|
|
item.active = true;
|
|
@@ -328,7 +338,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 列表头部功能按钮
|
|
|
- handleButtonClick (methodName) {
|
|
|
+ handleButtonClick(methodName) {
|
|
|
console.log(methodName, "methodName");
|
|
|
|
|
|
switch (methodName) {
|
|
@@ -363,8 +373,8 @@ export default {
|
|
|
type: "warning",
|
|
|
center: true,
|
|
|
})
|
|
|
- .then(() => { })
|
|
|
- .catch(() => { });
|
|
|
+ .then(() => {})
|
|
|
+ .catch(() => {});
|
|
|
}
|
|
|
break;
|
|
|
|
|
@@ -373,14 +383,20 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 处理选中项变化
|
|
|
- handleSelectionChange (selectedRows) {
|
|
|
+ handleSelectionChange(selectedRows) {
|
|
|
this.selectedRows = selectedRows; // 获取选中的行
|
|
|
},
|
|
|
|
|
|
- getList () {
|
|
|
- getTabAccessConfigList({
|
|
|
+ getList() {
|
|
|
+ const todayDate = new Date()
|
|
|
+ // 获取昨天的日期
|
|
|
+ const yesterdayDate = new Date(todayDate);
|
|
|
+ yesterdayDate.setDate(todayDate.getDate() - 1);
|
|
|
+ this.yesterday = this.formatDate(yesterdayDate);
|
|
|
+ getExchangeCount({
|
|
|
pageNum: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
+ dateTime: this.yesterday,
|
|
|
...this.searchForm,
|
|
|
}).then((res) => {
|
|
|
if (+res.code === 200) {
|
|
@@ -389,31 +405,37 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ formatDate(date) {
|
|
|
+ const year = date.getFullYear();
|
|
|
+ const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
|
+ const day = String(date.getDate()).padStart(2, "0");
|
|
|
+ return `${year}-${month}-${day}`;
|
|
|
+ },
|
|
|
// 列表分页
|
|
|
- pagi_changePage (page) {
|
|
|
+ pagi_changePage(page) {
|
|
|
this.currentPage = page;
|
|
|
this.getList();
|
|
|
},
|
|
|
- pagi_changeSize (size) {
|
|
|
+ pagi_changeSize(size) {
|
|
|
this.pageSize = size;
|
|
|
this.getList();
|
|
|
},
|
|
|
|
|
|
// 弹窗
|
|
|
- handleConfirm () {
|
|
|
+ handleConfirm() {
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
- handleClose () {
|
|
|
+ handleClose() {
|
|
|
this.dialogVisible = false;
|
|
|
},
|
|
|
|
|
|
// 编辑
|
|
|
- handleView (row) {
|
|
|
+ handleView(row) {
|
|
|
this.rowObj = row;
|
|
|
this.title = "查看";
|
|
|
this.showDialog = true;
|
|
|
},
|
|
|
- handleEdit (row) {
|
|
|
+ handleEdit(row) {
|
|
|
console.log(row, "row");
|
|
|
this.rowObj = row;
|
|
|
console.log(this.rowObj, "this.rowObj");
|
|
@@ -422,11 +444,11 @@ export default {
|
|
|
this.showDialog = true;
|
|
|
},
|
|
|
|
|
|
- beforeClose () {
|
|
|
+ beforeClose() {
|
|
|
this.showDialog = false;
|
|
|
},
|
|
|
|
|
|
- handleStart (row) {
|
|
|
+ handleStart(row) {
|
|
|
let pForm = {};
|
|
|
pForm = { ...row };
|
|
|
pForm.status = 1;
|
|
@@ -442,7 +464,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- handleStop (row) {
|
|
|
+ handleStop(row) {
|
|
|
let pForm = {};
|
|
|
pForm = { ...row };
|
|
|
pForm.status = 0;
|
|
@@ -458,7 +480,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- handleDelete (row) {
|
|
|
+ handleDelete(row) {
|
|
|
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
@@ -484,12 +506,10 @@ export default {
|
|
|
message: "已取消删除",
|
|
|
});
|
|
|
});
|
|
|
- console.log(row, "row");
|
|
|
},
|
|
|
},
|
|
|
- created () { },
|
|
|
- mounted () {
|
|
|
- console.log("接入配置");
|
|
|
+ created() {},
|
|
|
+ mounted() {
|
|
|
this.getList();
|
|
|
},
|
|
|
};
|