| | |
| | | <el-button class="addBtn" type="primary" @click="dialogCreate = true">新增违规类型</el-button> |
| | | <el-dialog :visible.sync="dialogCreate" title="新增违规类型" width="45%" v-if="dialogCreate" |
| | | :before-close="handleClose"> |
| | | <createUser @changeDialog=changeDialog /> |
| | | <createUser @changeDialog=changeDialog /> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="number" label="违规事项编号" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="所属类型" min-width="10"> |
| | | <el-table-column prop="typeThird" label="所属类型" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="typeFirst" label="所属大类" min-width="10"> |
| | | <el-table-column prop="typeSecond" label="所属大类" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="typeSecond" label="所属小类" min-width="10"> |
| | | <el-table-column prop="typeFirst" label="所属小类" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="typeThird" label="案由" min-width="45"> |
| | | <el-table-column prop="type" label="案由" min-width="45"> |
| | | </el-table-column> |
| | | <el-table-column prop="operation" label="操作" min-width="10"> |
| | | <template slot-scope="scope"> |
| | |
| | | </el-table> |
| | | <!-- 查看修改页面 --> |
| | | <el-dialog :visible.sync="dialogUpdate" width="45%" :title="updateFlag ? '权限设置' :'查看角色信息'" |
| | | v-if="dialogUpdate" :before-close="handleClose"> |
| | | v-if="dialogUpdate" :before-close="handleClose2"> |
| | | <updateUser :updateFlag="updateFlag" :userInfo=userInfo |
| | | :getUserList=" context ? getUserList : getUserList" @changeDialog="changeDialog" /> |
| | | </el-dialog> |
| | | <!-- tools --> |
| | | <div class="tools"> |
| | | <div class="funs"> |
| | | <div class="funsItem"> |
| | | <!-- <div class="funsItem"> |
| | | <el-checkbox v-model="all" @change="selectAll()">全选</el-checkbox> |
| | | </div> |
| | | <div class="funsItem"> |
| | |
| | | :value="item.value" :disabled="item.disabled"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | <div class="pagination"> |
| | | <el-pagination background :current-page="currentPage" layout="prev, pager, next" |
| | |
| | | import createUser from "./createUser" |
| | | export default { |
| | | components: { |
| | | updateUser,createUser |
| | | updateUser, createUser |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | methods: { |
| | | // 批量删除 |
| | | mulDelete(idArr){ |
| | | mulDelete(idArr) { |
| | | console.log(idArr); |
| | | this.$axios({ |
| | | method:'delete', |
| | | url:'sccg/violations/batch_delete?ids='+idArr, |
| | | }).then(res=>{ |
| | | method: 'delete', |
| | | url: 'sccg/violations/batch_delete?ids=' + idArr, |
| | | }).then(res => { |
| | | this.getUserList(); |
| | | this.$message({ |
| | | message:res.message, |
| | | type:res.code === 200 ? 'success' : 'warning' |
| | | message: res.message, |
| | | type: res.code === 200 ? 'success' : 'warning' |
| | | }) |
| | | }) |
| | | }, |
| | |
| | | this.currentPage = page; |
| | | this.getUserList(); |
| | | }, |
| | | changeDialog({flag}) { |
| | | changeDialog({ flag }) { |
| | | this.dialogCreate = flag; |
| | | this.dialogUpdate = flag; |
| | | this.getUserList(); |
| | | }, |
| | | handleClose2(done) { |
| | | if (this.updateFlag) { |
| | | this.$confirm('确认关闭?') |
| | | .then(_ => { |
| | | this.dialogCreate = false; |
| | | this.dialogUpdate = false; |
| | | done(); |
| | | }) |
| | | .catch(_ => { }); |
| | | } else { |
| | | done(); |
| | | } |
| | | }, |
| | | handleClose(done) { |
| | | this.$confirm('确认关闭?') |
| | | .then(_ => { |