From 2bd9b32aa6378ff6a841780628b844a42dbd8f01 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 31 十月 2025 16:39:29 +0800
Subject: [PATCH] 下载采集器功能
---
 src/views/standard/standardLibrary/index.vue                  |   44 +---------------------
 src/views/CNAS/resourceDemand/device/component/management.vue |   30 +++++++++++++++
 src/assets/logo/Windows.png                                   |    0 
 src/views/business/rawMaterialInspection/index.vue            |    4 ++
 src/views/business/materialOrder/customsInspectionOrder.vue   |    9 ++++
 5 files changed, 44 insertions(+), 43 deletions(-)
diff --git a/src/assets/logo/Windows.png b/src/assets/logo/Windows.png
new file mode 100644
index 0000000..bce7b73
--- /dev/null
+++ b/src/assets/logo/Windows.png
Binary files differ
diff --git a/src/views/CNAS/resourceDemand/device/component/management.vue b/src/views/CNAS/resourceDemand/device/component/management.vue
index 0dcc8a5..928ab1c 100644
--- a/src/views/CNAS/resourceDemand/device/component/management.vue
+++ b/src/views/CNAS/resourceDemand/device/component/management.vue
@@ -29,6 +29,7 @@
       <div>
         <el-button size="small" type="primary" @click="dialogVisible2 = true">鏂板</el-button>
         <el-button size="small" type="primary" @click="handleDownOne">瀵煎嚭</el-button>
+        <el-button size="small" type="primary" @click="showDownloadDialog">涓嬭浇閲囬泦鍣�</el-button>
       </div>
     </div>
 		<div class="table" v-show="!showData">
@@ -384,6 +385,30 @@
 			</span>
 		</el-dialog>
 		<dataAcquisitionConfig v-if="showData" :deviceId="deviceId" />
+    <!--    涓嬭浇閲囬泦鍣ㄥ脊妗�-->
+    <el-dialog
+      title="涓嬭浇閲囬泦鍣�"
+      :visible.sync="downloadCollectorVisible"
+      width="30%">
+      <el-row :gutter="12">
+        <el-col :span="12">
+          <el-card shadow="hover">
+            <div style="display: flex; justify-content: center; align-items: center;">
+              <div style="line-height: 12px"><el-image :src="imageSrc" fit="fill"></el-image></div>
+              <div><el-link href="http://192.168.21.53:7001/collector/32.7z" type="primary">Win32浣嶇偣姝や笅杞�</el-link></div>
+            </div>
+          </el-card>
+        </el-col>
+        <el-col :span="12">
+          <el-card shadow="hover">
+            <div style="display: flex; justify-content: center; align-items: center;">
+              <div style="line-height: 12px"><el-image :src="imageSrc" fit="fill"></el-image></div>
+              <div><el-link href="http://192.168.21.53:7001/collector/64.7z" type="primary">Win64浣嶇偣姝や笅杞�</el-link></div>
+            </div>
+          </el-card>
+        </el-col>
+      </el-row>
+    </el-dialog>
 	</div>
 </template>
 
@@ -416,6 +441,8 @@
 	},
 	data() {
 		return {
+      imageSrc: require('@/assets/logo/Windows.png'),
+      downloadCollectorVisible:false,
 			dateFormat: 'yyyy-MM-dd',
 			deviceId: '',
 			fileTypeOptions: [
@@ -569,6 +596,9 @@
 		this.clickSidebar(this.clickNodeVal)
 	},
 	methods: {
+    showDownloadDialog(){
+      this.downloadCollectorVisible = true
+    },
 		//鍒嗙被
 		handleNotification(cate) {
 			this.queryParams.largeCategory = cate
diff --git a/src/views/business/materialOrder/customsInspectionOrder.vue b/src/views/business/materialOrder/customsInspectionOrder.vue
index dfc8f5f..949c6b5 100644
--- a/src/views/business/materialOrder/customsInspectionOrder.vue
+++ b/src/views/business/materialOrder/customsInspectionOrder.vue
@@ -171,7 +171,8 @@
           </el-form>
         </div>
         <div style="margin-bottom: 6px;margin-top: 6px">
-          <el-button v-show="active==1" :disabled="sampleList.length === 3" size="small" type="primary" @click="handleSplitCountNum">鎷嗗垎</el-button>
+          <el-button v-show="active==1" size="small" type="primary" @click="handleSplitCountNum">鎷嗗垎</el-button>
+          <el-button v-show="active==1" :disabled="sampleList.length<=1" size="small" type="danger" @click="handleDeleteSplitCountNum">鍒犻櫎鎷嗗垎</el-button>
         </div>
       </div>
 
@@ -954,6 +955,12 @@
         this.templates = res.data
       })
     },
+    //鍒犻櫎鎷嗗垎琛�
+    handleDeleteSplitCountNum(){
+      this.count--;
+      this.sampleList.pop()
+      this.computationalPairing(this.sampleList.length)
+    },
     // 鎷嗗垎
     handleSplitCountNum () {
       this.sample.joinName = null
diff --git a/src/views/business/rawMaterialInspection/index.vue b/src/views/business/rawMaterialInspection/index.vue
index 33984bf..8d25540 100644
--- a/src/views/business/rawMaterialInspection/index.vue
+++ b/src/views/business/rawMaterialInspection/index.vue
@@ -220,6 +220,9 @@
         <el-row>
           <el-col :span="12">
             <el-checkbox v-model="pushToMes"><span style="font-weight: bold">鍚屾鍒癕ES</span></el-checkbox>
+<!--            <el-select v-model="splitOrderType" clearable size="mini" placeholder="璇烽�夋嫨閿�鍞鍗曞垎绫�">-->
+<!--              <el-option v-for="(item,index) in orderTypeList" :value="item.dictValue" :label="item.dictLabel" :key="index"></el-option>-->
+<!--            </el-select>-->
           </el-col>
           <el-col :span="12">
             <div style="width:100%;text-align: right;margin-bottom:5px">
@@ -301,6 +304,7 @@
   data() {
     // 杩欓噷瀛樻斁鏁版嵁
     return {
+      splitOrderType: null,
       declareBatchObj:{
         orderType:''
       },
diff --git a/src/views/standard/standardLibrary/index.vue b/src/views/standard/standardLibrary/index.vue
index 37c25a7..9f43cfc 100644
--- a/src/views/standard/standardLibrary/index.vue
+++ b/src/views/standard/standardLibrary/index.vue
@@ -20,8 +20,8 @@
         " @node-click="handleNodeClick"
                @node-drop="handleDrop">
         <div slot-scope="{ node, data }" class="custom-tree-node" style="width: calc(100% - 15px)">
-          <div style="display: flex;align-items: center;flex-wrap: nowrap;flex-direction: row;justify-content: space-between;">
-            <div style="width: calc(100% - 50px);text-overflow: ellipsis;white-space: nowrap;"
+          <div :title="data.label" style="display: flex;align-items: center;flex-wrap: nowrap;flex-direction: row;justify-content: space-between;">
+            <div style="width: calc(100% - 50px);white-space: nowrap;text-overflow: ellipsis;"
                  :style="`overflow:${(node.data.children === null || node.data.children === undefined)?'clip':'visible'}`"
             >
               <i :class="`node_i ${data.children != undefined
@@ -41,46 +41,6 @@
               </el-button>
             </div>
           </div>
-
-
-
-
-<!--          <div style="display: inline-block;width: calc(100% - 60px);text-overflow: ellipsis;white-space: nowrap;" :style="`overflow:${(node.data.children === null || node.data.children === undefined)?'clip':'visible'}`">-->
-<!--              <i :class="`node_i ${data.children != undefined-->
-<!--                ? data.code === '[1]'-->
-<!--                  ? 'el-icon-folder-opened'-->
-<!--                  : 'el-icon-folder'-->
-<!--                : 'el-icon-tickets'-->
-<!--                }`"></i>-->
-<!--              {{ data.label }}-->
-<!--          </div>-->
-<!--          <span v-if="(node.data.children === null || node.data.children === undefined)" style="text-align: right">-->
-<!--              <el-button style="width:20px" v-if="checkPermi(['standard:standardLibrary:delStandardTree'])" size="mini" type="text" @click.stop="editTreeName(node.data)">-->
-<!--                <i class="el-icon-edit"></i>-->
-<!--              </el-button>-->
-<!--              <el-button style="width:20px;margin-left: 0" size="mini" v-if="checkPermi(['standard:standardLibrary:delStandardTree'])" type="text" @click.stop="remove(node, data)">-->
-<!--                <i class="el-icon-delete"></i>-->
-<!--              </el-button>-->
-<!--          </span>-->
-<!--          <el-row style="width: 100%">-->
-<!--            <el-col :class="{ sort: node.level > 3 }" :span="19" :title="data.label" style="text-align: left">-->
-
-<!--            </el-col>-->
-<!--            <el-col v-if="-->
-<!--              checkPermi(['standard:standardLibrary:delStandardTree']) &&-->
-<!--              (node.data.children === null ||-->
-<!--                node.data.children === undefined)-->
-<!--            " :span="2" style="text-align: right">-->
-
-<!--            </el-col>-->
-<!--            <el-col v-if="-->
-<!--              checkPermi(['standard:standardLibrary:delStandardTree']) &&-->
-<!--              (node.data.children === null ||-->
-<!--                node.data.children === undefined)-->
-<!--            " :span="2" style="text-align: right">-->
-
-<!--            </el-col>-->
-<!--          </el-row>-->
         </div>
       </el-tree>
     </div>
--
Gitblit v1.9.3