| | |
| | | /> |
| | | </el-tooltip> |
| | | <el-tooltip v-del-tab-index class="item" effect="dark" content="删除" placement="top"> |
| | | <i :style="{color:$store.state.settings.theme}" class="el-icon-delete" @click="del(row.id)" /> |
| | | <i :style="{color:$store.state.settings.theme}" class="el-icon-delete" @click="del(row)" /> |
| | | </el-tooltip> |
| | | <!-- <el-button type="primary" size="mini" />--> |
| | | <!-- <el-button type="danger" size="mini">删除</el-button>--> |
| | |
| | | <el-form-item label="组织名称" prop="OrgName"> |
| | | <el-input v-model="dialogForm.OrgName" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item v-if="dialogForm.OrgType!=='部门'" prop="SupUnit" label="上级单位"> |
| | | <el-form-item v-if="dialogForm.OrgType!=='部门'&&$store.state.settings.orgType===''" prop="SupUnit" label="上级单位"> |
| | | <el-select |
| | | v-model="dialogForm.SupUnit" |
| | | style="width: 200px" |
| | |
| | | // const SER_HZ = /^[\u4e00-\u9fa5]+$/ |
| | | // const SER_HZ = /^[a-zA-Z0-9_;,.<>() ]{0,}$/ |
| | | export default { |
| | | name: 'ZZJG', |
| | | name: 'OrganizationList', |
| | | components: { |
| | | Pagination, TableColumnSettings |
| | | }, |
| | |
| | | // this.numvalue = res.numvalue |
| | | }, |
| | | // 修改按钮 |
| | | edit(operation, row) { |
| | | async edit(operation, row) { |
| | | if (this.$store.state.settings.orgType === 'W') { |
| | | return this.$message.info('当前用户无修改权限!') |
| | | } |
| | | |
| | | await this.getPrentOrganization() |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | // if (row.description === 'F') { |
| | |
| | | }) |
| | | }, |
| | | // 删除按钮 |
| | | async del(id) { |
| | | async del(row) { |
| | | if (this.$store.state.settings.orgType === 'W') { |
| | | return this.$message.info('当前用户无删除权限!') |
| | | } |
| | |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | DeleteOrganization({ orgid: id }).then(res => { |
| | | DeleteOrganization({ orgid: row.id, orgcode: row.org_code }).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success('删除成功!') |
| | | if (this.form.page > 1 && this.tableData.length === 1) { |