| | |
| | | |
| | | // 查询当前用户的权限授权实体集合 |
| | | export function getPerms() { |
| | | return request.get('perms/selectPermsEntity'); |
| | | return request.get('/perms/selectPermsEntity'); |
| | | } |
| | | // 查询值域表结构树 |
| | | export function getDomainTabs() { |
| | | return request.get('domain/selectDomainTabs'); |
| | | return request.get('/domain/selectDomainTabs'); |
| | | } |
| | | //分页查询 |
| | | export function getSingleTab(params) { |
| | | return request.get('domain/selectByPageAndCount', { params: params }); |
| | | return request.get('/domain/selectByPageAndCount', { params: params }); |
| | | } |
| | | //更新值域数据 |
| | | export function updateDomain(params) { |
| | | return request.post('domain/update', params); |
| | | return request.post('/domain/update', params); |
| | | } |
| | | export function deleteDomain(params) { |
| | | return request.get('domain/deletes', { params: params }); |
| | | return request.get('/domain/deletes', { params: params }); |
| | | } |
| | | //插入值域数据 |
| | | export function insertDomain(params) { |
| | | return request.post('domain/insert', params); |
| | | return request.post('/domain/insert', params); |
| | | } |
| | | //值域管理=》domain获取 |
| | | export function domain_selectDomainNames(params) { |
| | | return request.get('/domain/selectDomainNames', { params: params }); |
| | | } |
| | |
| | | :label="$t('dataManage.domainManage.domName')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="editForm.domName" autocomplete="off"></el-input> |
| | | <el-select v-model="editForm.domName" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in domainOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-input v-model="editForm.domName" autocomplete="off"></el-input> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.domainManage.domDesc')" |
| | |
| | | > |
| | | <el-input v-model="editForm.domDesc" autocomplete="off"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | | :label="$t('dataManage.domainManage.domCode')" |
| | | :label-width="formLabelWidth" |
| | |
| | | insertDomain, |
| | | deleteDomain, |
| | | updateDomain, |
| | | domain_selectDomainNames, |
| | | } from '../../api/api'; |
| | | import MyBread from '../../components/MyBread.vue'; |
| | | export default { |
| | |
| | | components: { MyBread }, |
| | | data() { |
| | | return { |
| | | domainOptions: [], |
| | | multipleSelection: [], |
| | | behavior: '', |
| | | formLabelWidth: '100px', |
| | |
| | | showinfoBox: false, |
| | | fullscreenLoading: false, |
| | | itemdetail: {}, |
| | | editForm: {}, |
| | | editForm: { |
| | | domName: '', |
| | | }, |
| | | queryForm: { |
| | | code: '', |
| | | }, |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | toggleTabs(data) { |
| | | async toggleTabs(data) { |
| | | this.fullscreenLoading = true; |
| | | this.listData.ns = data.ns; |
| | | this.listData.tab = data.tab; |
| | | debugger; |
| | | const res = await domain_selectDomainNames(data); |
| | | if (res.code != 200) { |
| | | this.$message.error('domain调用失败'); |
| | | } |
| | | var std = []; |
| | | for (var i = 0; i < res.result.length; i++) { |
| | | std.push({ |
| | | value: res.result[i], |
| | | label: res.result[i], |
| | | }); |
| | | } |
| | | this.domainOptions = std; |
| | | this.editForm.domName = res.result[0]; |
| | | getSingleTab(this.listData).then((res) => { |
| | | setTimeout(() => { |
| | | if (res.code == 200) { |
| | |
| | | this.tableData = res.result; |
| | | this.count = res.count; |
| | | } else { |
| | | console.log('查询接口报错'); |
| | | this.$notify.error({ |
| | | title: res.code, |
| | | message: res.result, |