修改已知bug1
This commit is contained in:
@@ -271,7 +271,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
/*! autoprefixer: off */
|
/*! autoprefixer: off */
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 1;
|
||||||
/*! autoprefixer: on;*/
|
/*! autoprefixer: on;*/
|
||||||
text-justify: inter-ideograph;
|
text-justify: inter-ideograph;
|
||||||
word-break: break-all
|
word-break: break-all
|
||||||
|
|||||||
@@ -263,7 +263,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
/*! autoprefixer: off */
|
/*! autoprefixer: off */
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 1;
|
||||||
/*! autoprefixer: on;*/
|
/*! autoprefixer: on;*/
|
||||||
text-justify: inter-ideograph;
|
text-justify: inter-ideograph;
|
||||||
word-break: break-all
|
word-break: break-all
|
||||||
|
|||||||
@@ -268,7 +268,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
/*! autoprefixer: off */
|
/*! autoprefixer: off */
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 1;
|
||||||
/*! autoprefixer: on;*/
|
/*! autoprefixer: on;*/
|
||||||
text-justify: inter-ideograph;
|
text-justify: inter-ideograph;
|
||||||
word-break: break-all
|
word-break: break-all
|
||||||
|
|||||||
@@ -282,7 +282,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
/*! autoprefixer: off */
|
/*! autoprefixer: off */
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 1;
|
||||||
/*! autoprefixer: on;*/
|
/*! autoprefixer: on;*/
|
||||||
text-justify: inter-ideograph;
|
text-justify: inter-ideograph;
|
||||||
word-break: break-all
|
word-break: break-all
|
||||||
|
|||||||
@@ -273,7 +273,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
/*! autoprefixer: off */
|
/*! autoprefixer: off */
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 1;
|
||||||
/*! autoprefixer: on;*/
|
/*! autoprefixer: on;*/
|
||||||
text-justify: inter-ideograph;
|
text-justify: inter-ideograph;
|
||||||
word-break: break-all
|
word-break: break-all
|
||||||
|
|||||||
@@ -0,0 +1,58 @@
|
|||||||
|
import Vue from "vue";
|
||||||
|
import VueDraggableResizable from "vue-draggable-resizable";
|
||||||
|
|
||||||
|
Vue.component("vue-draggable-resizable", VueDraggableResizable);
|
||||||
|
function initDrag(columns) {
|
||||||
|
const draggingMap = {};
|
||||||
|
columns.forEach(col => {
|
||||||
|
draggingMap[col.key] = col.width;
|
||||||
|
});
|
||||||
|
const draggingState = Vue.observable(draggingMap);
|
||||||
|
return (h, props, children) => {
|
||||||
|
let thDom = null;
|
||||||
|
const { key, ...restProps } = props;
|
||||||
|
const col = columns.find(col => {
|
||||||
|
const k = col.dataIndex || col.key;
|
||||||
|
return k === key;
|
||||||
|
});
|
||||||
|
if (!col || !col.width) {
|
||||||
|
return <th {...restProps}>{children}</th>;
|
||||||
|
}
|
||||||
|
const onDrag = x => {
|
||||||
|
draggingState[key] = 0;
|
||||||
|
col.width = Math.max(x, 1);
|
||||||
|
};
|
||||||
|
|
||||||
|
const onDragstop = () => {
|
||||||
|
draggingState[key] = thDom.getBoundingClientRect().width;
|
||||||
|
};
|
||||||
|
return (
|
||||||
|
<th {...restProps} v-ant-ref={r => (thDom = r)} width={col.width} class="resize-table-th">
|
||||||
|
{children}
|
||||||
|
<vue-draggable-resizable
|
||||||
|
key={col.dataIndex || col.key}
|
||||||
|
class="table-draggable-handle"
|
||||||
|
w={10}
|
||||||
|
x={draggingState[key] || col.width}
|
||||||
|
z={1}
|
||||||
|
axis="x"
|
||||||
|
draggable={true}
|
||||||
|
resizable={false}
|
||||||
|
onDragging={onDrag}
|
||||||
|
onDragstop={onDragstop}
|
||||||
|
></vue-draggable-resizable>
|
||||||
|
</th>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export default {
|
||||||
|
methods: {
|
||||||
|
drag(columns) {
|
||||||
|
return {
|
||||||
|
header: {
|
||||||
|
cell: initDrag(columns),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -896,7 +896,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
/*! autoprefixer: off */
|
/*! autoprefixer: off */
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 1;
|
||||||
/*! autoprefixer: on;*/
|
/*! autoprefixer: on;*/
|
||||||
text-justify: inter-ideograph;
|
text-justify: inter-ideograph;
|
||||||
word-break: break-all
|
word-break: break-all
|
||||||
|
|||||||
@@ -942,7 +942,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
/*! autoprefixer: off */
|
/*! autoprefixer: off */
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 1;
|
||||||
/*! autoprefixer: on;*/
|
/*! autoprefixer: on;*/
|
||||||
text-justify: inter-ideograph;
|
text-justify: inter-ideograph;
|
||||||
word-break: break-all
|
word-break: break-all
|
||||||
|
|||||||
@@ -2,34 +2,34 @@
|
|||||||
<a-card :bordered="false">
|
<a-card :bordered="false">
|
||||||
<div class="table-page-search-wrapper">
|
<div class="table-page-search-wrapper">
|
||||||
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('VirtualListName')">
|
<div class="title-text" :title="$t('VirtualListName')">
|
||||||
<span>{{$t('VirtualListName')}}</span>
|
<span>{{$t('VirtualListName')}}</span>
|
||||||
|
</div>
|
||||||
|
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('VirtualListName')"
|
||||||
|
v-model="queryParam.name"></j-input>
|
||||||
</div>
|
</div>
|
||||||
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('VirtualListName')"
|
</a-col>
|
||||||
v-model="queryParam.name"></j-input>
|
<a-col :md="6" :sm="8">
|
||||||
</div>
|
<div class="box-title-text">
|
||||||
</a-col>
|
<div class="title-text" :title="$t('listStatus')">
|
||||||
<a-col :md="6" :sm="8">
|
<span>{{$t('listStatus')}}</span>
|
||||||
<div class="box-title-text">
|
</div>
|
||||||
<div class="title-text" :title="$t('listStatus')">
|
<j-dict-select-tag class="box-input" v-model="queryParam.state"
|
||||||
<span>{{$t('listStatus')}}</span>
|
:placeholder="$t('PleaseSelect')+$t('listStatus')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'dummy_inventory_state'"/>
|
||||||
</div>
|
</div>
|
||||||
<j-dict-select-tag class="box-input" v-model="queryParam.state"
|
</a-col>
|
||||||
:placeholder="$t('PleaseSelect')+$t('listStatus')"
|
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||||
:type="'select'"
|
|
||||||
:triggerChange="false" :dictCode="'dummy_inventory_state'"/>
|
|
||||||
</div>
|
|
||||||
</a-col>
|
|
||||||
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
|
||||||
<a-col :md="6" :sm="24">
|
<a-col :md="6" :sm="24">
|
||||||
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
||||||
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
|
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
</span>
|
</span>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
@@ -43,12 +43,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
<!-- :components="drag(columns)" bordered-->
|
||||||
<a-table
|
<a-table
|
||||||
ref="table"
|
ref="table"
|
||||||
size="middle"
|
size="middle"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{x: true}"
|
:scroll="{x: '100%'}"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
@@ -133,9 +134,16 @@
|
|||||||
<script>
|
<script>
|
||||||
import { getAction, postAction, downloadFile } from '@/api/manage'
|
import { getAction, postAction, downloadFile } from '@/api/manage'
|
||||||
import eventBUs from '../../../common/event'
|
import eventBUs from '../../../common/event'
|
||||||
|
import Vue from 'vue'
|
||||||
|
import VueDraggableResizable from 'vue-draggable-resizable'
|
||||||
|
import tableDragResize from '@/mixins/tableDragResize'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'index',
|
name: 'index',
|
||||||
|
components: {
|
||||||
|
VueDraggableResizable
|
||||||
|
},
|
||||||
|
mixins: [tableDragResize],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -186,16 +194,19 @@
|
|||||||
title: this.$t('VirtualListName'),
|
title: this.$t('VirtualListName'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
|
width: 640,
|
||||||
scopedSlots: { customRender: 'VirtualListName' }
|
scopedSlots: { customRender: 'VirtualListName' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('listStatus'),
|
title: this.$t('listStatus'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
dataIndex: 'state_dictText'
|
dataIndex: 'state_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('creater'),
|
title: this.$t('creater'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
dataIndex: 'createBy'
|
dataIndex: 'createBy'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -525,4 +536,21 @@
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 0 0 2px 2px;
|
border-radius: 0 0 2px 2px;
|
||||||
}
|
}
|
||||||
|
</style>
|
||||||
|
<style lang="less">
|
||||||
|
.resize-table-th {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.table-draggable-handle {
|
||||||
|
transform: none !important;
|
||||||
|
position: absolute;
|
||||||
|
height: 100% !important;
|
||||||
|
bottom: 0;
|
||||||
|
left: auto !important;
|
||||||
|
right: -5px;
|
||||||
|
cursor: col-resize;
|
||||||
|
touch-action: none;
|
||||||
|
will-change: transform !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -134,7 +134,7 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{x: '100%',y:'calc(100vh - 200px)'}"
|
:scroll="{x: '100%',y:'calc(100vh - 420px)'}"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
@@ -1569,7 +1569,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
/*! autoprefixer: off */
|
/*! autoprefixer: off */
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 1;
|
||||||
/*! autoprefixer: on;*/
|
/*! autoprefixer: on;*/
|
||||||
text-justify: inter-ideograph;
|
text-justify: inter-ideograph;
|
||||||
word-break: break-all
|
word-break: break-all
|
||||||
|
|||||||
@@ -335,7 +335,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
/*! autoprefixer: off */
|
/*! autoprefixer: off */
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 1;
|
||||||
/*! autoprefixer: on;*/
|
/*! autoprefixer: on;*/
|
||||||
text-justify: inter-ideograph;
|
text-justify: inter-ideograph;
|
||||||
word-break: break-all
|
word-break: break-all
|
||||||
|
|||||||
@@ -464,7 +464,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
/*! autoprefixer: off */
|
/*! autoprefixer: off */
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 1;
|
||||||
/*! autoprefixer: on;*/
|
/*! autoprefixer: on;*/
|
||||||
text-justify: inter-ideograph;
|
text-justify: inter-ideograph;
|
||||||
word-break: break-all
|
word-break: break-all
|
||||||
|
|||||||
@@ -63,6 +63,7 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
size="middle"
|
size="middle"
|
||||||
|
:scroll="{x: '100%'}"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
@@ -117,7 +118,7 @@
|
|||||||
title: '#',
|
title: '#',
|
||||||
dataIndex: '',
|
dataIndex: '',
|
||||||
key: 'rowIndex',
|
key: 'rowIndex',
|
||||||
width: 120,
|
width: 80,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
customRender: function(t, r, index) {
|
customRender: function(t, r, index) {
|
||||||
return parseInt(index) + 1
|
return parseInt(index) + 1
|
||||||
@@ -126,7 +127,9 @@
|
|||||||
{
|
{
|
||||||
title: this.$t('DictionaryName'),
|
title: this.$t('DictionaryName'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'dictName'
|
dataIndex: 'dictName',
|
||||||
|
width: '25%',
|
||||||
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// title: this.$t('DictionaryEnName'),
|
// title: this.$t('DictionaryEnName'),
|
||||||
@@ -137,17 +140,22 @@
|
|||||||
{
|
{
|
||||||
title: this.$t('DictionaryNumber'),
|
title: this.$t('DictionaryNumber'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'dictCode'
|
dataIndex: 'dictCode',
|
||||||
|
width: '25%',
|
||||||
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('describe'),
|
title: this.$t('describe'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'description'
|
dataIndex: 'description',
|
||||||
|
width: '25%',
|
||||||
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('operation'),
|
title: this.$t('operation'),
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
fixed: 'right',
|
||||||
width: 430,
|
width: 430,
|
||||||
scopedSlots: { customRender: 'action' }
|
scopedSlots: { customRender: 'action' }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
<a-table
|
<a-table
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:scroll="{x: 1500}"
|
:scroll="{x: '100%'}"
|
||||||
size="middle"
|
size="middle"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
|
|||||||
@@ -97,6 +97,7 @@
|
|||||||
<a-table
|
<a-table
|
||||||
ref="table"
|
ref="table"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
|
:scroll="{x: '100%'}"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
@@ -178,7 +179,8 @@
|
|||||||
title: this.$t('serialNumber'),
|
title: this.$t('serialNumber'),
|
||||||
dataIndex: '',
|
dataIndex: '',
|
||||||
key: 'rowIndex',
|
key: 'rowIndex',
|
||||||
width: 20,
|
width: 50,
|
||||||
|
ellipsis: true,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
customRender: function(t, r, index) {
|
customRender: function(t, r, index) {
|
||||||
return parseInt(index) + 1
|
return parseInt(index) + 1
|
||||||
@@ -188,6 +190,7 @@
|
|||||||
title: this.$t('userAccount'),
|
title: this.$t('userAccount'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'username',
|
dataIndex: 'username',
|
||||||
|
ellipsis: true,
|
||||||
width: 120,
|
width: 120,
|
||||||
sorter: true
|
sorter: true
|
||||||
},
|
},
|
||||||
@@ -195,24 +198,28 @@
|
|||||||
title: this.$t('userName'),
|
title: this.$t('userName'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 100,
|
width: 100,
|
||||||
|
ellipsis: true,
|
||||||
dataIndex: 'realname'
|
dataIndex: 'realname'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('EmployeeNumber'),
|
title: this.$t('EmployeeNumber'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 100,
|
width: 100,
|
||||||
|
ellipsis: true,
|
||||||
dataIndex: 'workNo'
|
dataIndex: 'workNo'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('EmployeeType'),
|
title: this.$t('EmployeeType'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 100,
|
width: 100,
|
||||||
|
ellipsis: true,
|
||||||
dataIndex: 'workerType_dictText'
|
dataIndex: 'workerType_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('department'),
|
title: this.$t('department'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
|
ellipsis: true,
|
||||||
dataIndex: 'orgCodeTxt'
|
dataIndex: 'orgCodeTxt'
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
@@ -231,6 +238,7 @@
|
|||||||
title: this.$t('status'),
|
title: this.$t('status'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 80,
|
width: 80,
|
||||||
|
ellipsis: true,
|
||||||
dataIndex: 'status_dictText'
|
dataIndex: 'status_dictText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user