|
@@ -1,26 +1,58 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
|
<div class="filter-container" style="margin: 10px 0 10px 0">
|
|
<div class="filter-container" style="margin: 10px 0 10px 0">
|
|
|
- <!-- 时间范围筛选 -->
|
|
|
|
|
|
|
+ <div class="flex">
|
|
|
|
|
+
|
|
|
|
|
+ <div class="w_input">
|
|
|
|
|
+ <span class="textSpan"> 操作人:</span>
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="body.optUser"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ style="width:65%"
|
|
|
|
|
+ placeholder="请输入操作人名"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="w_input">
|
|
|
|
|
+ <span class="textSpan">日志类型:</span>
|
|
|
|
|
+ <el-select v-model="body.type" placeholder="请选择日志类型" size="small" style="width:65%" clearable>
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in status"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ :label="item.name"
|
|
|
|
|
+ :value="item.name"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="flex">
|
|
|
|
|
+ <!-- 时间范围筛选 -->
|
|
|
<div class="w_date">
|
|
<div class="w_date">
|
|
|
<span class="textSpan">时间范围:</span>
|
|
<span class="textSpan">时间范围:</span>
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
- v-model="callbackTimeEnd"
|
|
|
|
|
|
|
+ v-model="callbackTime"
|
|
|
size="small"
|
|
size="small"
|
|
|
type="datetimerange"
|
|
type="datetimerange"
|
|
|
range-separator="至"
|
|
range-separator="至"
|
|
|
- style="width:40%"
|
|
|
|
|
|
|
+ style="width:80%"
|
|
|
@change="oncheckTimeStart"
|
|
@change="oncheckTimeStart"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
:default-time="['00:00:00', '23:59:59']"
|
|
:default-time="['00:00:00', '23:59:59']"
|
|
|
start-placeholder="开始日期"
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
end-placeholder="结束日期"
|
|
|
-
|
|
|
|
|
>
|
|
>
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
- <el-button type="primary" plain @click="getData()">查询</el-button>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <el-button type="primary" plain @click="handleSearch" icon="el-icon-search"
|
|
|
|
|
+ >查询</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 表格 -->
|
|
<!-- 表格 -->
|
|
@@ -37,64 +69,42 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- label="操作人"
|
|
|
|
|
- width="150"
|
|
|
|
|
|
|
+ label="创建时间"
|
|
|
|
|
+ width="180"
|
|
|
align="center"
|
|
align="center"
|
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
|
>
|
|
>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <!-- <span>{{ scope.row.customerName }}</span> -->
|
|
|
|
|
- <el-button type="text" @click="hookLook(scope.row)">{{
|
|
|
|
|
- scope.row.customerName
|
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
|
+ <span>{{ scope.row.createTime }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
- <el-table-column label="类型" align="center" show-overflow-tooltip>
|
|
|
|
|
|
|
+ <el-table-column label="操作人" align="center" show-overflow-tooltip width="120">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-tag v-if="scope.row.status === 1">正常</el-tag>
|
|
|
|
|
- <el-tag v-if="scope.row.status === 2" type="warning">暂停</el-tag>
|
|
|
|
|
|
|
+ <span>{{ scope.row.optUser }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
- <el-table-column label="描述" align="center" show-overflow-tooltip>
|
|
|
|
|
|
|
+ <el-table-column label="操作信息" align="center" show-overflow-tooltip width="180">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="productLook(scope.row)">{{
|
|
|
|
|
- scope.row.shorterName
|
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
|
+ <span>{{ scope.row.optInfo}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
- <el-table-column label="操作" align="center" show-overflow-tooltip>
|
|
|
|
|
|
|
+ <el-table-column label="接口描述" align="center" show-overflow-tooltip width="180">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row.balance }}</span>
|
|
|
|
|
|
|
+ <span>{{ scope.row.interfaceDesc }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
- <el-table-column label="操作" align="center" show-overflow-tooltip>
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <span>{{ scope.row.creditAmount }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
|
|
|
|
- <el-table-column label="当前费用" align="center" show-overflow-tooltip>
|
|
|
|
|
|
|
+ <el-table-column label="日志类型" align="center" show-overflow-tooltip clearable>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row.currentAmount }}</span>
|
|
|
|
|
|
|
+ <span>{{ scope.row.type }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
-
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- label="创建时间"
|
|
|
|
|
- width="150"
|
|
|
|
|
- align="center"
|
|
|
|
|
- show-overflow-tooltip
|
|
|
|
|
- >
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <span>{{ scope.row.createTime }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
-
|
|
|
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
+
|
|
|
<!-- 分页 -->
|
|
<!-- 分页 -->
|
|
|
<div class="pagination">
|
|
<div class="pagination">
|
|
|
<el-pagination
|
|
<el-pagination
|
|
@@ -113,51 +123,90 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import api from "@/api/userList";
|
|
|
|
|
|
|
+import api from "@/api/optLog.js";
|
|
|
export default {
|
|
export default {
|
|
|
- data(){
|
|
|
|
|
- return{
|
|
|
|
|
- callbackTimeEnd:'',
|
|
|
|
|
- loading:false,
|
|
|
|
|
- tableData:[],
|
|
|
|
|
- total:"",
|
|
|
|
|
- total:100,
|
|
|
|
|
- body:{
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ data() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ callbackTime: "",
|
|
|
|
|
+ loading: false,
|
|
|
|
|
+ tableData: [],
|
|
|
|
|
+ total: 30,
|
|
|
|
|
+ body: {
|
|
|
|
|
+ current: 1, //当前页
|
|
|
|
|
+ size: 10, //每页条数
|
|
|
|
|
+ optUser: "", //操作人
|
|
|
|
|
+
|
|
|
|
|
+ optInfo:"",//操作接口
|
|
|
|
|
+ type:"",
|
|
|
|
|
+ startTime:"",
|
|
|
|
|
+ endTime:"",
|
|
|
|
|
+ },
|
|
|
|
|
+ status:[
|
|
|
|
|
+ {id:1,name:"订单"},
|
|
|
|
|
+ {id:2,name:"产品"},
|
|
|
|
|
+ {id:3,name:"供应商"},
|
|
|
|
|
+ {id:4,name:"客户"},
|
|
|
|
|
+ ],
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+ created(){
|
|
|
|
|
+ this.getData();
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ handleSearch(){
|
|
|
|
|
+ // console.log(this.body.optInfo)
|
|
|
|
|
+ if(this.callbackTime==null){
|
|
|
|
|
+ //发送时间为空时清空 body 里的发送时间
|
|
|
|
|
+ this.callbackTime=""
|
|
|
|
|
+ this.body.startTime="";
|
|
|
|
|
+ this.body.endTime="";
|
|
|
|
|
+ }
|
|
|
|
|
+ this.getData();
|
|
|
|
|
+ },
|
|
|
//获取数据
|
|
//获取数据
|
|
|
- getData(){
|
|
|
|
|
- this.loading=true;
|
|
|
|
|
- api.index.Search(this.body).then(res=>{
|
|
|
|
|
- this.loading=false;
|
|
|
|
|
- console.log(res)
|
|
|
|
|
- this.tableData=res.data.data.records;
|
|
|
|
|
- this.total=res.data.data.total;
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ getData() {
|
|
|
|
|
+ this.loading = true;
|
|
|
|
|
+ api.Search(this.body).then(res => {
|
|
|
|
|
+ console.log(res,"rrr");
|
|
|
|
|
+ this.tableData = res.data.data.records;
|
|
|
|
|
+ this.total = res.data.data.total;
|
|
|
|
|
+ this.loading=false;
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
//页码
|
|
//页码
|
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
|
this.body.size = val;
|
|
this.body.size = val;
|
|
|
- this.getTenantList();
|
|
|
|
|
|
|
+ this.getData();
|
|
|
},
|
|
},
|
|
|
//换页
|
|
//换页
|
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
|
this.body.current = val;
|
|
this.body.current = val;
|
|
|
- this.getTenantList();
|
|
|
|
|
|
|
+ this.getData();
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
- oncheckTimeStart(){},
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ oncheckTimeStart() {
|
|
|
|
|
+ if(this.callbackTime!==null){
|
|
|
|
|
+ console.log(this.callbackTime);
|
|
|
|
|
+ this.body.startTime=this.callbackTime[0];
|
|
|
|
|
+ this.body.endTime=this.callbackTime[1];
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|
|
|
|
|
+.w_date {
|
|
|
|
|
+ width:50%;
|
|
|
|
|
+}
|
|
|
|
|
+.flex {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: row;
|
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
|
+}
|
|
|
|
|
+.w_input {
|
|
|
|
|
+ width: 38%;
|
|
|
|
|
+}
|
|
|
.el-card {
|
|
.el-card {
|
|
|
border: 0px solid #fff;
|
|
border: 0px solid #fff;
|
|
|
}
|
|
}
|
|
@@ -165,4 +214,4 @@ export default {
|
|
|
.edit_dev >>> .el-transfer-panel {
|
|
.edit_dev >>> .el-transfer-panel {
|
|
|
width: 250px;
|
|
width: 250px;
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|