From f1f72f7188a09e88f9ffbb8d7c180f474987b96b Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期三, 22 五月 2024 23:40:53 +0800
Subject: [PATCH] 工位文件
---
src/views/dnc/station-file/Log.vue | 68 ++++++++++++++++++++++
src/views/dnc/station-file/index.vue | 41 ++++++++++++-
src/views/dnc/station-file/File.vue | 19 ++++++
3 files changed, 125 insertions(+), 3 deletions(-)
diff --git a/src/views/dnc/station-file/File.vue b/src/views/dnc/station-file/File.vue
new file mode 100644
index 0000000..b5e3240
--- /dev/null
+++ b/src/views/dnc/station-file/File.vue
@@ -0,0 +1,19 @@
+<!--
+ * @Date: 2024-05-22 23:37:07
+ * @LastEditors: Sneed
+ * @LastEditTime: 2024-05-22 23:37:12
+ * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/dnc/station-file/File.vue
+-->
+<template>
+ <div>
+ 宸ヤ綅鏂囦欢
+ </div>
+</template>
+
+<script>
+export default {
+
+}
+</script>
+
+<style lang="scss" scoped></style>
\ No newline at end of file
diff --git a/src/views/dnc/station-file/Log.vue b/src/views/dnc/station-file/Log.vue
new file mode 100644
index 0000000..4dabb06
--- /dev/null
+++ b/src/views/dnc/station-file/Log.vue
@@ -0,0 +1,68 @@
+<!--
+ * @Date: 2024-05-22 23:18:15
+ * @LastEditors: Sneed
+ * @LastEditTime: 2024-05-22 23:35:38
+ * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/dnc/station-file/Log.vue
+-->
+<template>
+ <el-container>
+ <el-header>
+ <el-input v-model="params.name" style="width: 240px;margin-left: 8px;" placeholder="Please input">
+ <template #prefix>鏂囦欢鍚嶇О</template>
+ </el-input>
+ <el-select v-model="params.typeId" style="width: 240px;margin-left: 8px;">
+ <template #prefix>
+ 鏂囦欢绫诲瀷
+ </template>
+ <el-option v-for="item in options.typeId" :key="item.value" :label="item.label" :value="item.value" />
+ </el-select>
+ <el-date-picker style="width: 260px;flex-grow: 0;margin-left: 8px;" v-model="params.name" type="daterange"
+ range-separator="-" start-placeholder="鎿嶄綔寮�濮嬫椂闂�" end-placeholder="鎿嶄綔缁撴潫鏃堕棿">
+ </el-date-picker>
+ <el-select v-model="params.typeId" style="width: 240px;margin-left: 8px;margin-right: auto;">
+ <template #prefix>
+ 鎿嶄綔绫诲瀷
+ </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"
+ :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>
+ <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>
+ </scTable>
+ </el-main>
+ </el-container>
+</template>
+
+<script>
+export default {
+ data() {
+ return {
+ params: {
+ name: ''
+ },
+ options: {
+ typeId: []
+ }
+ }
+ },
+}
+</script>
+
+<style lang="scss" scoped></style>
\ No newline at end of file
diff --git a/src/views/dnc/station-file/index.vue b/src/views/dnc/station-file/index.vue
index 8e41c2d..dcf3023 100644
--- a/src/views/dnc/station-file/index.vue
+++ b/src/views/dnc/station-file/index.vue
@@ -1,20 +1,55 @@
<!--
* @Date: 2024-05-20 21:43:10
* @LastEditors: Sneed
- * @LastEditTime: 2024-05-20 21:44:19
+ * @LastEditTime: 2024-05-22 23:37:00
* @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/dnc/station-file/index.vue
-->
<template>
<el-main style="height: 100%;">
<el-card shadow="never" style="height: 100%;" body-style="height: 100%">
- 宸ヤ綅鏂囦欢
+ <el-container>
+ <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>
+ </el-main>
+ <!-- <el-footer>
+ <el-button type="primary" round @click="addFolder">鏂板鏂囦欢澶�</el-button>
+ </el-footer> -->
+ </el-container>
+ </el-aside>
+ <el-main>
+ <el-tabs v-model="activeName" type="card" class="demo-tabs" @tab-click="handleClick">
+ <el-tab-pane label="宸ヤ綅鏂囦欢" name="1">
+ <File></File>
+ </el-tab-pane>
+ <el-tab-pane label="鎿嶄綔鏃ュ織" name="2">
+ <Log />
+ </el-tab-pane>
+ </el-tabs>
+ </el-main>
+ </el-container>
</el-card>
</el-main>
</template>
<script>
+import Log from './Log.vue'
+import File from './File.vue'
export default {
-
+ components: {
+ Log,
+ File
+ }
}
</script>
--
Gitblit v1.9.3