日志数据格式
Showing
1 changed file
with
17 additions
and
0 deletions
... | @@ -40,12 +40,23 @@ | ... | @@ -40,12 +40,23 @@ |
40 | </div> | 40 | </div> |
41 | </el-dialog> | 41 | </el-dialog> |
42 | 42 | ||
43 | <el-dialog v-dialogDrag title="操作数据" width="69%" :visible.sync="operationDataVisible"> | ||
44 | <div style="min-height: 300px;width: 100%"> | ||
45 | {{currentOperationData}} | ||
46 | </div> | ||
47 | </el-dialog> | ||
48 | |||
43 | <div class="log-table"> | 49 | <div class="log-table"> |
44 | <el-table :data="tableData"> | 50 | <el-table :data="tableData"> |
45 | <el-table-column type="index" width="80" align="center" label="序号"> | 51 | <el-table-column type="index" width="80" align="center" label="序号"> |
46 | </el-table-column> | 52 | </el-table-column> |
47 | <el-table-column prop="operationtype" align="center" label="操作类型"> | 53 | <el-table-column prop="operationtype" align="center" label="操作类型"> |
48 | </el-table-column> | 54 | </el-table-column> |
55 | <el-table-column align="center" label="操作数据"> | ||
56 | <template slot-scope="scope"> | ||
57 | <el-button type="text" class="operatorBtn" @click="openDetail(scope.row)">打开</el-button> | ||
58 | </template> | ||
59 | </el-table-column> | ||
49 | <el-table-column prop="username" align="center" width="100" label="操作人"> | 60 | <el-table-column prop="username" align="center" width="100" label="操作人"> |
50 | </el-table-column> | 61 | </el-table-column> |
51 | <el-table-column prop="addtime" align="center" label="操作时间"> | 62 | <el-table-column prop="addtime" align="center" label="操作时间"> |
... | @@ -69,6 +80,7 @@ | ... | @@ -69,6 +80,7 @@ |
69 | tableData:[], | 80 | tableData:[], |
70 | errorLog:[], | 81 | errorLog:[], |
71 | concreteLog:'', | 82 | concreteLog:'', |
83 | currentOperationData:'', | ||
72 | 84 | ||
73 | total: 0, | 85 | total: 0, |
74 | pageNo: 1, | 86 | pageNo: 1, |
... | @@ -76,6 +88,7 @@ | ... | @@ -76,6 +88,7 @@ |
76 | 88 | ||
77 | outerVisible: false, | 89 | outerVisible: false, |
78 | innerVisible: false, | 90 | innerVisible: false, |
91 | operationDataVisible:false, | ||
79 | 92 | ||
80 | pickerOptions: { | 93 | pickerOptions: { |
81 | shortcuts: [{ | 94 | shortcuts: [{ |
... | @@ -150,6 +163,10 @@ | ... | @@ -150,6 +163,10 @@ |
150 | reset(){ | 163 | reset(){ |
151 | this.startValue = ""; | 164 | this.startValue = ""; |
152 | this.endValue = ""; | 165 | this.endValue = ""; |
166 | }, | ||
167 | openDetail(data){ | ||
168 | this.operationDataVisible = true; | ||
169 | this.currentOperationData = data.operationJson; | ||
153 | } | 170 | } |
154 | }, | 171 | }, |
155 | mounted() { | 172 | mounted() { | ... | ... |
-
Please register or sign in to post a comment