| | |
| | | width="600px" |
| | | :visible.sync="isShowModal" |
| | | :confirm-working="isWorking" |
| | | @close="close" |
| | | @confirm="confirm" |
| | | > |
| | | <el-form :model="param" ref="paramRef" :rules="rules"> |
| | |
| | | this.initData() |
| | | }, |
| | | methods: { |
| | | |
| | | |
| | | initData () { |
| | | allList({ type: 1 }).then(res => { // 类型 |
| | | this.typeList = res || [] |
| | |
| | | this.getfindCompanyTreePage() |
| | | }, |
| | | getfindCompanyTreePage() { |
| | | companyGetListPost({}) |
| | | companyGetListPost({queryHiddenDanger: 1}) |
| | | .then(res => { |
| | | if (res && res.length > 0) { |
| | | this.department = res |
| | |
| | | }, |
| | | getAddrList() { |
| | | const { companyId } = this.param |
| | | allList({ type: 0,companyId }).then(res => { // 位置 |
| | | this.addrList = res || [] |
| | | }) |
| | | this.$set(this.param, 'areaId', '') |
| | | this.$set(this.param, 'checkUserId', '') |
| | | this.addrList = [] |
| | | if(companyId){ |
| | | allList({ type: 0,companyId }).then(res => { // 位置 |
| | | this.addrList = res || [] |
| | | }) |
| | | } |
| | | }, |
| | | changeArea (e) { |
| | | const item = this.addrList.find(i => i.id === e) |
| | |
| | | handleDelImg (i) { |
| | | this.fileList.splice(i, 1) |
| | | }, |
| | | close(){ |
| | | this.isShowModal = false |
| | | this.$emit('close') |
| | | }, |
| | | // 同步信息 |
| | | confirm () { |
| | | this.$refs.paramRef.validate((valid) => { |