From 48d34b0def9f848d1b7f9ddd2cd0861341fb208d Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 04 Dec 2021 17:15:30 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhba_regulatory_ys
---
src/views/securityCompany/computents/punish.vue | 82 +++++++++++++++++++++++++++++++----------
1 files changed, 62 insertions(+), 20 deletions(-)
diff --git a/src/views/securityCompany/computents/punish.vue b/src/views/securityCompany/computents/punish.vue
index 6e99add..041d6db 100644
--- a/src/views/securityCompany/computents/punish.vue
+++ b/src/views/securityCompany/computents/punish.vue
@@ -1,21 +1,35 @@
<template>
- <avue-crud
- class="company-box"
- :option="punishOption"
- :search.sync="punishSearch"
- :table-loading="punishLoading"
- :data="punishData"
- ref="punishCrud"
- :page.sync="punishPage"
- @selection-change="punishSelectionChange"
- @search-change="punishSearchChange"
- @search-reset="punishSearchReset"
- @current-change="punishCurrentChange"
- @size-change="punishSizeChange"
- @refresh-change="punishRefreshcCange"
- @on-load="punishOnLoad"
- >
- </avue-crud>
+ <div>
+ <avue-crud
+ class="company-box"
+ :option="punishOption"
+ :search.sync="punishSearch"
+ :table-loading="punishLoading"
+ :data="punishData"
+ ref="punishCrud"
+ :page.sync="punishPage"
+ @selection-change="punishSelectionChange"
+ @search-change="punishSearchChange"
+ @search-reset="punishSearchReset"
+ @current-change="punishCurrentChange"
+ @size-change="punishSizeChange"
+ @refresh-change="punishRefreshcCange"
+ @on-load="punishOnLoad"
+ >
+ <template slot="menuLeft">
+ <el-button
+ icon="el-icon-warning"
+ @click.stop="punishOpen(row)"
+ type="danger"
+ size="small"
+ plain
+ v-if="form.see"
+ >处罚</el-button
+ >
+ </template>
+ </avue-crud>
+ </div>
+
<!-- @on-load="punishOnLoad" -->
</template>
@@ -25,13 +39,20 @@
export default {
props: ["form"],
+ watch: {
+ "form.news"() {
+ if (this.form.see) {
+ this.refreshChange();
+ }
+ },
+ },
data() {
return {
punishOption: {
// 操作栏多余按钮去除
delBtn: false,
editBtn: false,
- searchShowBtn: false,
+ // searchShowBtn: false,
addBtn: false,
selection: true,
border: true,
@@ -41,7 +62,7 @@
height: "auto",
calcHeight: 270,
tip: false,
- searchShow: false,
+ searchShow: true,
searchMenuSpan: 4,
index: false,
viewBtn: true,
@@ -65,10 +86,31 @@
};
},
mounted() {
- // console.log(this.form, "pu");
+ console.log(this.form, "pu");
+ console.log(this.punishOption.column, "pu");
// this.punishOnLoad(this.punishPage);
+ // setTimeout(() => {
+ var searchs = () => {
+ if (this.form.see) {
+ this.punishOption.column[1].search = true;
+ this.punishOption.column[2].search = true;
+ this.punishOption.column[3].search = true;
+ }
+ };
+ if (this.form.see) {
+ searchs();
+ }
+ // }, 500);
+ this.$refs.punishCrud.refreshTable();
+ this.$refs.punishCrud.doLayout();
},
methods: {
+ punishOpen() {
+ this.form.that.punish();
+ },
+ refreshChange() {
+ this.punishOnLoad(this.punishPage, this.punishQuery);
+ },
punishOnLoad(page, params = {}) {
this.punishLoading = true;
// console.log(this.form.departmentid);
--
Gitblit v1.9.3