From 3432c3100ccb4c3b78dc0a5f7f242bdcda503a63 Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期三, 18 六月 2025 10:45:49 +0800
Subject: [PATCH] 1、终端程序呼叫页面呼叫原因组件由输入框改为多行文本域 2、设备管理页面新增设备图片字段同时在新增和编辑设备时添加设备图片 3、设备监控以及设备看板页面新增故障状态同时替换设备图片为设备管理页面中维护的设备图片而不再是设备所属设备类型图片以及三色灯增加故障状态灯

---
 src/views/dnc/base/modules/ProductStructure/Cutter/CutterModal.vue |   78 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 78 insertions(+), 0 deletions(-)

diff --git a/src/views/dnc/base/modules/ProductStructure/Cutter/CutterModal.vue b/src/views/dnc/base/modules/ProductStructure/Cutter/CutterModal.vue
new file mode 100644
index 0000000..14533d6
--- /dev/null
+++ b/src/views/dnc/base/modules/ProductStructure/Cutter/CutterModal.vue
@@ -0,0 +1,78 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="width"
+    :visible="visible"
+    switchFullscreen
+    :maskClosable="false"
+    @ok="handleOk"
+    @cancel="handleCancel"
+    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
+    cancelText="鍏抽棴">
+    <CutterModalForm ref="realForm" @ok="submitCallback" :disableSubmit="disableSubmit"/>
+  </j-modal>
+</template>
+
+<script>
+import CutterModalForm from './CutterModalForm.vue'
+
+export default {
+  name: 'CutterModal',
+  components: {
+    CutterModalForm
+  },
+  props: {
+    currentTreeNodeInfo: {
+      type: Object
+    }
+  },
+  data() {
+    return {
+      title: '',
+      width: 700,
+      visible: false,
+      disableSubmit: false
+    }
+  },
+  methods: {
+    // 娣诲姞鎵�鐢ㄥ垁鍏�
+    handleCutterAdd() {
+      const { attributionId, attributionType, docId } = this.currentTreeNodeInfo
+      this.visible = true
+      this.$nextTick(() => {
+        if (this.$refs.realForm) {
+          this.$refs.realForm.add({
+            attributionId: attributionId,
+            attributionType: attributionType,
+            docId: docId
+          })
+        }
+      })
+    },
+
+    // 缂栬緫鍒�鍏蜂俊鎭�
+    handleCutterEdit(record) {
+      this.visible = true
+      this.$nextTick(() => {
+        if (this.$refs.realForm) {
+          this.$refs.realForm.edit({ ...record })
+        }
+      })
+    },
+
+    handleOk() {
+      this.$refs.realForm.submitForm()
+    },
+
+    submitCallback() {
+      this.$emit('submitSuccess')
+      this.visible = false
+    },
+
+    handleCancel() {
+      this.$emit('close')
+      this.visible = false
+    }
+  }
+}
+</script>
\ No newline at end of file

--
Gitblit v1.9.3