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/system/modules/SecretModel.vue |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 59 insertions(+), 0 deletions(-)

diff --git a/src/views/system/modules/SecretModel.vue b/src/views/system/modules/SecretModel.vue
new file mode 100644
index 0000000..361b014
--- /dev/null
+++ b/src/views/system/modules/SecretModel.vue
@@ -0,0 +1,59 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="width"
+    :visible="visible"
+    switchFullscreen
+    @ok="handleOk"
+    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
+    @cancel="handleCancel"
+    cancelText="鍏抽棴">
+    <secret-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></secret-form>
+  </j-modal>
+</template>
+
+<script>
+  import SecretForm from './SecretForm.vue'
+  export default {
+    name: 'SecretModal',
+    components: {
+        SecretForm
+    },
+    data () {
+      return {
+        title:'',
+        width:800,
+        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);
+        })
+      },
+      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