From 77bbb07044f0e139c20c979c39682c751b7ea0d4 Mon Sep 17 00:00:00 2001 From: yang <1441163367@qq.com> Date: 星期三, 02 十一月 2022 03:33:05 +0800 Subject: [PATCH] 修改新增简易案件问题 --- src/page/index/top/top-lock.vue | 72 ------------------------------------ 1 files changed, 0 insertions(+), 72 deletions(-) diff --git a/src/page/index/top/top-lock.vue b/src/page/index/top/top-lock.vue index 1fe6150..e69de29 100644 --- a/src/page/index/top/top-lock.vue +++ b/src/page/index/top/top-lock.vue @@ -1,72 +0,0 @@ -<template> - <span> - <i class="icon-suoping" - @click="handleLock"></i> - <el-dialog title="璁剧疆閿佸睆瀵嗙爜" - :visible.sync="box" - width="30%" - append-to-body> - <el-form :model="form" - ref="form" - label-width="80px"> - <el-form-item label="閿佸睆瀵嗙爜" - prop="passwd" - :rules="[{ required: true, message: '閿佸睆瀵嗙爜涓嶈兘涓虹┖'}]"> - <el-input v-model="form.passwd" - placeholder="璇疯緭鍏ラ攣灞忓瘑鐮�"></el-input> - </el-form-item> - </el-form> - <span slot="footer" - class="dialog-footer"> - <el-button type="primary" - @click="handleSetLock">纭� 瀹�</el-button> - </span> - </el-dialog> - </span> -</template> - -<script> - import { validatenull } from "@/util/validate"; - import { mapGetters } from "vuex"; - export default { - name: "top-lock", - data() { - return { - box: false, - form: { - passwd: "" - } - }; - }, - created() {}, - mounted() {}, - computed: { - ...mapGetters(["lockPasswd"]) - }, - props: [], - methods: { - handleSetLock() { - this.$refs["form"].validate(valid => { - if (valid) { - this.$store.commit("SET_LOCK_PASSWD", this.form.passwd); - this.handleLock(); - } - }); - }, - handleLock() { - if (validatenull(this.lockPasswd)) { - this.box = true; - return; - } - this.$store.commit("SET_LOCK"); - setTimeout(() => { - this.$router.push({ path: "/lock" }); - }, 100); - } - }, - components: {} - }; -</script> - -<style lang="scss" scoped> -</style> -- Gitblit v1.9.1