修改已知bug1

This commit is contained in:
qq787203167
2022-06-02 14:53:00 +08:00
parent 7469c0a236
commit de2ed1eb60
15 changed files with 141 additions and 39 deletions
@@ -271,7 +271,7 @@
text-overflow: ellipsis;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
-webkit-line-clamp: 1;
/*! autoprefixer: on;*/
text-justify: inter-ideograph;
word-break: break-all
+1 -1
View File
@@ -263,7 +263,7 @@
text-overflow: ellipsis;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
-webkit-line-clamp: 1;
/*! autoprefixer: on;*/
text-justify: inter-ideograph;
word-break: break-all
@@ -268,7 +268,7 @@
text-overflow: ellipsis;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
-webkit-line-clamp: 1;
/*! autoprefixer: on;*/
text-justify: inter-ideograph;
word-break: break-all
+1 -1
View File
@@ -282,7 +282,7 @@
text-overflow: ellipsis;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
-webkit-line-clamp: 1;
/*! autoprefixer: on;*/
text-justify: inter-ideograph;
word-break: break-all
+1 -1
View File
@@ -273,7 +273,7 @@
text-overflow: ellipsis;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
-webkit-line-clamp: 1;
/*! autoprefixer: on;*/
text-justify: inter-ideograph;
word-break: break-all
+58
View File
@@ -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;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
-webkit-line-clamp: 1;
/*! autoprefixer: on;*/
text-justify: inter-ideograph;
word-break: break-all
@@ -942,7 +942,7 @@
text-overflow: ellipsis;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
-webkit-line-clamp: 1;
/*! autoprefixer: on;*/
text-justify: inter-ideograph;
word-break: break-all
@@ -2,34 +2,34 @@
<a-card :bordered="false">
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('VirtualListName')">
<span>{{$t('VirtualListName')}}</span>
<a-row :gutter="24">
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('VirtualListName')">
<span>{{$t('VirtualListName')}}</span>
</div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('VirtualListName')"
v-model="queryParam.name"></j-input>
</div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('VirtualListName')"
v-model="queryParam.name"></j-input>
</div>
</a-col>
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('listStatus')">
<span>{{$t('listStatus')}}</span>
</a-col>
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('listStatus')">
<span>{{$t('listStatus')}}</span>
</div>
<j-dict-select-tag class="box-input" v-model="queryParam.state"
:placeholder="$t('PleaseSelect')+$t('listStatus')"
:type="'select'"
:triggerChange="false" :dictCode="'dummy_inventory_state'"/>
</div>
<j-dict-select-tag class="box-input" v-model="queryParam.state"
:placeholder="$t('PleaseSelect')+$t('listStatus')"
: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>
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-col :md="6" :sm="24">
<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-col>
</span>
</a-row>
</a-row>
</a-form>
</div>
<div class="table-operator">
@@ -43,12 +43,13 @@
</div>
</div>
<div>
<!-- :components="drag(columns)" bordered-->
<a-table
ref="table"
size="middle"
:loading="loading"
:pagination="false"
:scroll="{x: true}"
:scroll="{x: '100%'}"
rowKey="id"
:data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@@ -133,9 +134,16 @@
<script>
import { getAction, postAction, downloadFile } from '@/api/manage'
import eventBUs from '../../../common/event'
import Vue from 'vue'
import VueDraggableResizable from 'vue-draggable-resizable'
import tableDragResize from '@/mixins/tableDragResize'
export default {
name: 'index',
components: {
VueDraggableResizable
},
mixins: [tableDragResize],
data() {
return {
loading: false,
@@ -186,16 +194,19 @@
title: this.$t('VirtualListName'),
align: 'center',
dataIndex: 'name',
width: 640,
scopedSlots: { customRender: 'VirtualListName' }
},
{
title: this.$t('listStatus'),
align: 'center',
width: 180,
dataIndex: 'state_dictText'
},
{
title: this.$t('creater'),
align: 'center',
width: 180,
dataIndex: 'createBy'
},
{
@@ -525,4 +536,21 @@
background: #fff;
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>
@@ -134,7 +134,7 @@
ref="table"
:loading="loading"
:pagination="false"
:scroll="{x: '100%',y:'calc(100vh - 200px)'}"
:scroll="{x: '100%',y:'calc(100vh - 420px)'}"
rowKey="id"
:data-source="dataSource"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
@@ -1569,7 +1569,7 @@
text-overflow: ellipsis;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
-webkit-line-clamp: 1;
/*! autoprefixer: on;*/
text-justify: inter-ideograph;
word-break: break-all
@@ -335,7 +335,7 @@
text-overflow: ellipsis;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
-webkit-line-clamp: 1;
/*! autoprefixer: on;*/
text-justify: inter-ideograph;
word-break: break-all
@@ -464,7 +464,7 @@
text-overflow: ellipsis;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
-webkit-line-clamp: 1;
/*! autoprefixer: on;*/
text-justify: inter-ideograph;
word-break: break-all
+12 -4
View File
@@ -63,6 +63,7 @@
ref="table"
rowKey="id"
size="middle"
:scroll="{x: '100%'}"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
@@ -117,7 +118,7 @@
title: '#',
dataIndex: '',
key: 'rowIndex',
width: 120,
width: 80,
align: 'center',
customRender: function(t, r, index) {
return parseInt(index) + 1
@@ -126,7 +127,9 @@
{
title: this.$t('DictionaryName'),
align: 'center',
dataIndex: 'dictName'
dataIndex: 'dictName',
width: '25%',
ellipsis: true,
},
// {
// title: this.$t('DictionaryEnName'),
@@ -137,17 +140,22 @@
{
title: this.$t('DictionaryNumber'),
align: 'center',
dataIndex: 'dictCode'
dataIndex: 'dictCode',
width: '25%',
ellipsis: true,
},
{
title: this.$t('describe'),
align: 'center',
dataIndex: 'description'
dataIndex: 'description',
width: '25%',
ellipsis: true,
},
{
title: this.$t('operation'),
dataIndex: 'action',
align: 'center',
fixed: 'right',
width: 430,
scopedSlots: { customRender: 'action' }
}
+1 -1
View File
@@ -28,7 +28,7 @@
<a-table
:columns="columns"
:scroll="{x: 1500}"
:scroll="{x: '100%'}"
size="middle"
:pagination="false"
:dataSource="dataSource"
+9 -1
View File
@@ -97,6 +97,7 @@
<a-table
ref="table"
rowKey="id"
:scroll="{x: '100%'}"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
@@ -178,7 +179,8 @@
title: this.$t('serialNumber'),
dataIndex: '',
key: 'rowIndex',
width: 20,
width: 50,
ellipsis: true,
align: 'center',
customRender: function(t, r, index) {
return parseInt(index) + 1
@@ -188,6 +190,7 @@
title: this.$t('userAccount'),
align: 'center',
dataIndex: 'username',
ellipsis: true,
width: 120,
sorter: true
},
@@ -195,24 +198,28 @@
title: this.$t('userName'),
align: 'center',
width: 100,
ellipsis: true,
dataIndex: 'realname'
},
{
title: this.$t('EmployeeNumber'),
align: 'center',
width: 100,
ellipsis: true,
dataIndex: 'workNo'
},
{
title: this.$t('EmployeeType'),
align: 'center',
width: 100,
ellipsis: true,
dataIndex: 'workerType_dictText'
},
{
title: this.$t('department'),
align: 'center',
width: 180,
ellipsis: true,
dataIndex: 'orgCodeTxt'
},
// {
@@ -231,6 +238,7 @@
title: this.$t('status'),
align: 'center',
width: 80,
ellipsis: true,
dataIndex: 'status_dictText'
},
{