谢杰标 2 년 전
부모
커밋
ce5922759f

+ 15 - 3
src/components/BaseDialog.vue

@@ -20,15 +20,19 @@
     <slot></slot>
     <div slot="footer" class="dialog-footer" v-if="isShowFooter">
       <el-button
+        v-if="isShowConfirm"
         v-throttle
         :loading="disabledBtn"
         type="primary"
         @click="confirmBtn"
         >{{ confirmName }}</el-button
       >
-      <el-button :loading="disabledBtn" @click="visible = false">{{
-        cancelName
-      }}</el-button>
+      <el-button
+        v-if="isShowCancel"
+        :loading="disabledBtn"
+        @click="visible = false"
+        >{{ cancelName }}</el-button
+      >
     </div>
   </el-dialog>
 </template>
@@ -57,6 +61,14 @@ export default {
       type: String,
       default: "保 存",
     },
+    isShowConfirm: {
+      type: Boolean,
+      default: true,
+    },
+    isShowCancel: {
+      type: Boolean,
+      default: true,
+    },
     isShowFooter: {
       type: Boolean,
       default: true,

+ 1 - 1
src/views/components/index/payContain.vue

@@ -208,7 +208,7 @@ export default {
         },
       ],
       active: 1,
-      isShow: true,
+      isShow: false,
       cardSn: "1000146902628081",
       rules: {
         cardSn: [{ validator: validateCardSn, trigger: "blur" }],

+ 49 - 0
src/views/writeOffMag/components/OperationRecordDig.vue

@@ -0,0 +1,49 @@
+<template>
+  <Base-dialog
+    title="操作记录"
+    :isShow.sync="isShow"
+    @open="open"
+    :isShowConfirm="false"
+    cancelName="关 闭"
+    width="450px"
+  >
+    <!-- <div><el-button>关闭</el-button></div> -->
+  </Base-dialog>
+</template>
+
+<script>
+export default {
+  props: {
+    dialogVisible: {
+      type: Boolean,
+      default: false,
+    },
+    orderId: {
+      type: Number,
+    },
+  },
+  data() {
+    return {};
+  },
+  methods: {
+    open() {
+      //   this.resetForm();
+      //   this.getDatail();
+    },
+  },
+  computed: {
+    isShow: {
+      get() {
+        return this.dialogVisible;
+      },
+      set(val) {
+        this.$emit("update:dialogVisible", false);
+      },
+    },
+  },
+  created() {},
+  components: {},
+};
+</script>
+
+<style lang="scss" scoped></style>

+ 9 - 1
src/views/writeOffMag/record.vue

@@ -46,6 +46,10 @@
         :currentPage.sync="formData.pageNum"
         @search="search"
       />
+      <operation-record-dig
+        :dialogVisible="dialogRecordVisible"
+      >
+      </operation-record-dig>
     </container>
   </div>
 </template>
@@ -57,9 +61,9 @@ import {
   orderExport,
   orderStatistics,
 } from "@/api/order/index";
+import OperationRecordDig from "./components/OperationRecordDig.vue";
 export default {
   name: "SaasMemberRecord",
-
   data() {
     return {
       countList: [
@@ -190,6 +194,7 @@ export default {
           placeholder: "输入会员手机号",
         },
       ],
+      dialogRecordVisible: true,
     };
   },
 
@@ -237,6 +242,9 @@ export default {
       });
     },
   },
+  components: {
+    OperationRecordDig,
+  },
 };
 </script>