src/views/securityCompany/security.vue
@@ -72,9 +72,6 @@
    </el-dialog>
  </basic-container>
</template>
        </avue-crud>
    </basic-container>
</template>
<script>
import {
@@ -83,6 +80,7 @@
  add,
  update,
  remove,
  savePunish,
} from "@/api/securityCompany/security";
import { mapGetters } from "vuex";
@@ -107,7 +105,7 @@
          },
          {
            label: "处罚原因",
            prop: "sex",
            prop: "punishreason",
            span: 24,
            labelWidth: 110,
            rules: [
@@ -119,10 +117,27 @@
            ],
          },
          {
            label: "处罚内容",
            prop: "sex1",
            label: "处罚结果",
            prop: "punishresult",
            span: 24,
            type: "textarea",
            // type: "textarea",
            labelWidth: 110,
          },
          {
            label: "处罚日期",
            prop: "punishtime",
            span: 24,
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
            // type: "textarea",
            labelWidth: 110,
          },
          {
            label: "处罚批准文号",
            prop: "punisnum",
            span: 24,
            // type: "textarea",
            labelWidth: 110,
          },
          //   {
@@ -216,6 +231,7 @@
            label: "注册地址",
            prop: "address",
            display: false,
            overHidden: true,
            width: 200,
          },
        ],
@@ -270,12 +286,19 @@
  methods: {
    close(row) {
      this.dialogVisible = false;
      this.objf = {};
    },
    submit(form, done) {
      this.$message.success(JSON.stringify(form));
    submitf(form, done) {
      console.log(form);
      savePunish(form).then((res) => {
        console.log(res);
      });
      // this.$message.success(JSON.stringify(form));
      done();
      this.dialogVisible = false;
      this.objf = {};
    },
    error(err) {
    errorf(err) {
      this.$message.success("请查看控制台");
      console.log(err);
    },
@@ -287,6 +310,7 @@
      //打开处罚
      // console.log(row);
      this.objf = {
        deptid: row.departmentid,
        enterprisename: row.enterprisename,
      };
      this.dialogVisible = true;
@@ -379,12 +403,12 @@
      getList(
        page.currentPage,
        page.pageSize,
        Object.assign(params, this.query),
        2
        Object.assign(params, this.query)
      ).then((res) => {
        const data = res.data.data;
        this.page.total = data.total;
        this.data = data.records;
        console.log(this.data);
        this.loading = false;
        this.selectionClear();
      });