| | |
| | | }, |
| | | created() { |
| | | const { getBigKind, getEventLevel, getSmallKind } = this; |
| | | console.log(this.mytype); |
| | | this.vio.category = this.mytype + 1; |
| | | getBigKind(); |
| | | getSmallKind(); |
| | |
| | | url: 'sccg/violations/query/type_first' |
| | | }).then(res => { |
| | | this.bigKindList = res.data; |
| | | // console.log(res); |
| | | }) |
| | | }, |
| | | // 获取小类列表 |
| | |
| | | url: 'sccg/violations/query/type_second' |
| | | }) |
| | | .then(res => { |
| | | console.log(res); |
| | | this.smallKindList = res.data; |
| | | }) |
| | | }, |
| | |
| | | url: 'sccg/violations/query/event_type' |
| | | }) |
| | | .then(res => { |
| | | console.log(res); |
| | | this.eventLevelList = res.data; |
| | | }) |
| | | }, |
| | |
| | | this.$refs.user.validate((valid) => { |
| | | if (valid) { |
| | | const { vio } = this; |
| | | console.log(vio); |
| | | this.$axios({ |
| | | method: 'post', |
| | | url: 'sccg/base-case/addition_violation', |