diff --git a/.env.development b/.env.development index 025680c1..507d76fd 100644 --- a/.env.development +++ b/.env.development @@ -9,10 +9,10 @@ VUE_APP_VERSION = '20240516' #VUE_APP_BASE_API = '/dev-api' VUE_APP_PDOMAIN = 'tanex56' VUE_APP_DATA_FROM = 'pc' -# VUE_APP_BASE_API = 'http://47.102.220.189:58089/api/bizsvr' -VUE_APP_BASE_API = 'https://api.emis.tanex56.com/api/bizsvr' +VUE_APP_BASE_API = 'http://47.102.220.189:58089/api/bizsvr' +# VUE_APP_BASE_API = 'https://api.emis.tanex56.com/api/bizsvr' -VUE_APP_WS_HOST = 'wss://47.102.220.189:58089/api/bizsvr' +VUE_APP_WS_HOST = 'ws://47.102.220.189:58089/api/bizsvr' VUE_APP_PRINTER_HOST = '192.168.88.100:17080' diff --git a/src/components/XdTable/index.vue b/src/components/XdTable/index.vue index ea7fe9ef..79232548 100644 --- a/src/components/XdTable/index.vue +++ b/src/components/XdTable/index.vue @@ -613,6 +613,7 @@ export default { this.updateTable() this.initSort(); this.tableDom=this.getTableDom(); + this.columnDrop(); }, methods: { @@ -837,12 +838,29 @@ export default { getTablePosition() { return this.tableDom.getBoundingClientRect(); }, - handleSelect(rows) { - // console.log(rows) - }, - handleSelectionChange(rows) { - // console.log(rows) + /** + * 列拖拽 + */ + columnDrop() { + const _this = this; + var xdTableObj = document.getElementById(this.tableId); + // var tbHeader1=xdTableObj.getElementsByClassName("el-table__body-wrapper")[0]; + const wrapperTr = xdTableObj.querySelector('.el-table__header-wrapper tr'); + this.sortable = Sortable.create(wrapperTr, { + animation: 180, + delay: 0, + onEnd: evt => { + // 跳过显示的列数量,如开头我们用了一个多选框 + const empty = 1 + const oldItem = _this.dropCol[evt.oldIndex- empty]; + this.newCol=evt.newIndex-1 + _this.dropCol.splice(evt.oldIndex- empty, 1); + _this.dropCol.splice(evt.newIndex- empty, 0, oldItem); + console.log(_this.dropCol) + } + }); }, + handleCopySelect(data,event) { handleClipboard(this.currentSelectStr, event) this.contextVisible=false; diff --git a/src/views/emis/EmisBaseTools/TransLinePicker.vue b/src/views/emis/EmisBaseTools/TransLinePicker.vue index 0fc28e64..ed4222f1 100644 --- a/src/views/emis/EmisBaseTools/TransLinePicker.vue +++ b/src/views/emis/EmisBaseTools/TransLinePicker.vue @@ -1,13 +1,20 @@