| | |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | |
| | | add, |
| | | update, |
| | | remove, |
| | | savePunish, |
| | | } from "@/api/securityCompany/security"; |
| | | import { mapGetters } from "vuex"; |
| | | |
| | |
| | | }, |
| | | { |
| | | label: "处罚原因", |
| | | prop: "sex", |
| | | prop: "punishreason", |
| | | span: 24, |
| | | labelWidth: 110, |
| | | rules: [ |
| | |
| | | ], |
| | | }, |
| | | { |
| | | 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, |
| | | }, |
| | | // { |
| | |
| | | label: "注册地址", |
| | | prop: "address", |
| | | display: false, |
| | | overHidden: true, |
| | | width: 200, |
| | | }, |
| | | ], |
| | |
| | | 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); |
| | | }, |
| | |
| | | //打开处罚 |
| | | // console.log(row); |
| | | this.objf = { |
| | | deptid: row.departmentid, |
| | | enterprisename: row.enterprisename, |
| | | }; |
| | | this.dialogVisible = true; |
| | |
| | | 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(); |
| | | }); |