From 330375a684720f1801424028d4f592477b6d73d9 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期二, 07 十一月 2023 10:11:33 +0800
Subject: [PATCH] 提交 workshop

---
 src/views/eam/modules/sysFileName/SysFileNameModal.vue |   79 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 79 insertions(+), 0 deletions(-)

diff --git a/src/views/eam/modules/sysFileName/SysFileNameModal.vue b/src/views/eam/modules/sysFileName/SysFileNameModal.vue
new file mode 100644
index 0000000..04fa1d1
--- /dev/null
+++ b/src/views/eam/modules/sysFileName/SysFileNameModal.vue
@@ -0,0 +1,79 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="width"
+    :visible="visible"
+    switchFullscreen
+    @ok="handleOk"
+    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
+    @cancel="handleCancel"
+    cancelText="鍏抽棴"
+  >
+    <sys-file-name-form
+      ref="realForm"
+      @ok="submitCallback"
+      :disabled="disableSubmit"
+    ></sys-file-name-form>
+  </j-modal>
+</template>
+
+<script>
+
+import SysFileNameForm from './SysFileNameForm'
+export default {
+  name: 'SysFileNameModal',
+  components: {
+    SysFileNameForm
+  },
+  props: {
+    //琛ㄥ崟绂佺敤
+    disabled: {
+      type: Boolean,
+      default: false,
+      required: false
+    },
+  },
+  data() {
+    return {
+      title: '',
+      width: 650,
+      visible: false,
+      disableSubmit: false
+    }
+  },
+  methods: {
+    add() {
+      this.visible = true
+      this.$nextTick(() => {
+        this.$refs.realForm.add();
+      })
+    },
+    edit(record) {
+      this.visible = true
+      this.$nextTick(() => {
+        this.$refs.realForm.edit(record);
+      })
+    },
+    revise(record) {
+      this.visible = true
+      this.$nextTick(() => {
+        this.$refs.realForm.revise(record);
+      })
+    },
+    close() {
+      this.$emit('close');
+      this.visible = false;
+    },
+    handleOk() {
+      this.$refs.realForm.submitForm();
+    },
+    submitCallback() {
+      this.$emit('ok');
+      this.visible = false;
+    },
+    handleCancel() {
+      this.close()
+    }
+  }
+}
+</script>
\ No newline at end of file

--
Gitblit v1.9.3