| | |
| | | <!-- |
| | | * @Date: 2024-05-22 23:37:07 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-05-22 23:37:12 |
| | | * @LastEditTime: 2024-05-26 15:42:35 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/dnc/station-file/File.vue |
| | | --> |
| | | <template> |
| | | <div> |
| | | 工位文件 |
| | | </div> |
| | | <el-container> |
| | | <el-header> |
| | | <el-button type="primary">归档</el-button> |
| | | </el-header> |
| | | <el-main> |
| | | <h2>程序</h2> |
| | | <el-table :data="tableData" style="width: 100%"> |
| | | <el-table-column label="文件名称" prop="" width=""></el-table-column> |
| | | <el-table-column label="版本" prop="" width=""></el-table-column> |
| | | <el-table-column label="大小" prop="" width=""></el-table-column> |
| | | </el-table> |
| | | <h2>文件</h2> |
| | | <el-table :data="tableData" style="width: 100%"> |
| | | <el-table-column label="文件名称" prop="" width=""></el-table-column> |
| | | <el-table-column label="版本" prop="" width=""></el-table-column> |
| | | <el-table-column label="大小" prop="" width=""></el-table-column> |
| | | </el-table> |
| | | </el-main> |
| | | </el-container> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | <!-- |
| | | * @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-select> |
| | | </el-header> |
| | | <el-main> |
| | | <scTable highlight-current-row @dataChange="dataChange" @row-click="rowClick" ref="table" :params="params" |
| | | <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> |
| | | |
| | |
| | | <!-- |
| | | * @Date: 2024-05-20 21:43:10 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-05-22 23:37:00 |
| | | * @LastEditTime: 2024-05-26 16:02:09 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/dnc/station-file/index.vue |
| | | --> |
| | | <template> |
| | |
| | | <el-aside width="200px"> |
| | | <el-container> |
| | | <el-main> |
| | | <el-tree default-expand-all ref="tree" node-key="id" :data="treeData" :props="{ |
| | | label: 'name', |
| | | }" @node-click="nodeClick" highlight-current :current-node-key="selectNode.id"> |
| | | <template #default="{ node, data }"> |
| | | <span :class="data.isGroup ? 'active' : ''" class="custom-tree-node"> |
| | | <span>{{ |
| | | node.label || data.code }}</span> |
| | | </span> |
| | | </template> |
| | | </el-tree> |
| | | <MYTree :props="props" v-model="treeChecked" @loaded="query"></MYTree> |
| | | </el-main> |
| | | <!-- <el-footer> |
| | | <el-button type="primary" round @click="addFolder">新增文件夹</el-button> |
| | |
| | | <File></File> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="操作日志" name="2"> |
| | | <Log /> |
| | | <Log :id="id"/> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </el-main> |
| | |
| | | <script> |
| | | import Log from './Log.vue' |
| | | import File from './File.vue' |
| | | import MYTree from '@/views/mdc/MYTree.vue' |
| | | export default { |
| | | components: { |
| | | Log, |
| | | File |
| | | File, |
| | | MYTree |
| | | }, |
| | | data() { |
| | | return { |
| | | id: '', |
| | | activeName: '2', |
| | | treeChecked: {}, |
| | | props: { |
| | | disabled: function (data,node) { |
| | | return !data.ftpCatalogue |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | watch: { |
| | | treeChecked(val) { |
| | | console.log(val,'>>>>>>') |
| | | this.id = val?.[0] |
| | | } |
| | | }, |
| | | methods: { |
| | | query () { |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <!-- |
| | | * @Date: 2024-04-18 19:53:35 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-23 23:09:18 |
| | | * @LastEditTime: 2024-05-26 15:49:11 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/MYTree.vue |
| | | --> |
| | | <template> |
| | |
| | | getAll: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | props: { |
| | | type: Object, |
| | | default: () => { |
| | | return {} |
| | | } |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | disabled: 'disabled', |
| | | class: (data, node) => { |
| | | return this.value.includes(data.id) ? 'active' : '' |
| | | } |
| | | }, |
| | | ...this.props |
| | | }, |
| | | data: [], |
| | | value: [], |
| | |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | renderContent(h, { data }) { |
| | | renderContent(h, { data,node }) { |
| | | let img = data.groupTag == 'fms_beltline' |
| | | return h('a', { |
| | | disabled: data.disabled |
| | | class: { |
| | | disabled: this.props.disabled ? this.props.disabled(data,node) : data.disabled |
| | | }, |
| | | disabled: this.props.disabled ? this.props.disabled(data,node) : data.disabled |
| | | }, |
| | | img ? h('img', { |
| | | src: pmsPng |
| | |
| | | this.$nextTick(() => { |
| | | this.currentNodeKey = this.firstWorkKey |
| | | this.$emit('loaded', this.firstWorkKey) |
| | | this.$emit('request', data) |
| | | }) |
| | | } |
| | | }) |
| | |
| | | .active .el-tree-node__content { |
| | | background: var(--el-color-primary) !important; |
| | | } |
| | | a.disabled { |
| | | color: #ccc; |
| | | } |
| | | </style> |