From 0f59aa5500621364d83b2a26bfaa69b7840461f5 Mon Sep 17 00:00:00 2001
From: lzhe <181968431@qq.com>
Date: 星期一, 03 六月 2024 23:47:46 +0800
Subject: [PATCH] 1
---
src/views/dnc/station-file/Log.vue | 57 +++++++++++++++++++++++++++++++++++++++------------------
1 files changed, 39 insertions(+), 18 deletions(-)
diff --git a/src/views/dnc/station-file/Log.vue b/src/views/dnc/station-file/Log.vue
index 4dabb06..9c36765 100644
--- a/src/views/dnc/station-file/Log.vue
+++ b/src/views/dnc/station-file/Log.vue
@@ -1,7 +1,7 @@
<!--
* @Date: 2024-05-22 23:18:15
* @LastEditors: Sneed
- * @LastEditTime: 2024-05-22 23:35:38
+ * @LastEditTime: 2024-05-26 16:04:41
* @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/dnc/station-file/Log.vue
-->
<template>
@@ -26,25 +26,18 @@
<el-option v-for="item in options.typeId" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</el-header>
- <el-main>
- <scTable highlight-current-row @dataChange="dataChange" @row-click="rowClick" ref="table" :params="params"
+ <el-main >
+ <scTable v-if="id" highlight-current-row @dataChange="dataChange" @row-click="rowClick" ref="table" :params="params"
:apiObj="apiObj" @selection-change="selectionChange" stripe>
- <el-table-column type="selection" width="50"></el-table-column>
- <el-table-column label="鏂囦欢鍚嶇О" prop="name">
+ <el-table-column label="鏂囦欢鍚嶇О" prop="fileName">
</el-table-column>
- <el-table-column label="鏂囦欢璺緞" prop="allPathName"></el-table-column>
- <el-table-column label="澶у皬" prop="contentLength"></el-table-column>
- <el-table-column label="鏂囦欢绫诲瀷" prop="suffix"></el-table-column>
- <el-table-column label="鏇存柊鏃堕棿" prop="updateTime"></el-table-column>
- <el-table-column label="鎿嶄綔" fixed="right" align="right" width="160">
- <template #default="scope">
- <el-button-group>
- <el-button text type="primary" size="small"
- @click="table_edit(scope.row, scope.$index)">缂栬緫</el-button>
- <el-button text type="primary" size="small" @click="del([scope.row])">鍒犻櫎</el-button>
- </el-button-group>
- </template>
- </el-table-column>
+ <el-table-column label="鐗堟湰" prop="version"></el-table-column>
+ <el-table-column label="鎿嶄綔浜哄憳" prop="operatorName"></el-table-column>
+ <el-table-column label="鎿嶄綔绫诲瀷" prop="operationTypeDesc"></el-table-column>
+ <el-table-column label="鎿嶄綔缁撴灉" prop="operationResponse"></el-table-column>
+ <el-table-column label="婧愯矾寰�" prop="sourcePathName"></el-table-column>
+ <el-table-column label="鐩爣璺緞" prop="targetPathName"></el-table-column>
+ <el-table-column label="鎿嶄綔鏃堕棿" prop="operationTime"></el-table-column>
</scTable>
</el-main>
</el-container>
@@ -52,6 +45,18 @@
<script>
export default {
+ props: {
+ id: {
+ type: String
+ }
+ },
+ watch: {
+ id(val) {
+ this.$nextTick(() => {
+ val && this.$refs?.table?.reload()
+ })
+ }
+ },
data() {
return {
params: {
@@ -59,9 +64,25 @@
},
options: {
typeId: []
+ },
+ apiObj: {
+ get: async (data) => {
+ let params = {
+ current: data.current,
+ size: data.size
+ }
+ return await this.$HTTP.post(`/api/blade-dnc/operation-file/page/${this.id}`, {}, { params,data:this.params }).then(res => {
+ return res
+ })
+ }
}
}
},
+ methods: {
+ dataChange (data) {
+ console.log(data)
+ }
+ }
}
</script>
--
Gitblit v1.9.3