From 532013743f2c6f9f98514ca0e39c9218cb3a9dfc Mon Sep 17 00:00:00 2001
From: lzhe <181968431@qq.com>
Date: 星期一, 20 五月 2024 23:51:42 +0800
Subject: [PATCH] Merge branch 'master' of http://www.beijingsoft.cn:9090/r/smart-web
---
src/views/dnc/station-file/index.vue | 21 +++++
src/views/dnc/factory-file/index.vue | 95 +++++++++++++++++++++++
src/views/dnc/file/admin/index.vue | 121 ++++++++++++++++++++++++++++++
3 files changed, 237 insertions(+), 0 deletions(-)
diff --git a/src/views/dnc/factory-file/index.vue b/src/views/dnc/factory-file/index.vue
new file mode 100644
index 0000000..0d0427a
--- /dev/null
+++ b/src/views/dnc/factory-file/index.vue
@@ -0,0 +1,95 @@
+<!--
+ * @Date: 2024-05-20 21:43:10
+ * @LastEditors: Sneed
+ * @LastEditTime: 2024-05-20 21:57:06
+ * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/dnc/factory-file/index.vue
+-->
+<template>
+ <el-main style="height: 100%;">
+ <el-card shadow="never" style="height: 100%;" body-style="height: 100%">
+ <el-container>
+ <el-header>
+ <el-upload style="margin-left: 8px;" :show-file-list="false" class="upload"
+ action="/api/blade-resource/oss/endpoint/put-file">
+ <el-button type="primary">涓婁紶鏂囦欢</el-button>
+ </el-upload>
+ <el-button style="margin-left: 8px;margin-right: auto;" type="danger" plain
+ :disabled="selection.length == 0" @click="del(selection)">鍒犻櫎</el-button>
+ </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">
+ <!-- <template #default="scope">
+ <el-icon style="margin-right: 4px;">
+ <el-icon-folder v-if="scope.row.fileType === 1" />
+ <el-icon-document v-else />
+ </el-icon>
+ <a v-if="scope.row.fileType === 1" @click="goCurrent(scope.row)"
+ style="color: var(--el-color-primary);cursor: pointer;">{{ scope.row.name }}</a>
+ <a v-else @click="viewHis(scope.row)"
+ style="color: var(--el-color-primary);cursor: pointer;">{{ scope.row.name }}</a>
+ </template> -->
+ </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="鍒涘缓鏃堕棿" 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>
+ </el-card>
+ </el-main>
+</template>
+
+<script>
+export default {
+ data() {
+ return {
+ selection: [],
+ params: {},
+ apiObj: {
+ get: async (data) => {
+ let params = {
+ ...data,
+ ...this.params
+ }
+ return await this.$HTTP.get(`/api/blade-dnc/dnc-factory-file/page`, {}, { params }).then(res => {
+ return res
+ })
+ }
+ },
+ }
+ },
+ methods: {
+ selectionChange(selection) {
+ this.selection = selection
+ },
+ del(selection) {
+
+ },
+ table_edit() {
+
+ },
+ rowClick() {
+
+ },
+ dataChange() {
+
+ }
+ }
+}
+</script>
+
+<style lang="scss" scoped></style>
\ No newline at end of file
diff --git a/src/views/dnc/file/admin/index.vue b/src/views/dnc/file/admin/index.vue
new file mode 100644
index 0000000..f0721d2
--- /dev/null
+++ b/src/views/dnc/file/admin/index.vue
@@ -0,0 +1,121 @@
+<!--
+ * @Date: 2024-05-20 21:43:10
+ * @LastEditors: Sneed
+ * @LastEditTime: 2024-05-20 22:18:51
+ * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/dnc/file/admin/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-tree default-expand-all ref="group" node-key="id" :data="treeData" :props="{
+ label: 'name',
+ }" @node-click="nodeClick" highlight-current :current-node-key="selectNode.id"></el-tree>
+ </el-aside>
+ <el-container>
+ <el-header>
+ <el-button style="margin-left: 8px;margin-right: auto;" type="danger" plain
+ :disabled="selection.length == 0" @click="del(selection)">鍒犻櫎</el-button>
+ </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="鍒涘缓鏃堕棿" 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>
+ </el-container>
+
+ </el-card>
+ </el-main>
+</template>
+
+<script>
+export default {
+ data() {
+ return {
+ selection: [],
+ selectNode: {
+ id: ''
+ },
+ treeData: [],
+ params: {
+ startTime: '',
+ endTime: '',
+ keywords: '',
+ workstationId: ''
+ },
+ apiObj: {
+ get: async (data) => {
+ let params = {
+ current: data.current,
+ size: data.size
+ }
+ let data1 = {
+ arId: this.selectNode.id,
+ ...this.params
+ }
+ return await this.$HTTP.post(`/api/blade-dnc/dnc-archive-directory-file/page`, {}, { params, data: data1 }).then(res => {
+ return res
+ })
+ }
+ },
+ }
+ },
+ mounted() {
+ this.init()
+ },
+ methods: {
+ init() {
+ this.$HTTP.get(`/api/blade-dnc/dnc-archive-directory/list?parentId=`).then(res => {
+ console.log(res.data, '>>>>>')
+ this.treeData = res.data
+ this.nodeClick(res.data[0])
+ })
+ },
+ nodeClick(node) {
+ if (!node) return
+ this.selectNode = node
+ console.log(node.id)
+ this.$nextTick(() => {
+ this.$refs?.table?.reload()
+ })
+ },
+ selectionChange(selection) {
+ this.selection = selection
+ },
+ del(selection) {
+
+ },
+ table_edit() {
+
+ },
+ rowClick() {
+
+ },
+ dataChange() {
+
+ }
+ }
+}
+</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
new file mode 100644
index 0000000..8e41c2d
--- /dev/null
+++ b/src/views/dnc/station-file/index.vue
@@ -0,0 +1,21 @@
+<!--
+ * @Date: 2024-05-20 21:43:10
+ * @LastEditors: Sneed
+ * @LastEditTime: 2024-05-20 21:44:19
+ * @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-card>
+ </el-main>
+</template>
+
+<script>
+export default {
+
+}
+</script>
+
+<style lang="scss" scoped></style>
\ No newline at end of file
--
Gitblit v1.9.3