Merge remote-tracking branch 'origin/master'
| | |
| | | package com.vci.web.controller; |
| | | |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.omd.ltm.LinkType; |
| | | import com.vci.pagemodel.OsBtmTypeAttributeVO; |
| | | import com.vci.pagemodel.OsLinkTypeAttributeVO; |
| | | import com.vci.pagemodel.OsLinkTypeVO; |
| | |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | return BaseResult.success(); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 龿¥ç±»åçå表 |
| | | * |
| | | * @return 龿¥ç±»åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @GetMapping("/gridLink") |
| | | public BaseResult<List<LinkType>> gridLink(){ |
| | | try { |
| | | return linkTypeService.gridLink(); |
| | | } catch (PLException e) { |
| | | BaseResult objectBaseResult = new BaseResult<>(); |
| | | objectBaseResult.setCode(Integer.parseInt(e.code)); |
| | | objectBaseResult.setMsg(Arrays.toString(e.messages)); |
| | | return objectBaseResult; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 龿¥ç±»åä¿å |
| | | * linkType 龿¥ç±»åçä¿å对象 |
| | | * addFlag æ¯å¦ä¸ºæ°å¢ trueæ°å¢ï¼falseä¿®æ¹ |
| | | * @return ä¿åç»æ |
| | | */ |
| | | @GetMapping("/addAndEditLink") |
| | | public BaseResult addAndEditLink(@RequestBody LinkType linkType, Boolean addFlag){ |
| | | try { |
| | | return linkTypeService.addAndEditLink(linkType, addFlag); |
| | | } catch (PLException e) { |
| | | BaseResult objectBaseResult = new BaseResult<>(); |
| | | objectBaseResult.setCode(Integer.parseInt(e.code)); |
| | | objectBaseResult.setMsg(Arrays.toString(e.messages)); |
| | | return objectBaseResult; |
| | | } |
| | | } |
| | | } |
| | |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.omd.ltm.LinkType; |
| | | import com.vci.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.starter.web.pagemodel.BaseResult; |
| | | import com.vci.starter.web.pagemodel.DataGrid; |
| | | import com.vci.pagemodel.OsBtmTypeAttributeVO; |
| | | import com.vci.pagemodel.OsLinkTypeAttributeVO; |
| | |
| | | * @return æé误ç屿§ |
| | | */ |
| | | List<OsBtmTypeAttributeVO> checkAttributeTypeDifferent(String linkTypeOid); |
| | | /** |
| | | * 龿¥ç±»åçå表 |
| | | * |
| | | * @return 龿¥ç±»åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | BaseResult<List<LinkType>> gridLink() throws PLException; |
| | | /** |
| | | * 龿¥ç±»åä¿å |
| | | * linkType 龿¥ç±»åçä¿å对象 |
| | | * addFlag æ¯å¦ä¸ºæ°å¢ trueæ°å¢ï¼falseä¿®æ¹ |
| | | * @return ä¿åç»æ |
| | | */ |
| | | BaseResult addAndEditLink(LinkType linkType, Boolean addFlag) throws PLException; |
| | | } |
| | |
| | | import com.vci.starter.web.annotation.log.VciUnLog; |
| | | import com.vci.starter.web.enumpck.VciFieldTypeEnum; |
| | | import com.vci.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.starter.web.pagemodel.BaseResult; |
| | | import com.vci.starter.web.pagemodel.DataGrid; |
| | | import com.vci.starter.web.util.BeanUtil; |
| | | import com.vci.starter.web.util.VciBaseUtil; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 龿¥ç±»åçå表 |
| | | * |
| | | * @return 龿¥ç±»åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public BaseResult<List<LinkType>> gridLink() throws PLException { |
| | | |
| | | LinkType[] linkTypes = platformClientUtil.getLinkTypeService().getLinkTypes(); |
| | | return BaseResult.dataList(Arrays.asList(linkTypes)); |
| | | } |
| | | /** |
| | | * 龿¥ç±»åä¿å |
| | | * linkType 龿¥ç±»åçä¿å对象 |
| | | * addFlag æ¯å¦ä¸ºæ°å¢ trueæ°å¢ï¼falseä¿®æ¹ |
| | | * @return ä¿åç»æ |
| | | */ |
| | | @Override |
| | | public BaseResult addAndEditLink(LinkType linkType, Boolean addFlag) throws PLException { |
| | | VciBaseUtil.alertNotNull(linkType.name,"请è¾å
¥é¾æ¥ç±»ååç§°",linkType.btmItemsFrom,"From端ä¸å¡ç±»åä¸è½ä¸ºç©º!", |
| | | linkType.btmItemsTo,"To端类ååä¸è½ä¸ºç©º!"); |
| | | int maxLength = platformClientUtil.getLinkTypeService().getLTNameMaxLength(); |
| | | if(linkType.name.length() > maxLength){ |
| | | throw new PLException("500",new String[] {"龿¥ç±»ååé¿åº¦ä¸è½è¶
è¿" + maxLength}); |
| | | } |
| | | if(!linkType.name.matches("^[A-Za-z]+$")){ |
| | | throw new PLException("500",new String[] {"龿¥ç±»ååç§°åªè½ä¸ºè±æåæ¯"}); |
| | | } |
| | | LinkType historyLink = platformClientUtil.getLinkTypeService().getLinkType(linkType.name); |
| | | if(historyLink != null && !historyLink.name.equals("") && addFlag){ |
| | | throw new PLException("500",new String[] {"è¯¥é¾æ¥ç±»ååç§°å·²ç»åå¨"}); |
| | | } |
| | | linkType.modifier = WebUtil.getCurrentUserId(); |
| | | if(addFlag){ |
| | | linkType.creator = WebUtil.getCurrentUserId(); |
| | | platformClientUtil.getLinkTypeService().addLinkType(linkType); |
| | | return BaseResult.success(null,"ä¿åæåï¼"); |
| | | } |
| | | ArrayList<String> removeAbList = getRemovedApList(historyLink, linkType); |
| | | if(removeAbList.size() > 0 && platformClientUtil.getLinkTypeService().hasData(linkType.name)){ |
| | | linkType.attributes = historyLink.attributes; |
| | | platformClientUtil.getLinkTypeService().modifyLinkType(linkType); |
| | | throw new PLException("500",new String[] {"ç±»åå·²æå®ä¾, ä¸è¿è¡ç§»é¤æä½"}); |
| | | } |
| | | platformClientUtil.getLinkTypeService().modifyLinkType(linkType); |
| | | return BaseResult.success(null,"ä¿åæåï¼"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * è·åä¿®æ¹é¾æ¥ç±»åæ¶ åå°ç屿§ |
| | | * @param oldLt |
| | | * @param newLt |
| | | * @return |
| | | */ |
| | | private ArrayList<String> getRemovedApList(LinkType oldLt, |
| | | LinkType newLt) { |
| | | String[] oldAbInfo = oldLt.attributes; |
| | | ArrayList<String> oldNameList = new ArrayList<String>(); |
| | | for(int i = 0; i < oldAbInfo.length; i++){ |
| | | oldNameList.add(oldAbInfo[i]); |
| | | } |
| | | String[] newAbInfo = newLt.attributes; |
| | | ArrayList<String> newNameList = new ArrayList<String>(); |
| | | for(int i = 0; i < newAbInfo.length; i++){ |
| | | newNameList.add(newAbInfo[i]); |
| | | } |
| | | |
| | | ArrayList<String> removedApList = new ArrayList<String>(); |
| | | |
| | | for(Iterator<String> iterator = oldNameList.iterator(); iterator.hasNext();){ |
| | | String oldName = iterator.next(); |
| | | if(!newNameList.contains(oldName)){ |
| | | removedApList.add(oldName); |
| | | } |
| | | } |
| | | return removedApList; |
| | | } |
| | | |
| | | /** |
| | | * æ¸
é¤ç¼å |
| | | */ |
| | | @Override |
¶Ô±ÈÐÂÎļþ |
| | |
| | | import request from '@/router/axios'; |
| | | |
| | | // å表æ¥è¯¢ |
| | | export function gridAttribute(page,limit,params) { |
| | | return request({ |
| | | url: "/api/attributeController/gridAttribute", |
| | | method: "get", |
| | | params:{ |
| | | page, |
| | | limit, |
| | | ...params |
| | | } |
| | | }); |
| | | } |
| | |
| | | { |
| | | path: '/', |
| | | name: '主页', |
| | | redirect: '/wel' |
| | | redirect: '/wel/index' |
| | | }, |
| | | { |
| | | path: '/myiframe', |
| | |
| | | :areasData="uiDefineVO.centerAreas" |
| | | :dataStore="checkedData.centerArea.data" |
| | | :inDialog="inDialog" |
| | | :sourceData="checkedData.westArea.data[checkedData.westArea.data.length-1]" |
| | | :sourceBtmType="checkedData.westArea.DefineVOBtmType" |
| | | :sourceData="uiDefineVO.westAreas && uiDefineVO.westAreas.length>0?checkedData.westArea.data[checkedData.westArea.data.length-1]:sourceData" |
| | | :sourceBtmType="uiDefineVO.westAreas && uiDefineVO.westAreas.length>0?checkedData.westArea.DefineVOBtmType:btmType" |
| | | areas-name="centerArea" |
| | | cradStyle="" |
| | | @setDataStore="setDataStore"> |
| | |
| | | <template> |
| | | <p>屿§æ± </p> |
| | | <el-container> |
| | | <el-main> |
| | | <basic-container> |
| | | <avue-crud |
| | | ref="userCrud" |
| | | :data="tableData" |
| | | :option="option" |
| | | :page.sync="page" |
| | | :table-loading="tableLoading" |
| | | @on-load="getTableList" |
| | | @refresh-change="handleRefresh" |
| | | @search-change="handleSearch" |
| | | @search-reset="handleReset" |
| | | @selection-change="selectChange" |
| | | @row-click="rowClickHandler" |
| | | @size-change="sizeChange" |
| | | @current-change="currentChange" |
| | | > |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button icon="el-icon-plus" size="small" type="primary" @click="rowSaveHandlerClick">å建</el-button> |
| | | <el-button icon="el-icon-delete" plain size="small" type="danger" @click="allDelHandler">å é¤</el-button> |
| | | <el-button icon="el-icon-view" plain size="small" type="primary" @click="chekView">æ¥ç使ç¨èå´</el-button> |
| | | </template> |
| | | |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button icon="el-icon-edit" size="small" type="text" @click="editBtnClick(scope.row)">ç¼è¾ |
| | | </el-button> |
| | | <el-button icon="el-icon-delete" size="small" type="text" @click="rowDeleteHandler(scope.row)">å é¤ |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </el-main> |
| | | |
| | | <el-aside width="30%"> |
| | | <basic-container> |
| | | <div style="height: 85vh; overflow-y: auto"> |
| | | <el-descriptions :column="1" border size="medium" title="屿§é¡¹"> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | åç§° |
| | | </template> |
| | | åç§° |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æ ç¾ |
| | | </template> |
| | | æ ç¾ |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æè¿° |
| | | </template> |
| | | æè¿° |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æä½ç±»å |
| | | </template> |
| | | æä½ç±»å |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | |
| | | <el-descriptions :column="1" border class="margin-top" size="medium" title="VTString"> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | å
许为空 |
| | | </template> |
| | | <el-tag type="success">æ¯</el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 精度 |
| | | </template> |
| | | 精度 |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | é¿åº¦ |
| | | </template> |
| | | é¿åº¦ |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | é»è®¤å¼ |
| | | </template> |
| | | é»è®¤å¼ |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | |
| | | <el-descriptions :column="1" border class="margin-top" size="medium" title="å¼å"> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | å½åç±»å |
| | | </template> |
| | | ä¸å¡ç±»å |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | å½åç±»åå¼ |
| | | </template> |
| | | |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | å½åçæ¬æ¬¡ |
| | | </template> |
| | | |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | ä½¿ç¨æä¸¾ |
| | | </template> |
| | | <el-tag type="success">æ¯</el-tag> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æä¸¾ç±»å |
| | | </template> |
| | | æä¸¾ç±»å |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æä¸¾å¼ |
| | | </template> |
| | | |
| | | </el-descriptions-item> |
| | | |
| | | </el-descriptions> |
| | | |
| | | </div> |
| | | </basic-container> |
| | | </el-aside> |
| | | </el-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import {gridAttribute} from "@/api/modeling/attributePool/api"; |
| | | import basicOption from '@/util/basic-option'; |
| | | import {column} from "./option" |
| | | |
| | | export default { |
| | | name: "index" |
| | | name: "index", |
| | | data() { |
| | | return { |
| | | tableData: [], |
| | | option: { |
| | | ...basicOption, |
| | | searchMenuSpan: 8, |
| | | calcHeight: -60, |
| | | addBtn: false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | column |
| | | }, |
| | | tableLoading: false, |
| | | page: { |
| | | currentPage: 1, |
| | | pageSize: 10, |
| | | total: 0, |
| | | pageSizes: [10, 30, 50, 100], |
| | | }, |
| | | searchParams: {}, |
| | | selectList: [] |
| | | } |
| | | }, |
| | | methods: { |
| | | //è¡¨æ ¼æ¥è¯¢è¯·æ± |
| | | getTableList() { |
| | | this.tableLoading = true; |
| | | gridAttribute(this.page.currentPage, this.page.pageSize, this.searchParams).then(res => { |
| | | const data = res.data.data; |
| | | this.tableData = data; |
| | | this.page.total = res.data.total; |
| | | this.tableLoading = false; |
| | | }).catch(err => { |
| | | this.$message.error(err) |
| | | }); |
| | | }, |
| | | |
| | | // è¡¨æ ¼å¤´é¨å·æ° |
| | | handleRefresh() { |
| | | this.getTableList(); |
| | | }, |
| | | |
| | | // æç´¢ |
| | | handleSearch() { |
| | | |
| | | }, |
| | | |
| | | // éç½®æç´¢æ¡ä»¶ |
| | | handleReset() { |
| | | |
| | | }, |
| | | |
| | | // éæ©æ¡ |
| | | selectChange(row) { |
| | | this.selectList = row; |
| | | }, |
| | | |
| | | // ç¹å»è¡ |
| | | rowClickHandler(row) { |
| | | this.$refs.userCrud.toggleRowSelection(row); |
| | | }, |
| | | |
| | | // æ¡æ° |
| | | sizeChange(val) { |
| | | this.page.pageSize = val; |
| | | }, |
| | | |
| | | // 页ç |
| | | currentChange(val) { |
| | | this.page.currentPage = val; |
| | | }, |
| | | |
| | | rowSaveHandlerClick() { |
| | | }, |
| | | |
| | | allDelHandler() { |
| | | |
| | | }, |
| | | |
| | | chekView() { |
| | | |
| | | }, |
| | | |
| | | editBtnClick() { |
| | | |
| | | }, |
| | | |
| | | rowDeleteHandler() { |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | <style lang="scss" scoped> |
| | | .margin-top{ |
| | | margin-top: 25px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | export const column = [ |
| | | { |
| | | label: '屿§å', |
| | | prop: 'id', |
| | | search:true, |
| | | sortable:true, |
| | | }, |
| | | { |
| | | label: 'ç±»å', |
| | | prop: 'attributeDataTypeText', |
| | | sortable:true, |
| | | }, |
| | | { |
| | | label: 'é»è®¤å¼', |
| | | prop: 'defaultValue', |
| | | sortable:true, |
| | | }, |
| | | { |
| | | label: 'æè¿°', |
| | | prop: 'description', |
| | | }, |
| | | ]; |
| | |
| | | <template> |
| | | <el-container> |
| | | <el-main> |
| | | <basic-container> |
| | | <avue-crud |
| | | ref="userCrud" |
| | |
| | | <el-button icon="el-icon-plus" size="small" type="primary" @click="rowSaveHandlerClick">å建</el-button> |
| | | <el-button icon="el-icon-delete" plain size="small" type="danger" @click="allDelHandler">å é¤</el-button> |
| | | <el-button icon="el-icon-view" plain size="small" type="primary" @click="chekView">æ¥ç使ç¨èå´</el-button> |
| | | <el-button icon="el-icon-download" plain size="small" type="primary" @click="downloadTemplateHandler">ä¸è½½å¯¼å
¥æ¨¡æ¿</el-button> |
| | | <el-button icon="el-icon-download" plain size="small" type="primary" @click="downloadTemplateHandler">ä¸è½½å¯¼å
¥æ¨¡æ¿ |
| | | </el-button> |
| | | <el-button icon="el-icon-download" plain size="small" type="primary" @click="downloadHandler">导åº</el-button> |
| | | <el-button icon="el-icon-upload2" plain size="small" type="primary" @click="uploadUser">导å
¥</el-button> |
| | | </template> |
| | |
| | | <el-dialog |
| | | v-dialogDrag |
| | | v-loading="checkViewLoading" |
| | | title="æ¥ç使ç¨èå´" |
| | | :visible.sync="checkViewVisible" |
| | | append-to-body="true" |
| | | class="avue-dialog" |
| | | title="æ¥ç使ç¨èå´" |
| | | width="70%" |
| | | > |
| | | <avue-crud |
| | |
| | | </el-dialog> |
| | | |
| | | <!--导å
¥ --> |
| | | <upload-file ref="upload" :tipList="tipList" :fileType="upFileType" :fileUrl="fileUrl" title="导å
¥" @updata="getTableList"></upload-file> |
| | | <upload-file ref="upload" :fileType="upFileType" :fileUrl="fileUrl" :tipList="tipList" title="导å
¥" |
| | | @updata="getTableList"></upload-file> |
| | | </basic-container> |
| | | </el-main> |
| | | |
| | | <el-aside width="30%"> |
| | | <basic-container> |
| | | <el-descriptions :column="1" border size="medium" style="margin-bottom: 20px" title="æä¸¾ä¿¡æ¯"> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | åç§° |
| | | </template> |
| | | {{ this.lastItem.id }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | æ ç¾ |
| | | </template> |
| | | {{ this.lastItem.name }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | ç±»å |
| | | </template> |
| | | {{ this.lastItem.enumValueDataType || 'String' }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | é¿åº¦ |
| | | </template> |
| | | <el-tag> {{ this.lastItem.length || 50 }}</el-tag> |
| | | </el-descriptions-item> |
| | | |
| | | </el-descriptions> |
| | | |
| | | <p style="font-weight: bold">æä¸¾é¡¹</p> |
| | | <avue-crud |
| | | :data="asideData" |
| | | :option="asideOption" |
| | | > |
| | | </avue-crud> |
| | | </basic-container> |
| | | </el-aside> |
| | | </el-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import basicOption from '@/util/basic-option' |
| | | import {getEnumTypeList, addEnumType, updateEnumType, deleteEnumTypes,getUsedEnumList,download,downloadEnumTemplate} from "@/api/modeling/enumType/api"; |
| | | import { |
| | | getEnumTypeList, |
| | | addEnumType, |
| | | updateEnumType, |
| | | deleteEnumTypes, |
| | | getUsedEnumList, |
| | | download, |
| | | downloadEnumTemplate |
| | | } from "@/api/modeling/enumType/api"; |
| | | import func from "@/util/func"; |
| | | import {deleteUser} from "@/api/system/user/api"; |
| | | |
| | | export default { |
| | | name: "index", |
| | | data() { |
| | | return { |
| | | tipList:["导å
¥æ¨¡æ¿ä¸æ æçº¢è²åä½ç为å¿
è¾é¡¹","*注æ*:第äºè¡å¼å§çæ°æ®ä¸ºç¤ºä¾æ°æ®ï¼å¯¼å
¥å请å°å
¶å é¤ï¼å½å¯¼å
¥çæä¸¾ä¸å
·å¤å¤ä¸ªæä¸¾é¡¹æ¶ï¼åºæç
§ç¤ºä¾enum2çåæ³", |
| | | "æä¸¾é¡¹åç§°(å½åæä¸¾ä¸ææä¸¾é¡¹æ¶å¿
å¡«)","æä¸¾å¼(å½åæä¸¾ä¸ææä¸¾é¡¹æ¶å¿
å¡«)"], |
| | | asideOption: { |
| | | ...basicOption, |
| | | addBtn: false, |
| | | editBtn: false, |
| | | menu: false, |
| | | refreshBtn: false, |
| | | selection: false, |
| | | index: false, |
| | | column: [ |
| | | { |
| | | label: 'æä¸¾é¡¹åç§°', |
| | | prop: 'name', |
| | | sortable: true, |
| | | }, |
| | | { |
| | | label: 'æä¸¾å¼', |
| | | prop: 'value', |
| | | sortable: true, |
| | | }, |
| | | { |
| | | label: 'æè¿°', |
| | | prop: 'description', |
| | | }, |
| | | ] |
| | | }, |
| | | tipList: [ |
| | | "导å
¥æ¨¡æ¿ä¸æ æçº¢è²åä½ç为å¿
è¾é¡¹", |
| | | "*注æ*:第äºè¡å¼å§çæ°æ®ä¸ºç¤ºä¾æ°æ®ï¼å¯¼å
¥å请å°å
¶å é¤ï¼å½å¯¼å
¥çæä¸¾ä¸å
·å¤å¤ä¸ªæä¸¾é¡¹æ¶ï¼åºæç
§ç¤ºä¾enum2çåæ³", |
| | | "æä¸¾é¡¹åç§°(å½åæä¸¾ä¸ææä¸¾é¡¹æ¶å¿
å¡«)", |
| | | "æä¸¾å¼(å½åæä¸¾ä¸ææä¸¾é¡¹æ¶å¿
å¡«)", |
| | | "导å
¥ä¸ä¸ªæä¸¾ä¸çå¤ä¸ªæä¸¾é¡¹æ¶ï¼è¯·å°æä¸¾åãæ ç¾ãè¿åç±»åãçä¿¡æ¯å¡«åä¸è´ï¼åå¡«åä¸åçæä¸¾é¡¹" |
| | | ], |
| | | upFileType: ['xls', 'xlsx'], |
| | | fileUrl: 'api/webEnumController/importEnumTypes', |
| | | checkViewOption:{ |
| | |
| | | searchParams:{} |
| | | } |
| | | }, |
| | | computed: { |
| | | lastItem() { |
| | | return this.selectList.length > 0 ? this.selectList[this.selectList.length - 1] : {}; |
| | | }, |
| | | asideData() { |
| | | return this.selectList.length > 0 ? this.selectList[this.selectList.length - 1].items : []; |
| | | } |
| | | }, |
| | | methods: { |
| | | //è¡¨æ ¼æ¥è¯¢è¯·æ± |
| | | getTableList() { |
| | |
| | | |
| | | // éæ©æ¡ |
| | | selectChange(row) { |
| | | console.log(row) |
| | | this.selectList = row; |
| | | }, |
| | | |
| | |
| | | this.dialogData = row.items; |
| | | this.dialogVisible = true; |
| | | this.editRow = row; |
| | | console.log(row); |
| | | }, |
| | | |
| | | // å 餿é®ç¹å» |
| | |
| | | ts: row.ts |
| | | } |
| | | let data = [params]; |
| | | this.$confirm('æ¨ç¡®å®è¦å é¤å½åçæ°æ®åï¼', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | deleteEnumTypes(data).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.obj); |
| | | this.getTableList(); |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '已忶å é¤' |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | // å¤éå é¤ |
| | |
| | | ts: item.ts |
| | | } |
| | | }) |
| | | this.$confirm('æ¨ç¡®å®è¦å é¤æéæ©çæ°æ®åï¼', 'æç¤º', { |
| | | confirmButtonText: 'ç¡®å®', |
| | | cancelButtonText: 'åæ¶', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | deleteEnumTypes(data).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.obj); |
| | | this.getTableList(); |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '已忶å é¤' |
| | | }); |
| | | }); |
| | | |
| | | |
| | | }, |
| | | |
| | | // å¯¹è¯æ¡æä¸¾ä¿å |
| | |
| | | if(!params.source) { |
| | | this.checkViewData = this.checkViewDataSearch; |
| | | return done(); |
| | | }; |
| | | } |
| | | ; |
| | | |
| | | this.checkViewData = this.checkViewData.filter(item => { |
| | | return item.source && item.source.includes(source); |
| | |
| | | label:'ä¸ä¸', |
| | | prop: 'specialties' |
| | | }, |
| | | { |
| | | label:'é¨é¨å¯ä¸æ è¯ID', |
| | | prop: 'uniqueId', |
| | | display:false, |
| | | }, |
| | | // { |
| | | // label:'é¨é¨å¯ä¸æ è¯ID', |
| | | // prop: 'uniqueId', |
| | | // display:false, |
| | | // }, |
| | | { |
| | | label: 'æè¿°', |
| | | prop: 'description', |
| | |
| | | } |
| | | done(); |
| | | }, |
| | | |
| | | // è¡¨æ ¼è¯·æ± |
| | | getTableList() { |
| | | this.tableLoading = true; |