| | |
| | | status-icon |
| | | > |
| | | <el-form-item prop="selectInput"> |
| | | <el-select v-model="loginForm.value" placeholder="请选择租户" style="width: 326px" @change="selectchange"> |
| | | <el-select v-model="loginForm.tenantId" placeholder="请选择租户" style="width: 326px" @change="selectchange"> |
| | | <i slot="prefix" class="el-icon-s-operation"/> |
| | | <el-option |
| | | v-for="(item,index) in loginForm.region" |
| | |
| | | </el-dialog> |
| | | </div> |
| | | |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | }, |
| | | loginForm: { |
| | | //租户ID |
| | | tenantId: "000000", |
| | | tenantId: "", |
| | | //部门ID |
| | | deptId: "", |
| | | //角色ID |
| | |
| | | //在mounted获取首页下拉菜单数据 |
| | | this.$axios.get('/api/ubcs-system/tenant/tenant-map').then(res => { |
| | | if (res.data.code == 200) { |
| | | console.log(res.data.data); |
| | | this.loginForm.tenantId = res.data.data[0].TENANT_ID; |
| | | this.loginForm.region = res.data.data |
| | | } |
| | | }) |
| | |
| | | proxy: { |
| | | '/api': { |
| | | //本地服务接口地址 |
| | | // target: 'http://localhost:37000', |
| | | target: 'http://192.168.1.51:37000', |
| | | target: 'http://localhost:37000', |
| | | // target: 'http://192.168.1.51:37000', |
| | | // target: 'http://192.168.1.46:37000', |
| | | // target: 'http://dev.vci-tech.com:37000', |
| | | // target: 'http://192.168.1.51:37000/', |
| | |
| | | import com.vci.ubcs.starter.web.util.VciDateUtil; |
| | | import com.vci.ubcs.system.entity.DictBiz; |
| | | import com.vci.ubcs.system.feign.IDictBizClient; |
| | | import com.vci.ubcs.core.log.exception.ServiceException; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | |
| | | package com.vci.ubcs.code.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | |
| | | R<List<BtmTypeVO>> listR = btmTypeClient.selectByIdCollection(Collections.singletonList(referConfigVO.getReferType())); |
| | | if (listR.getCode() != 200) { |
| | | throw new ServiceException("业务类型feign接口调用错误"); |
| | | throw new ServiceException(Func.isNotBlank(listR.getMsg()) ? listR.getMsg():"业务类型feign接口调用错误!"); |
| | | } |
| | | if (listR.getData().size() == 0) { |
| | | throw new VciBaseException("传入业务类型未查询到相应表单,请检查!"); |
| | | if (listR.getData().isEmpty()) { |
| | | throw new VciBaseException(Func.isNotBlank(listR.getMsg()) ? listR.getMsg():"传入业务类型未查询到相应表单,请检查!"); |
| | | } |
| | | String namesql = ""; |
| | | if (StringUtils.isNotBlank(baseQueryObject.getConditionMap().get("name"))) { |
| | |
| | | ).orElseGet(ArrayList::new) |
| | | ); |
| | | if (CollectionUtils.isEmpty(voList)){ |
| | | return R.data(null); |
| | | return R.data(new ArrayList<>(),"暂无数据承载!"); |
| | | } |
| | | return R.data(voList); |
| | | } |
| | |
| | | */ |
| | | package com.vci.ubcs.system.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.IdWorker; |
| | |
| | | List<Map<String, Object>> mapList = listMaps(new QueryWrapper<Tenant>().select("TENANT_ID", "TENANT_NAME")); |
| | | if(Func.isNotEmpty(this.propertiesTenantId)){ |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("\"TENANT_ID\":\"管理组\"", "\""+this.propertiesTenantId+"\":\""+this.propertiesTenantId+"\""); |
| | | mapList.add(map); |
| | | map.put("TENANT_ID","this.propertiesTenantId"); |
| | | map.put("TENANT_NAME","管理组"); |
| | | mapList.add(0,map); |
| | | } |
| | | return mapList; |
| | | } |