| | |
| | | <div class="addUser"> |
| | | <el-button class="addBtn" type="primary" @click="dialogCreate = true">添加</el-button> |
| | | <el-dialog :before-close="handleClose" :visible.sync="dialogCreate" title="请选择上报事件类型" width="45%" v-if="dialogCreate"> |
| | | <createUser /> |
| | | <createUser @getPageProp=setDialog /> |
| | | </el-dialog> |
| | | <el-dialog :before-close="handleClose" :visible.sync="dialogNewAdd" :title="newAddType === 0 ? '违规事件登记' : '违建事件登记' " width="45%" v-if="dialogNewAdd"> |
| | | <MyIll v-if="newAddType === 1" :mytype=newAddType /> |
| | | <myVio v-else :mytype=newAddType /> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | |
| | | <script> |
| | | import updateUser from "./updateUser" |
| | | import createUser from "./createUser" |
| | | import MyIll from './createUser/ill' |
| | | import MyVio from './createUser/vio' |
| | | export default { |
| | | components: { |
| | | updateUser, createUser |
| | | updateUser, createUser,MyIll,MyVio |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | context: "", |
| | | dialogCreate: false, |
| | | dialogUpdate: false, |
| | | dialogNewAdd:false, |
| | | newAddType:0, |
| | | updateFlag: false, |
| | | userInfo: '', |
| | | totalNum: null, |
| | |
| | | ], |
| | | mystatus:0, |
| | | statusArr:[], |
| | | |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.statusArr[1] = item.value; |
| | | } |
| | | }) |
| | | // this.getUserList(); |
| | | this.getUserList(); |
| | | }, |
| | | methods: { |
| | | setDialog({flag,type}){ |
| | | this.dialogCreate = flag; |
| | | this.dialogNewAdd = true; |
| | | this.newAddType = type; |
| | | console.log(flag,type); |
| | | }, |
| | | // 批量删除 |
| | | mulDelete(idArr) { |
| | | console.log(idArr); |
| | |
| | | console.log(statusArr); |
| | | this.$axios({ |
| | | method: 'get', |
| | | url: `sccg/base-case/query/${statusArr[1]}?status=` + statusArr[0] |
| | | url: `sccg/base-case/query/${statusArr[1]}?state=${statusArr[0]}¤t=${currentPage}&size=${pageSize}&resource=1` |
| | | }).then(res => { |
| | | console.log(res); |
| | | }) |
| | | // 获取所有用户信息 |
| | | // this.$axios({ |
| | | // method: 'get', |
| | | // url: `sccg/violations/query?current=${currentPage}&size=${pageSize}&keyWord=${context}`, |
| | | // }) |
| | | // .then(res => { |
| | | // this.tableData = res.data.records; |
| | | // this.totalNum = res.data.total; |
| | | // }) |
| | | }, |
| | | // 设置表格斑马纹 |
| | | tableRowClassName({ row, rowIndex }) { |