From 19d7730a6020c2edf3877642188890266618392c Mon Sep 17 00:00:00 2001 From: ludc Date: 星期一, 08 一月 2024 22:41:32 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/views/integration/groupMapAttrXML.vue | 90 +++++++++++++++++++++++++++++++++++++++------ 1 files changed, 78 insertions(+), 12 deletions(-) diff --git a/Source/UBCS-WEB/src/views/integration/groupMapAttrXML.vue b/Source/UBCS-WEB/src/views/integration/groupMapAttrXML.vue index 94ac602..5af9066 100644 --- a/Source/UBCS-WEB/src/views/integration/groupMapAttrXML.vue +++ b/Source/UBCS-WEB/src/views/integration/groupMapAttrXML.vue @@ -1,19 +1,85 @@ <template> - <el-container> - <div class="editor-total"> - <div id="editor" v-html="xmlContent"></div> - <button @click="saveXml">淇� 瀛�</button> - </div> - </el-container> + <basic-container> + <avue-crud :option="option" + :data="tableData" + @on-load="onLoad"> + <template slot="groupMapAttrContent" slot-scope="scope"> + <avue-text-ellipsis :text="scope.row.groupMapAttrContent" :height="50"> + <small slot="more">...</small> + </avue-text-ellipsis> + </template> + </avue-crud> + </basic-container> </template> - + <script> -import { getGroupMapXML } from "@/api/integration/groupMapAttrXML.js"; +import {getGroupMapXML} from "@/api/integration/groupMapAttrXML.js"; export default { data() { return { xmlContent: "", // 浠庡悗绔幏鍙栫殑XML鍐呭 + tableData:[ + { + groupMapAttrName:"娴嬭瘯test", + attrMapPath:"娴嬭瘯test", + groupMapAttrContent:"<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n" + + "<clsfs>\n" + + " <clsf library=\"10\">\n" + + " <prop sourceKey=\"c6e_partName\" sourceName=\"Part鍚嶇О\" targetKey=\"partname\" targetName=\"Part鍚嶇О\"/>\n" + + " <prop sourceKey=\"c6e_drawingNo\" sourceName=\"鍥惧彿\" targetKey=\"drawingno\" targetName=\"鍥惧彿/鏍囪\"/>\n" + + " <prop sourceKey=\"c6e_prodModel\" sourceName=\"浜у搧鍨嬪彿\" targetKey=\"model\" targetName=\"鍒濆鍨嬪彿\"/>\n" + + " <prop sourceKey=\"c6e_partClass\" sourceName=\"Part鍒嗙被\" targetKey=\"partclass\" targetName=\"Part鍒嗙被\"/>\n" + + " <prop sourceKey=\"c6e_partVer\" sourceName=\"Part鐗堟湰\" targetKey=\"partver\" targetName=\"Part鐗堟湰\"/>\n" + + " <prop sourceKey=\"c6e_prodStage\" sourceName=\"鍒堕�犻樁娈垫爣璇哱" targetKey=\"prodstage\" targetName=\"闃舵鏍囪瘑\"/> \n" + + " <prop sourceKey=\"c6e_unit\" sourceName=\"璁¢噺鍗曚綅\" targetKey=\"unit\" targetName=\"璁¢噺鍗曚綅\"/>\n" + + " <prop sourceKey=\"c6e_virtualPartMark\" sourceName=\"铏氭嫙浠舵爣璇哱" targetKey=\"virtualpartmark\" targetName=\"铏氭嫙浠舵爣璇哱"/>\n" + + " <prop sourceKey=\"c6e_componentMark\" sourceName=\"缁勫埆浠舵爣璇哱" targetKey=\" componentmark\" targetName=\"缁勫埆浠舵爣璇哱"/>\n" + + " <prop sourceKey=\"c6e_characterType\" sourceName=\"鐗规�у垎绫籠" targetKey=\"charactertype\" targetName=\"鐗规�у垎绫籠"/>\n" + + " <prop sourceKey=\"c6e_material\" sourceName=\"鏉愭枡鐗屽彿\" targetKey=\"material\" targetName=\"鏉愭枡鐗屽彿\"/>\n" + + " <prop sourceKey=\"c6e_materialStandard\" sourceName=\"鏉愭枡鎶�鏈爣鍑哱" targetKey=\"materialstandard\" targetName=\"鎶�鏈爣鍑哱"/>\n" + + " <prop sourceKey=\"c6e_blankStandard\" sourceName=\"姣涘潖鏍囧噯\" targetKey=\"blankstandard\" targetName=\"姣涘潖鏍囧噯\"/> \n" + + " <prop sourceKey=\"c6e_blankType\" sourceName=\"姣涘潖绫诲瀷\" targetKey=\"blanktype\" targetName=\"姣涘潖绫诲瀷\"/> \n" + + " <prop sourceKey=\"c6e_prodModel\" sourceName=\"鍒堕�犲瀷鍙穃" targetKey=\"prodmodel\" targetName=\"鍒堕�犲瀷鍙穃"/> \n" + + " <prop sourceKey=\"c6e_stageID\" sourceName=\"璁捐闃舵鏍囪瘑\" targetKey=\"stageid\" targetName=\"璁捐闃舵鏍囪瘑\"/> \n" + + " <prop sourceKey=\"c6e_remark\" sourceName=\"澶囨敞\" targetKey=\"remark\" targetName=\"澶囨敞\"/> \n" + + " <prop sourceKey=\"c6e_productCode\" sourceName=\"浜у搧缂栫爜\" targetKey=\"productcode\" targetName=\"浜у搧缂栫爜\"/> \n" + + " <prop sourceKey=\"c6e_hash\" sourceName=\"鍝堝笇鐮乗" targetKey=\"hash\" targetName=\"鍝堝笇鐮乗"/> \n" + + " <prop sourceKey=\"c6e_attrSynMark\" sourceName=\"鏇存柊鏍囪瘑\" targetKey=\"attrssynmark\" targetName=\"鏇存柊鏍囪瘑\"/> \n" + + " </clsf>\n" + + "</clsfs>" + } + ], + option:{ + height:'auto', + border: true, + index: true, + viewBtn: true, + delBtn:false, + columnBtn:false, + refreshBtn:false, + highlightCurrentRow:true, + dialogClickModal:true, + column: [ + { + label: "鏂囦欢鍚嶇О", + prop: "groupMapAttrName", + }, + { + label: "鏂囦欢淇濆瓨璺緞", + prop: "attrMapPath", + labelWidth:120, + }, + { + type: "textarea", + label: "鏂囦欢鍐呭", + prop: "groupMapAttrContent", + slot: true, + minRows: 15, + span:24 + }, + ] + } }; }, mounted() { @@ -25,10 +91,10 @@ methods: { onLoad() { let xmlName = "PDM"; - getGroupMapXML({ xmlName: xmlName }).then((res) => { - this.xmlContent = res.data.data; - console.log(res.data.data); - }); + // getGroupMapXML({ xmlName: xmlName }).then((res) => { + // this.xmlContent = res.data.data; + // console.log(res.data.data); + // }); }, }, -- Gitblit v1.9.3