| | |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-wind-power" |
| | | @click="handleOrganization(scope.row)" |
| | | >机构 |
| | | </el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-office-building" |
| | | @click="handleBuild(scope.row)" |
| | | >建筑 |
| | |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </Dialog> |
| | | |
| | | <!-- 建筑 --> |
| | | <el-drawer title="建筑单元" :visible.sync="buildOpen" size="50%" :append-to-body="true" :destroy-on-close="true"> |
| | | <building :schoolId="id"></building> |
| | | </el-drawer> |
| | | |
| | | <!-- 组织机构 --> |
| | | <el-drawer title="组织机构" :visible.sync="organizationOpen" size="50%" :append-to-body="true" :destroy-on-close="true"> |
| | | <organization :schoolId="id"></organization> |
| | | </el-drawer> |
| | | </div> |
| | | </template> |
| | |
| | | import {listSchool, getSchool, delSchool, addSchool, updateSchool} from "@/api/oa/school"; |
| | | import {listProvince, listCity} from "@/api/common/common"; |
| | | import building from '../building' |
| | | import organization from '../organization' |
| | | |
| | | export default { |
| | | name: "School", |
| | | dicts: ['DICT105', 'DICT106'], |
| | | components: { |
| | | building |
| | | building, |
| | | organization |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | // 城市 |
| | | cityFormList: [], |
| | | buildOpen: false, |
| | | organizationOpen: false, |
| | | id: undefined |
| | | }; |
| | | }, |
| | |
| | | handleBuild(r) { |
| | | this.id = r.id; |
| | | this.buildOpen = true; |
| | | }, |
| | | // 组织机构 |
| | | handleOrganization(r) { |
| | | this.id = r.id; |
| | | this.organizationOpen = true; |
| | | } |
| | | } |
| | | }; |