| | |
| | | <!-- |
| | | * @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> |
| | |
| | | <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> |
| | |
| | | |
| | | <script> |
| | | export default { |
| | | props: { |
| | | id: { |
| | | type: String |
| | | } |
| | | }, |
| | | watch: { |
| | | id(val) { |
| | | this.$nextTick(() => { |
| | | val && this.$refs?.table?.reload() |
| | | }) |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | params: { |
| | |
| | | }, |
| | | 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> |
| | | |