Merge remote-tracking branch 'origin/master'
| | |
| | | * ç¶èç¹id |
| | | */ |
| | | private String plActionCls; |
| | | /** |
| | | * 徿 |
| | | */ |
| | | private String plImage; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | package com.vci.pagemodel; |
| | | |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * æä½ç±»å屿§ |
| | | */ |
| | | @Data |
| | | public class OperateVO implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | private String id; |
| | | private String name;// åç§° |
| | | private String identify;// æ è¯ |
| | | private String alias;//å«å |
| | | private String desc;// æè¿° |
| | | private long seq;//é¡ºåº |
| | | private String source;//徿 |
| | | } |
| | |
| | | import com.vci.dto.RoleInfoDTO; |
| | | import com.vci.dto.RoleRightParamDTO; |
| | | import com.vci.dto.RoleRightParamDTOS; |
| | | import com.vci.pagemodel.OperateVO; |
| | | import com.vci.web.service.ISmFunctionQueryService; |
| | | import com.vci.web.service.SmHMSysModConfigServiceI; |
| | | import com.vci.pagemodel.AppConfigDetailInfoVO; |
| | |
| | | |
| | | /** |
| | | * æ·»å æä½ç±»å |
| | | * @param operateInfo |
| | | * @param operateVO |
| | | * @return |
| | | */ |
| | | @PostMapping("/addOperationType") |
| | | public BaseResult addOperationType(@RequestBody OperateInfo operateInfo) { |
| | | public BaseResult addOperationType(@RequestBody OperateVO operateVO) { |
| | | try { |
| | | return BaseResult.success(hmSysModConfigService.addOperationType(operateInfo),"æ·»å æä½ç±»åæå"); |
| | | return BaseResult.success(hmSysModConfigService.addOperationType(operateVO),"æ·»å æä½ç±»åæå"); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | String errorMsg = "æ·»å æä½ç±»åæ¶åºç°é误ï¼åå ï¼"+ VciBaseUtil.getExceptionMessage(e); |
| | |
| | | |
| | | /** |
| | | * ä¿®æ¹æä½ç±»å |
| | | * @param operateInfo |
| | | * @param operateVO |
| | | * @return |
| | | */ |
| | | @PutMapping("/updateOperationType") |
| | | public BaseResult updateOperationType(@RequestBody OperateInfo operateInfo) { |
| | | public BaseResult updateOperationType(@RequestBody OperateVO operateVO) { |
| | | try { |
| | | return BaseResult.success(hmSysModConfigService.updateOperationType(operateInfo),"ä¿®æ¹æä½ç±»åæå"); |
| | | return BaseResult.success(hmSysModConfigService.updateOperationType(operateVO),"ä¿®æ¹æä½ç±»åæå"); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | String errorMsg = "ä¿®æ¹æä½ç±»åæ¶åºç°é误ï¼åå ï¼"+ VciBaseUtil.getExceptionMessage(e); |
| | |
| | | import com.vci.corba.framework.data.*; |
| | | import com.vci.pagemodel.ExpExcelConditionVO; |
| | | import com.vci.pagemodel.MenuVO; |
| | | import com.vci.pagemodel.OperateVO; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.starter.web.pagemodel.BaseResult; |
| | | |
| | |
| | | * å¢å æä½ç±»å |
| | | * @return |
| | | */ |
| | | OperateInfo addOperationType(OperateInfo operateInfo); |
| | | OperateInfo addOperationType(OperateVO operateVO); |
| | | |
| | | /** |
| | | * ä¿®æ¹æä½ç±»å |
| | | * @param operateInfo |
| | | * @param operateVO |
| | | * @return |
| | | */ |
| | | OperateInfo updateOperationType(OperateInfo operateInfo) throws VciBaseException; |
| | | OperateInfo updateOperationType(OperateVO operateVO) throws VciBaseException; |
| | | |
| | | /** |
| | | * å 餿ä½ç±»å |
| | |
| | | plAction.plModifyUser = WebUtil.getCurrentUserId(); |
| | | plAction.plActionCls = StringUtils.defaultString(dto.getPlActionCls()); |
| | | plAction.plTypeType = StringUtils.defaultString(dto.getPlTypeType()); |
| | | plAction.plImage = StringUtils.defaultString(dto.getPlImage()); |
| | | boolean b = platformClientUtil.getUIService().savePLAction(plAction); |
| | | if(!b){ |
| | | throw new PLException("500", new String[]{"ä¿å失败ï¼ï¼"}); |
| | |
| | | plAction.plModifyUser = WebUtil.getCurrentUserId(); |
| | | plAction.plActionCls = StringUtils.defaultString(dto.getPlActionCls()); |
| | | plAction.plTypeType = StringUtils.defaultString(dto.getPlTypeType()); |
| | | plAction.plImage = StringUtils.defaultString(dto.getPlImage()); |
| | | boolean b = platformClientUtil.getUIService().updatePLAction(plAction); |
| | | if(!b){ |
| | | throw new PLException("500", new String[]{"ä¿®æ¹å¤±è´¥ï¼ï¼"}); |
| | |
| | | plAction.plModifyUser = WebUtil.getCurrentUserId(); |
| | | plAction.plActionCls = StringUtils.defaultString(dto.getPlActionCls()); |
| | | plAction.plTypeType = StringUtils.defaultString(dto.getPlTypeType()); |
| | | plAction.plImage = StringUtils.defaultString(dto.getPlImage()); |
| | | boolean b = platformClientUtil.getUIService().deletePLAction(plAction); |
| | | if(!b){ |
| | | throw new PLException("500", new String[]{"å é¤å¤±è´¥ï¼ï¼"}); |
| | |
| | | menuVO.setSort((int) operateInfo.seq); |
| | | menuVO.setModeType("operateObject"); |
| | | menuVO.setHasChildren(false); |
| | | menuVO.setSource(operateInfo.image); |
| | | menuVOList.add(menuVO); |
| | | } |
| | | }catch (PLException e) { |
| | |
| | | import com.vci.corba.framework.data.*; |
| | | import com.vci.pagemodel.ExpExcelConditionVO; |
| | | import com.vci.pagemodel.MenuVO; |
| | | import com.vci.pagemodel.OperateVO; |
| | | import com.vci.starter.poi.bo.SheetDataSet; |
| | | import com.vci.starter.poi.bo.SheetRowData; |
| | | import com.vci.starter.poi.bo.WriteExcelData; |
| | |
| | | import com.vci.web.util.PlatformClientUtil; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | VciBaseUtil.alertNotNull(menuVO,"ä¿®æ¹ç模å对象"); |
| | | try { |
| | | String res = ""; |
| | | if(!menuVO.getAlias().matches("[a-z A-Z \\p{Punct}+]*")){ |
| | | throw new VciBaseException("注æï¼å±æ§ååªè½ä¸ºè±æåæ¯!"); |
| | | } |
| | | //æ´æ°æ°æ®åº |
| | | res = foDelegate.updateMod(menuVO); |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * æä½å¯¹è±¡å¤å¶ |
| | | * @param operateVO æä½ä¼ è¾å¯¹è±¡ |
| | | * @param operateInfo æä½ä¿¡æ¯ |
| | | */ |
| | | private void copyOperationProperties(OperateVO operateVO, OperateInfo operateInfo){ |
| | | operateInfo.id = operateVO.getId(); |
| | | operateInfo.name = operateVO.getName(); |
| | | operateInfo.alias = operateVO.getAlias(); |
| | | operateInfo.image = operateVO.getSource(); |
| | | operateInfo.desc = operateVO.getDesc(); |
| | | operateInfo.identify = operateVO.getIdentify(); |
| | | operateInfo.seq = operateVO.getSeq(); |
| | | } |
| | | |
| | | /** |
| | | * å¢å æä½ç±»å |
| | | * @return |
| | | */ |
| | | @Override |
| | | public OperateInfo addOperationType(OperateInfo operateInfo) throws VciBaseException { |
| | | public OperateInfo addOperationType(OperateVO operateVO) throws VciBaseException { |
| | | try { |
| | | OperateInfo operateInfo = new OperateInfo(); |
| | | copyOperationProperties(operateVO,operateInfo); |
| | | operateInfo.image = operateVO.getSource(); |
| | | //æ ¡éª |
| | | this.checkItem(operateInfo); |
| | | String s = foDelegate.saveOperate(operateInfo); |
| | |
| | | |
| | | /** |
| | | * ä¿®æ¹æä½ç±»å |
| | | * @param operateInfo |
| | | * @param operateVO |
| | | * @return |
| | | */ |
| | | @Override |
| | | public OperateInfo updateOperationType(OperateInfo operateInfo) throws VciBaseException { |
| | | public OperateInfo updateOperationType(OperateVO operateVO) throws VciBaseException { |
| | | try { |
| | | OperateInfo operateInfo = new OperateInfo(); |
| | | copyOperationProperties(operateVO, operateInfo); |
| | | this.checkItem(operateInfo); |
| | | operateInfo.image = operateVO.getSource(); |
| | | String res = foDelegate.updateOperate(operateInfo); |
| | | /**è¿å1表示åç§°æéå¤ï¼è¿å2表示æ è¯æéå¤,è¿å3è¡¨ç¤ºé¡ºåºæéå¤**/ |
| | | if (res.equals("1")) { |
| | |
| | | if (operateInfo.name.length() > 128) { |
| | | throw new VciBaseException("åç§°é¿åº¦ä¸è½è¶
è¿128ï¼"); |
| | | } |
| | | if (operateInfo.desc.length() > 255) { |
| | | if (operateInfo.desc != null &&operateInfo.desc.length() > 255) { |
| | | throw new VciBaseException("æè¿°é¿åº¦ä¸è½è¶
è¿255ï¼"); |
| | | } |
| | | if (operateInfo.alias.length() > 128) { |
| | |
| | | svg{ |
| | | font-size: inherit; |
| | | height: 100%; |
| | | width:auto; |
| | | width:100%; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <div> |
| | | <el-input :width="width" :class="inputClass" :style="inputStyle" :clearable="true" :value="value" |
| | | :disabled="disabled" :placeholder="placeholder" type="text" :size="size" @clear="clearValue" @focus="handleFocus"> |
| | | <span slot="append" v-html="svgHtml" style="font-size: 20px;padding:3px 10px;width:20px;height:20px;display: block" @click="handleFocus"></span> |
| | | <span slot="append" v-html="svgHtml" style="font-size: 18px;padding:3px 10px;width:18px;height:18px;display: block" @click="handleFocus"></span> |
| | | </el-input> |
| | | <el-dialog v-dialogDrag |
| | | v-dialog-resize |
| | |
| | | .el-input-group__append, .el-input-group__prepend{ |
| | | padding: 0; |
| | | } |
| | | svg{ |
| | | font-size: inherit; |
| | | height: 100%; |
| | | width:100%; |
| | | } |
| | | } |
| | | .tag-group{font-size: 14px;} |
| | | .el-tag{ |
| | |
| | | } |
| | | .iconList .iconItem .svgContent{ |
| | | font-size: 24px; |
| | | width: 24px; |
| | | height: 24px; |
| | | margin: 0 auto; |
| | | } |
| | | .iconList .iconItem .svgContent:hover{ |
| | | transform: scale(1.5); |
| | |
| | | @click="open(item)"> |
| | | <div style="display: flex"> |
| | | <icon-show :name="item[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show> |
| | | <span slot="title" |
| | | <span slot="title" style="margin-left: 8px;" |
| | | :alt="item[pathKey]" |
| | | :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span> |
| | | </div> |
| | |
| | | <template slot="title"> |
| | | <div style="display: flex"> |
| | | <icon-show :name="item[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show> |
| | | <span slot="title" |
| | | <span slot="title" style="margin-left: 8px;" |
| | | :class="{'el-menu--display':collapse && first}">{{ generateTitle(item) }}</span> |
| | | </div> |
| | | </template> |
| | |
| | | @click="open(child)"> |
| | | <div style="display: flex"> |
| | | <icon-show :name="child[iconKey]" class="iconShowSpan" :style="{ height: iconSize, width: iconSize }"></icon-show> |
| | | <span slot="title">{{ generateTitle(child) }}</span> |
| | | <span slot="title" style="margin-left: 8px;">{{ generateTitle(child) }}</span> |
| | | </div> |
| | | </el-menu-item> |
| | | <sidebar-item v-else |
| | |
| | | open(item) { |
| | | const query = { |
| | | ...item.query, |
| | | id:item.id |
| | | id:item.id, |
| | | name:item.name |
| | | } |
| | | if (this.screen <= 1) this.$store.commit("SET_COLLAPSE"); |
| | | if (this.validIsOpen(item)) { |
| | |
| | | outline: 0; |
| | | background-color: #060708; |
| | | } |
| | | |
| | | .iconShowSpan{ |
| | | display: inline-block; |
| | | margin-top: -2px; |
| | | margin-right: 10px; |
| | | color: rgba(255, 255, 255, 0.7); |
| | | } |
| | | .el-menu-item .iconShowSpan,.el-submenu__title .iconShowSpan{ |
| | | margin-top: -2px; |
| | | } |
| | | .el-submenu__title:hover .iconShowSpan{ |
| | | color: #ffffff; |
| | | } |
| | |
| | | icon = oMenu[propsDefault.icon], |
| | | children = oMenu[propsDefault.children], |
| | | meta = oMenu[propsDefault.meta] || {}; |
| | | meta.keepAlive=true; |
| | | // metaä¸ keepalive çå¤ç |
| | | meta = Object.assign(meta, (function () { |
| | | if (option.keepAlive === true) { |
| | |
| | | height: 16px !important; |
| | | margin-right: 6px; |
| | | } |
| | | |
| | | /* |
| | | æ |
| | | */ |
| | |
| | | margin-right: 3px; |
| | | } |
| | | .el-tree-node__label [class*=" el-icon-"],.el-tree-node__label [class^=el-icon-]{ |
| | | font-size: 14px;margin-top: 3px; |
| | | font-size: 14px;margin-top: 4px; margin-right: 3px; |
| | | } |
| | | |
| | | .el-select{ |
| | |
| | | {{ row.plTypeType === 'business' ? 'ä¸å¡ç±»å' : '龿¥ç±»å' }} |
| | | </el-tag> |
| | | </template> |
| | | <template slot="plImage" slot-scope="{row}"> |
| | | <span class="avue-icon"> |
| | | <icon-show :name="row.plImage"></icon-show> |
| | | </span> |
| | | </template> |
| | | </avue-crud> |
| | | </div> |
| | | </basic-container> |
| | |
| | | search: true |
| | | }, |
| | | { |
| | | label: 'C/S类路å¾', |
| | | prop: 'plCSClass', |
| | | label: '徿 ', |
| | | prop: 'plImage', |
| | | search: true, |
| | | searchLabelWidth:120, |
| | | overHidden: true, |
| | |
| | | @refresh-change="handleRefresh" |
| | | @selection-change="selectChangeHandler" |
| | | @row-click="rowClickHandler"> |
| | | <template slot="plCSClass" slot-scope="{row}"> |
| | | <template slot="plImage" slot-scope="{row}"> |
| | | <span class="avue-icon"> |
| | | <icon-show :name="row.plCSClass"></icon-show> |
| | | <icon-show :name="row.plImage"></icon-show> |
| | | </span> |
| | | </template> |
| | | <template slot-scope="{type,disabled}" slot="plCSClassForm"> |
| | | <input-icon :disabled="disabled" v-model="form.plCSClass"></input-icon> |
| | | <template slot-scope="{type,disabled}" slot="plImageForm"> |
| | | <input-icon :disabled="disabled" v-model="form.plImage"></input-icon> |
| | | </template> |
| | | <template slot="plTypeType" slot-scope="{row}"> |
| | | <el-tag :type="row.plTypeType === 'business' ? '' : 'success'"> |
| | |
| | | }, |
| | | { |
| | | label: '徿 ', |
| | | prop: 'plCSClass', |
| | | prop: 'plImage', |
| | | width: 80, |
| | | rules: [ |
| | | { |
| | |
| | | actionSaveHandler(val) { |
| | | this.$set(this.basicForm, 'actionName', val.plName); |
| | | this.$set(this.basicForm, 'actionOId', val.plOId); |
| | | this.$set(this.basicForm, 'iconPath', val.plCSClass);//徿 |
| | | this.$set(this.basicForm, 'iconPath', val.plImage);//徿 |
| | | this.$refs.form.clearValidate('Action') |
| | | }, |
| | | // action鿩弹çªç´æ¥å
³é |
| | |
| | | @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="display: flex"> |
| | | <icon-show :name="data.icon"></icon-show> |
| | | <icon-show v-if="data.iconType=='svg'" :name="data.icon"></icon-show> |
| | | <i v-else :class="data.icon"></i> |
| | | {{ (node || {}).label }} |
| | | </span> |
| | | </span> |
| | |
| | | <el-form ref="form" :model="form" label-width="100px" size="small" |
| | | style="max-height: calc(100vh - 200px);overflow: auto;"> |
| | | <span v-if="form.category !== 1"> |
| | | <el-form-item> |
| | | <span slot="label" style="display:inline-block;"> |
| | | èåæ è¯ï¼ |
| | | <el-tooltip class="item" content="请è¾å
¥è±æå符ï¼å¹¶ä¿è¯å¯ä¸æ§ï¼" effect="dark" placement="top-start"> |
| | | <i class='el-icon-star-on' style="color: #F56C6C"/> |
| | | </el-tooltip> |
| | | </span> |
| | | <el-input v-model="form.alias" :disabled="!editStatus && !addStatus" |
| | | placeholder="请è¾å
¥è±æå符ï¼å¹¶ä¿è¯å¯ä¸æ§ï¼"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <span slot="label" style="display:inline-block;"> |
| | | 模ååï¼ |
| | | <i class='el-icon-star-on' style="color: #F56C6C"/> |
| | | </span> |
| | | <el-form-item class="is-required"> |
| | | <span slot="label">模ååï¼</span> |
| | | <el-input v-model="form.name" :disabled="!editStatus && !addStatus" placeholder="请è¾å
¥æ¨¡åå"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <span slot="label" style="display:inline-block;"> |
| | | åºå·ï¼ |
| | | <el-tooltip class="item" content="æ°åï¼æè¿°è¯¥æ¨¡åå¨å
¶ç¶æ¨¡åä¸çæ¾ç¤ºé¡ºåº" effect="dark" placement="top-start"> |
| | | <i class='el-icon-star-on' style="color: #F56C6C"/> |
| | | </el-tooltip> |
| | | </span> |
| | | <el-input v-model="form.sort" :disabled="!editStatus && !addStatus" |
| | | placeholder="æ°åï¼æè¿°è¯¥æ¨¡åå¨å
¶ç¶æ¨¡åä¸çæ¾ç¤ºé¡ºåº"></el-input> |
| | | <el-form-item class="is-required"> |
| | | <span slot="label">模åå«åï¼</span> |
| | | <el-input v-model="form.alias" :disabled="!editStatus && !addStatus" placeholder="请è¾å
¥æ¨¡åå«å"></el-input> |
| | | </el-form-item> |
| | | <el-form-item class="is-required"> |
| | | <span slot="label">åºå·ï¼</span> |
| | | <el-input-number v-model="form.sort" :disabled="!editStatus && !addStatus"></el-input-number> |
| | | <el-link :underline="false" style="margin-left: 20px" type="danger">æ°åï¼æè¿°è¯¥æ¨¡åå¨å
¶ç¶æ¨¡åä¸çæ¾ç¤ºé¡ºåº</el-link> |
| | | </el-form-item> |
| | | <el-form-item v-if="form.functionType === 0" label="C/Sï¼"> |
| | | <el-input v-model="form.pathC" :disabled="!editStatus && !addStatus" :rows="2" placeholder="请è¾å
¥C/Sè·¯å¾" |
| | |
| | | </el-form-item> |
| | | </span> |
| | | <span v-if="form.category === 1"> |
| | | <el-form-item label="åç§°ï¼"> |
| | | <el-form-item label="åç§°ï¼" class="is-required"> |
| | | <el-input v-model="form.name" :disabled="form.category === 1" placeholder="请è¾å
¥åç§°"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æ è¯ï¼"> |
| | | <el-form-item label="æ è¯ï¼" class="is-required"> |
| | | <el-input v-model="form.code" :disabled="form.category === 1" placeholder="请è¾å
¥æ è¯"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å«åï¼"> |
| | | <el-form-item label="å«åï¼" class="is-required"> |
| | | <el-input v-model="form.alias" placeholder="请è¾å
¥å«å"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="ç¼å·ï¼"> |
| | | <el-input v-model="form.sort" :disabled="form.category === 1" placeholder="请è¾å
¥ç¼å·"></el-input> |
| | | <el-form-item label="ç¼å·ï¼" class="is-required"> |
| | | <el-input-number v-model="form.sort" :disabled="form.category === 1" :max="63" :min="1"></el-input-number> |
| | | </el-form-item> |
| | | <el-form-item label="æè¿°ï¼"> |
| | | <el-input v-model="form.remark" :disabled="form.category === 1" placeholder="请è¾å
¥æè¿°"></el-input> |
| | |
| | | active-color="#13ce66" |
| | | inactive-color="#ff4949"> |
| | | </el-switch> |
| | | |
| | | </el-form-item> |
| | | </span> |
| | | </el-form> |
| | |
| | | append-to-body="true" |
| | | class="avue-dialog" |
| | | title="æä½åç±»" |
| | | width="500px" |
| | | width="900px" |
| | | > |
| | | <avue-crud |
| | | ref="methodsCrud" |
| | |
| | | menu: false, |
| | | height: 500, |
| | | header: false, |
| | | column: [ |
| | | { |
| | | label: 'æä½åç±»', |
| | | column: [{ |
| | | label: 'åç§°', |
| | | prop: 'name', |
| | | width:180, |
| | | sortable: true, |
| | | } |
| | | ] |
| | | }, { |
| | | label: 'æ è¯', |
| | | prop: 'code', |
| | | width:180, |
| | | }, { |
| | | label: 'æè¿°', |
| | | prop: 'remark' |
| | | }] |
| | | }, |
| | | methodsLoading: false, |
| | | methodsVisble: false, |
| | |
| | | menu: false, |
| | | addBtn: false, |
| | | defaultExpandAll: false, |
| | | defaultExpandedKeys:['business'], |
| | | props: { |
| | | label: 'name', |
| | | label: 'label', |
| | | value: 'id', |
| | | children: 'children', |
| | | }, |
| | |
| | | resolve(res.data.data.map(item => { |
| | | return { |
| | | ...item, |
| | | id: item.id, |
| | | name: item.name, |
| | | label: item.category!=1?item.name:item.alias, |
| | | leaf: !item.hasChildren, |
| | | icon: item.source || 'iconoir:home' |
| | | icon: item.source || (node.level === 0?'el-icon-s-home':'el-icon-s-tools'), |
| | | iconType:item.source?'svg':'iconfont' |
| | | } |
| | | })) |
| | | }) |
| | |
| | | @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="display: flex"> |
| | | <icon-show :name="data.icon"></icon-show> |
| | | <icon-show v-if="data.iconType=='svg'" :name="data.icon"></icon-show> |
| | | <i v-else :class="data.icon"></i> |
| | | {{ (node || {}).label }} |
| | | </span> |
| | | </span> |
| | |
| | | </div> |
| | | <el-form ref="form" :model="form" label-width="100px" style="max-height: calc(100vh - 200px);overflow: auto;"> |
| | | <span v-if="form.category !== 1"> |
| | | <el-form-item> |
| | | <span slot="label" style="display:inline-block;"> |
| | | èåæ è¯ï¼ |
| | | <el-tooltip class="item" effect="dark" content="请è¾å
¥è±æå符ï¼å¹¶ä¿è¯å¯ä¸æ§ï¼" placement="top-start"> |
| | | <i class='el-icon-star-on' style="color: #F56C6C"/> |
| | | </el-tooltip> |
| | | </span> |
| | | <el-input v-model="form.alias" :disabled="!editStatus && !addStatus" |
| | | placeholder="请è¾å
¥è±æå符ï¼å¹¶ä¿è¯å¯ä¸æ§ï¼"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <span slot="label" style="display:inline-block;"> |
| | | 模ååï¼ |
| | | <i class='el-icon-star-on' style="color: #F56C6C"/> |
| | | </span> |
| | | <el-form-item class="is-required"> |
| | | <span slot="label">模ååï¼</span> |
| | | <el-input v-model="form.name" :disabled="!editStatus && !addStatus" placeholder="请è¾å
¥æ¨¡åå"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <span slot="label" style="display:inline-block;"> |
| | | åºå·ï¼ |
| | | <el-tooltip class="item" content="æ°åï¼æè¿°è¯¥æ¨¡åå¨å
¶ç¶æ¨¡åä¸çæ¾ç¤ºé¡ºåº" effect="dark" placement="top-start"> |
| | | <i class='el-icon-star-on' style="color: #F56C6C"/> |
| | | </el-tooltip> |
| | | </span> |
| | | <el-input v-model="form.sort" :disabled="!editStatus && !addStatus" |
| | | placeholder="æ°åï¼æè¿°è¯¥æ¨¡åå¨å
¶ç¶æ¨¡åä¸çæ¾ç¤ºé¡ºåº"></el-input> |
| | | <el-form-item class="is-required"> |
| | | <span slot="label">模åå«åï¼</span> |
| | | <el-input v-model="form.alias" :disabled="!editStatus && !addStatus" placeholder="请è¾å
¥æ¨¡åå«å"></el-input> |
| | | </el-form-item> |
| | | <el-form-item class="is-required"> |
| | | <span slot="label">åºå·ï¼</span> |
| | | <el-input-number v-model="form.sort" :disabled="!editStatus && !addStatus"></el-input-number> |
| | | <el-link :underline="false" style="margin-left: 20px" type="danger">æ°åï¼æè¿°è¯¥æ¨¡åå¨å
¶ç¶æ¨¡åä¸çæ¾ç¤ºé¡ºåº</el-link> |
| | | </el-form-item> |
| | | <el-form-item v-if="form.functionType === 0" label="C/Sï¼"> |
| | | <el-input v-model="form.pathC" :disabled="!editStatus && !addStatus" :rows="2" placeholder="请è¾å
¥C/Sè·¯å¾" |
| | |
| | | </el-form-item> |
| | | </span> |
| | | <span v-if="form.category === 1"> |
| | | <el-form-item label="åç§°ï¼"> |
| | | <el-form-item label="åç§°ï¼" class="is-required"> |
| | | <el-input v-model="form.name" :disabled="form.category === 1" placeholder="请è¾å
¥åç§°"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æ è¯ï¼"> |
| | | <el-form-item label="æ è¯ï¼" class="is-required"> |
| | | <el-input v-model="form.code" :disabled="form.category === 1" placeholder="请è¾å
¥æ è¯"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å«åï¼"> |
| | | <el-form-item label="å«åï¼" class="is-required"> |
| | | <el-input v-model="form.alias" placeholder="请è¾å
¥å«å"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="ç¼å·ï¼"> |
| | | <el-input v-model="form.sort" :disabled="form.category === 1" placeholder="请è¾å
¥ç¼å·"></el-input> |
| | | <el-form-item label="ç¼å·ï¼" class="is-required"> |
| | | <el-input-number v-model="form.sort" :disabled="form.category === 1" :max="63" :min="1"></el-input-number> |
| | | </el-form-item> |
| | | <el-form-item label="æè¿°ï¼"> |
| | | <el-input v-model="form.remark" :disabled="form.category === 1" placeholder="请è¾å
¥æè¿°"></el-input> |
| | |
| | | active-color="#13ce66" |
| | | inactive-color="#ff4949"> |
| | | </el-switch> |
| | | |
| | | </el-form-item> |
| | | </span> |
| | | </el-form> |
| | |
| | | append-to-body="true" |
| | | class="avue-dialog" |
| | | title="æä½åç±»" |
| | | width="500px" |
| | | width="900px" |
| | | > |
| | | <avue-crud |
| | | ref="methodsCrud" |
| | |
| | | menu: false, |
| | | height: 500, |
| | | header: false, |
| | | column: [ |
| | | { |
| | | label: 'æä½åç±»', |
| | | column: [{ |
| | | label: 'åç§°', |
| | | prop: 'name', |
| | | width:180, |
| | | sortable: true, |
| | | } |
| | | ] |
| | | }, { |
| | | label: 'æ è¯', |
| | | prop: 'code', |
| | | width:180, |
| | | }, { |
| | | label: 'æè¿°', |
| | | prop: 'remark' |
| | | }] |
| | | }, |
| | | methodsLoading: false, |
| | | methodsVisble: false, |
| | |
| | | menu: false, |
| | | addBtn: false, |
| | | defaultExpandAll: false, |
| | | defaultExpandedKeys:['system'], |
| | | props: { |
| | | label: 'name', |
| | | label: 'label', |
| | | value: 'id', |
| | | children: 'children', |
| | | }, |
| | |
| | | resolve(res.data.data.map(item => { |
| | | return { |
| | | ...item, |
| | | id: item.id, |
| | | name: item.name, |
| | | label: item.category!=1?item.name:item.alias, |
| | | leaf: !item.hasChildren, |
| | | icon: item.source || 'iconoir:home' |
| | | icon: item.source || (node.level === 0?'el-icon-s-home':'el-icon-s-tools'), |
| | | iconType:item.source?'svg':'iconfont' |
| | | } |
| | | })) |
| | | }) |
| | |
| | | } |
| | | }) |
| | | addOperationType(list).then(res => { |
| | | console.log(res) |
| | | if (res.data.code === 200) { |
| | | this.methodsVisble = false; |
| | | this.$message.success(res.data.msg); |
| | |
| | | @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="display: flex"> |
| | | <icon-show :name="data.icon"></icon-show> |
| | | <icon-show v-if="data.iconType=='svg'" :name="data.icon"></icon-show> |
| | | <i v-else :class="data.icon"></i> |
| | | {{ (node || {}).label }} |
| | | </span> |
| | | </span> |
| | |
| | | </el-button> |
| | | </div> |
| | | <el-form ref="form" :model="form" label-width="85px" style="max-height: calc(100vh - 180px);overflow: auto;"> |
| | | <el-form-item label="åç§°ï¼"> |
| | | <el-form-item label="åç§°ï¼" class="is-required"> |
| | | <el-input v-model="form.name" :disabled="!editStatus && !addStatus" placeholder="请è¾å
¥åç§°"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æ è¯ï¼"> |
| | | <el-form-item label="æ è¯ï¼" class="is-required"> |
| | | <el-input v-model.trim="form.code" :disabled="!editStatus && !addStatus" placeholder="请è¾å
¥æ è¯"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å«åï¼"> |
| | | <el-form-item label="å«åï¼" class="is-required"> |
| | | <el-input v-model="form.alias" :disabled="!editStatus && !addStatus" placeholder="请è¾å
¥å«å"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="徿 ï¼"> |
| | | <el-form-item label="徿 ï¼" class="is-required"> |
| | | <input-icon v-model="form.source" :disabled="!editStatus && !addStatus" placeholder="è¯·éæ©å¾æ "> |
| | | </input-icon> |
| | | </el-form-item> |
| | | <el-form-item label="顺åºï¼"> |
| | | <el-input-number v-model="form.sort" :disabled="!editStatus && !addStatus" :max="9999" :min="0" |
| | | <el-input-number v-model="form.sort" :disabled="!editStatus && !addStatus" :max="63" :min="1" |
| | | label="顺åº"></el-input-number> |
| | | </el-form-item> |
| | | <el-form-item label="æè¿°ï¼"> |
| | |
| | | menu: false, |
| | | addBtn: false, |
| | | defaultExpandAll: false, |
| | | defaultExpandedKeys:['operateNode'], |
| | | props: { |
| | | label: 'name', |
| | | value: 'id', |
| | |
| | | id: item.id, |
| | | name: item.name, |
| | | leaf: !item.hasChildren, |
| | | icon: item.source || 'iconoir:home' |
| | | icon: item.source || (node.level === 0?'el-icon-s-home':'el-icon-s-tools'), |
| | | iconType:item.source?'svg':'iconfont' |
| | | } |
| | | })) |
| | | }) |