| | |
| | | <el-input v-model="seachData.site" placeholder="报警点位"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="所属区域"> |
| | | <el-input v-model="seachData.street" placeholder="所属区域"></el-input> |
| | | <el-cascader |
| | | v-model="seachData.street" |
| | | :options="communityOptions" |
| | | :props="options" |
| | | @change="handleChange"></el-cascader> |
| | | </el-form-item> |
| | | <el-form-item label="报警时间"> |
| | | <el-date-picker |
| | |
| | | |
| | | <script> |
| | | import {RESOURCE_OPTIONS} from "@/utils/helper"; |
| | | import department from "@/api/system/department"; |
| | | |
| | | export default { |
| | | data(){ |
| | | return{ |
| | | options:{ |
| | | label:'regionName', |
| | | value:'id', |
| | | }, |
| | | communityOptions:[], |
| | | eventSourceOptions: RESOURCE_OPTIONS, |
| | | seachData:{ |
| | | |
| | |
| | | }, |
| | | mounted() { |
| | | this.getPool() |
| | | this.getCommunityOptions() |
| | | }, |
| | | methods:{ |
| | | handleChange(value) { |
| | | console.log(value); |
| | | }, |
| | | // 获取社区和街道 |
| | | getCommunityOptions() { |
| | | department.getDepartmentList() |
| | | .then(res => { |
| | | this.communityOptions = res; |
| | | }) |
| | | .catch(err => this.$message.error(err)) |
| | | }, |
| | | getPool(){ |
| | | console.log(this.$route.name); |
| | | let name = this.$route.name |
| | |
| | | |
| | | }, |
| | | getUserList(){ |
| | | this.seachData.street = this.seachData.street[this.seachData.street.length-1] |
| | | this.$emit('getUserList', {seachData:this.seachData}) |
| | | }, |
| | | dialogCreate(){ |