| | |
| | | @click.stop="punish(row)" |
| | | >处罚</el-button |
| | | > |
| | | </template></avue-crud |
| | | > |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog |
| | | title="处罚" |
| | | :visible.sync="dialogVisible" |
| | |
| | | savePunish, |
| | | } from "@/api/securityCompany/security"; |
| | | import { mapGetters } from "vuex"; |
| | | import { companyColimn } from "./column"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | ], |
| | | }, |
| | | dialogVisible: false, |
| | | |
| | | form: {}, |
| | | query: {}, |
| | | loading: true, |
| | |
| | | viewBtn: true, |
| | | dialogClickModal: false, |
| | | |
| | | column: [ |
| | | { |
| | | label: "公司名称", |
| | | prop: "enterprisename", |
| | | search: true, |
| | | searchSpan: 4, |
| | | width: 300, |
| | | overHidden: true, |
| | | display: false, |
| | | }, |
| | | { |
| | | label: "法定代表人", |
| | | prop: "representative", |
| | | display: false, |
| | | width: 80, |
| | | }, |
| | | { |
| | | label: "成立日期", |
| | | prop: "establishtime", |
| | | type: "date", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | mock: { |
| | | type: "datetime", |
| | | format: "yyyy-MM-dd", |
| | | }, |
| | | search: true, |
| | | searchSpan: 4, |
| | | display: false, |
| | | width: 140, |
| | | }, |
| | | { |
| | | label: "注册资金", |
| | | prop: "registeredcapital", |
| | | display: false, |
| | | width: 130, |
| | | }, |
| | | { |
| | | label: "实缴资金", |
| | | prop: "capital", |
| | | display: false, |
| | | width: 130, |
| | | }, |
| | | { |
| | | label: "公司类型", |
| | | prop: "enterprises", |
| | | display: false, |
| | | width: 220, |
| | | overHidden: true, |
| | | }, |
| | | { |
| | | label: "注册地址", |
| | | prop: "address", |
| | | display: false, |
| | | overHidden: true, |
| | | }, |
| | | ], |
| | | column: companyColimn, |
| | | // [ |
| | | // { |
| | | // label: "公司名称", |
| | | // prop: "enterprisename", |
| | | // search: true, |
| | | // searchSpan: 4, |
| | | // // width: 300, |
| | | // minWidth: 120, |
| | | // overHidden: true, |
| | | // display: false, |
| | | // }, |
| | | // { |
| | | // label: "法定代表人", |
| | | // prop: "representative", |
| | | // display: false, |
| | | // width: 86, |
| | | // }, |
| | | // { |
| | | // label: "法人电话", |
| | | // prop: "representativecell", |
| | | // display: false, |
| | | // width: 95, |
| | | // }, |
| | | // { |
| | | // label: "成立日期", |
| | | // prop: "establishtime", |
| | | // type: "date", |
| | | // format: "yyyy-MM-dd", |
| | | // valueFormat: "yyyy-MM-dd", |
| | | // mock: { |
| | | // type: "datetime", |
| | | // format: "yyyy-MM-dd", |
| | | // }, |
| | | // search: true, |
| | | // searchSpan: 4, |
| | | // display: false, |
| | | // width: 140, |
| | | // }, |
| | | // { |
| | | // label: "注册资金", |
| | | // prop: "registeredcapital", |
| | | // display: false, |
| | | // width: 110, |
| | | // }, |
| | | // { |
| | | // label: "实缴资金", |
| | | // prop: "capital", |
| | | // display: false, |
| | | // width: 110, |
| | | // }, |
| | | // // { |
| | | // // label: "公司类型", |
| | | // // prop: "enterprises", |
| | | // // display: false, |
| | | // // width: 220, |
| | | // // overHidden: true, |
| | | // // }, |
| | | |
| | | // { |
| | | // label: "联系人", |
| | | // prop: "contacts", |
| | | // display: false, |
| | | // overHidden: true, |
| | | // width: 95, |
| | | // }, |
| | | // { |
| | | // label: "联系电话", |
| | | // prop: "contactscell", |
| | | // display: false, |
| | | // overHidden: true, |
| | | // width: 95, |
| | | // }, |
| | | // { |
| | | // label: "注册地址", |
| | | // prop: "address", |
| | | // display: false, |
| | | // overHidden: true, |
| | | // }, |
| | | // ], |
| | | group: [ |
| | | { |
| | | label: "详细信息", |
| | |
| | | methods: { |
| | | close(row) { |
| | | this.dialogVisible = false; |
| | | this.objf = {}; |
| | | this.objf = { |
| | | enterprisename: "", |
| | | punishreason: "", |
| | | punishresult: "", |
| | | punishtime: "", |
| | | punisnum: "", |
| | | }; |
| | | }, |
| | | submitf(form, done) { |
| | | console.log(form); |
| | | var that = this; |
| | | savePunish(form).then((res) => { |
| | | console.log(res); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | that.objf = { |
| | | enterprisename: "", |
| | | punishreason: "", |
| | | punishresult: "", |
| | | punishtime: "", |
| | | punisnum: "", |
| | | }; |
| | | }); |
| | | // this.$message.success(JSON.stringify(form)); |
| | | done(); |
| | |
| | | console.log(err); |
| | | }, |
| | | handleClose(done) { |
| | | this.objf = {}; |
| | | this.objf = { |
| | | enterprisename: "", |
| | | punishreason: "", |
| | | punishresult: "", |
| | | punishtime: "", |
| | | punisnum: "", |
| | | }; |
| | | done(); |
| | | }, |
| | | punish(row) { |
| | |
| | | getList( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.query) |
| | | Object.assign(params, this.query), |
| | | 2 |
| | | ).then((res) => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |