Merge remote-tracking branch 'origin/master'
| | |
| | | params, |
| | | }) |
| | | } |
| | | export const getEnumDictionary = (params) => { |
| | | return request({ |
| | | url: '/api/ubcs-omd/enum/dictionary', |
| | | method: 'get', |
| | | params, |
| | | }) |
| | | } |
| | |
| | | |
| | | <script> |
| | | import { getFormDetail } from "@/api/formTemplate"; |
| | | import { getDictionary } from "../../api/system/dict"; |
| | | import { getEnumDictionary } from "../../api/system/dict"; |
| | | import vciWebRefer from "../refer/vciWebRefer.vue"; |
| | | export default { |
| | | name: "FormTemplate", |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | codeattrsecValue:'', |
| | | ValidataValue:false, |
| | | eventFlag:{}, |
| | | TreeValueForm:'', |
| | |
| | | formItem.fieldMap[fieldMapKey]='id' |
| | | formItem.fieldMap[formItem.field+'id']='id' |
| | | } |
| | | |
| | | |
| | | let columnItem = { |
| | | change:(val)=>{ |
| | | // console.log(val) |
| | | if(val.column.field === "drawingno"){ |
| | | this.codeattrsecValue=val.value; |
| | | } |
| | | console.log(this.codeattrsecValue) |
| | | }, |
| | | dataKey:formItem.dataKey || formItem.field, |
| | | label: formItem.text, |
| | | labelslot: true, |
| | |
| | | format: formItem.dateFormate, |
| | | keyAttr: formItem.keyAttr, |
| | | value: (formItem.dicData && formItem.dicData.length > 0 && formItem.secType == "codefixedsec" ? formItem.dicData[0].id : null) || |
| | | (formItem.secType == "codedatesec"?formItem.codeDateValue: null) || ( TreeValue&& formItem.secType == "codelevelsec" ? TreeValue : null) , |
| | | (formItem.secType == "codedatesec" ? formItem.codeDateValue: null) || ( TreeValue && formItem.secType == "codelevelsec" ? TreeValue : null) || |
| | | (formItem.secType == "codeattrsec" ? this.codeattrsecValue : null), |
| | | placeholder: formItem.inputTip, |
| | | comboxKey: formItem.comboxKey, |
| | | tip: formItem.tooltips, |
| | |
| | | value: "key", |
| | | }, |
| | | }; |
| | | // console.log('formItem',formItem) |
| | | // console.log('columnItem',columnItem) |
| | | slotColumnList.push(columnItem); |
| | | if (group.length === 0) { |
| | | column.push(columnItem); |
| | |
| | | // 异步获取字典数据 |
| | | geDictData(dictKeys) { |
| | | dictKeys.forEach((dictObj) => { |
| | | getDictionary({ code: dictObj.dictKey }).then((res) => { |
| | | getEnumDictionary({ code: dictObj.dictKey }).then((res) => { |
| | | if (res.data && res.data.code === 200) { |
| | | this.option.column = this.option.column.map((item) => { |
| | | if (item.field === dictObj.field) { |
| | |
| | | <span v-html="node.label"></span> |
| | | </template> |
| | | </avue-tree> |
| | | <div style="display: inline-block;"><el-link icon="el-icon-refresh" class="refresh-icon" @click="getTreeLists"></el-link></div> |
| | | <div style="display: inline-block;"> |
| | | <el-link class="refresh-icon" icon="el-icon-refresh" @click="getTreeLists"></el-link> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | return { |
| | | TreeValue: '', |
| | | idData: '', |
| | | referTreeId:'', |
| | | referTreeId: '', |
| | | masterVrBtnList: [], |
| | | tableHeadFindData: [], |
| | | tableHeadDataFateher: [], |
| | |
| | | // console.log(node) |
| | | // console.log(resolve) |
| | | // } |
| | | treeLoad: (node, resolve) =>{ |
| | | treeLoad: (node, resolve) => { |
| | | if (node.data != false) { |
| | | const parentId = (node.level === 0) ? 0 : node.data.oid; |
| | | const parentBtmName = node.data.attributes.btmname; |
| | | getTreeList({parentOid: parentId, parentBtmName: parentBtmName,'conditionMap[btmTypeId]': this.referTreeId }).then(res => { |
| | | getTreeList({ |
| | | parentOid: parentId, |
| | | parentBtmName: parentBtmName, |
| | | 'conditionMap[btmTypeId]': this.referTreeId |
| | | }).then(res => { |
| | | resolve(res.data.map(item => { |
| | | return { |
| | | ...item, |
| | |
| | | |
| | | const [firstProperty] = res.data; |
| | | this.ModifyProperties(this.Treedata, 'text', 'label'); |
| | | this.referTreeId=firstProperty.attributes.btmTypeId; |
| | | this.referTreeId = firstProperty.attributes.btmTypeId; |
| | | // console.log(this.referTreeId) |
| | | this.codeClassifyOid = firstProperty.oid; |
| | | this.coderuleoid = firstProperty.attributes.coderuleoid; |
| | |
| | | * @return List<Menu> |
| | | */ |
| | | @Override |
| | | @Cacheable(cacheNames = MENU_CACHE, key = "'auth:menuButton:'+ #btmType +':'+ #userId ") |
| | | //@Cacheable(cacheNames = MENU_CACHE, key = "'auth:menuButton:'+ #btmType +':'+ #userId ") |
| | | public List<Menu> getMenuButtonByType(String btmType,Long userId) { |
| | | List<String> roleIds = null; |
| | | if(!VciBaseUtil.checkAdminTenant()){ |