|
@@ -2,7 +2,12 @@
|
|
|
<div>
|
|
|
<div class="container">
|
|
|
<div class="sleBox">
|
|
|
- <el-select v-model="value" style="margin-right:10px" clearable placeholder="类型">
|
|
|
+ <el-select
|
|
|
+ v-model="value"
|
|
|
+ style="margin-right: 10px"
|
|
|
+ clearable
|
|
|
+ placeholder="类型"
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="item in options"
|
|
|
:key="item.value"
|
|
@@ -11,15 +16,20 @@
|
|
|
:disabled="item.disabled"
|
|
|
/>
|
|
|
</el-select>
|
|
|
- <el-input v-model="input" clearable placeholder="名称检索" style="width:200px;margin-right:10px"/>
|
|
|
+ <el-input
|
|
|
+ v-model="input"
|
|
|
+ clearable
|
|
|
+ placeholder="名称检索"
|
|
|
+ style="width: 200px; margin-right: 10px"
|
|
|
+ />
|
|
|
<el-button type="primary" @click="search">确定</el-button>
|
|
|
</div>
|
|
|
<el-table :data="tableData" height="700" stripe style="width: 100%">
|
|
|
- <el-table-column prop="ruleName" label="规则名称"> </el-table-column>
|
|
|
- <el-table-column prop="ruleType" label="规则类型"> </el-table-column>
|
|
|
- <el-table-column prop="stationName" label="场站名称"> </el-table-column>
|
|
|
- <el-table-column prop="model" label="风机型号"> </el-table-column>
|
|
|
- <el-table-column label="更改内容" width="600">
|
|
|
+ <el-table-column prop="ruleName" label="规则名称" width="220"/>
|
|
|
+ <el-table-column prop="ruleType" label="规则类型" width="120" />
|
|
|
+ <el-table-column prop="stationName" label="场站名称" width="140" />
|
|
|
+ <el-table-column prop="modelId" label="风机型号" width="160" />
|
|
|
+ <el-table-column label="更改内容">
|
|
|
<template #default="scope">
|
|
|
<div v-for="item in scope.row.infoList" :key="item">
|
|
|
{{ item.fieldName }} :更改前: {{ item.beforValue }}
|
|
@@ -28,9 +38,9 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="updateTime" label="操作时间"> </el-table-column>
|
|
|
- <el-table-column prop="updateType" label="操作类型"> </el-table-column>
|
|
|
- <el-table-column prop="updateUser" label="操作人"> </el-table-column>
|
|
|
+ <el-table-column prop="updateTimeName" label="操作时间" width="150" />
|
|
|
+ <el-table-column prop="updateType" label="操作类型" width="100" />
|
|
|
+ <el-table-column prop="updateUser" label="操作人" width="100" />
|
|
|
</el-table>
|
|
|
<div class="pagination">
|
|
|
<el-pagination
|
|
@@ -78,12 +88,19 @@ let options = ref([
|
|
|
},
|
|
|
]);
|
|
|
//
|
|
|
-const search = () =>{
|
|
|
- logsList()
|
|
|
-}
|
|
|
+const search = () => {
|
|
|
+ logsList();
|
|
|
+};
|
|
|
const logsList = async () => {
|
|
|
- const { data } = await fetchruleventLogs(query.page, query.limit,input.value,value.value);
|
|
|
- console.warn(data);
|
|
|
+ const { data } = await fetchruleventLogs(
|
|
|
+ query.page,
|
|
|
+ query.limit,
|
|
|
+ input.value,
|
|
|
+ value.value
|
|
|
+ );
|
|
|
+ data.records.forEach((ele) => {
|
|
|
+ ele.updateTimeName = dayjs(ele.updateTime).format("YYYY-MM-DD:HH:mm:ss");
|
|
|
+ });
|
|
|
query.pageTotal = data.total;
|
|
|
tableData.value = data.records;
|
|
|
};
|
|
@@ -92,10 +109,6 @@ const handlePageChange = (val) => {
|
|
|
query.page = val;
|
|
|
logsList();
|
|
|
};
|
|
|
-// 时间格式化
|
|
|
-const createdtime = (val) => {
|
|
|
- return dayjs(val).format("YYYY-MM-DD:HH:mm:ss");
|
|
|
-};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.container {
|