diff --git a/jero-web/src/components/tableCollection/historyTable1.vue b/jero-web/src/components/tableCollection/historyTable1.vue
new file mode 100644
index 000000000..501f22eb2
--- /dev/null
+++ b/jero-web/src/components/tableCollection/historyTable1.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{text && text.length > 10?text.slice(0,9)+'...':text}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jero-web/src/components/tableCollection/index1.vue b/jero-web/src/components/tableCollection/index1.vue
index 5484a236d..76a3dc55c 100644
--- a/jero-web/src/components/tableCollection/index1.vue
+++ b/jero-web/src/components/tableCollection/index1.vue
@@ -1,6 +1,6 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
- {{text && text.length > 10?text.slice(0,9)+'...':text}}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
- const { key, ...restProps } = props
-
- // 此处的this.columns 是定义的table的表头属性变量
-
- const col = this.columns.find((col) => {
- const k = col.dataIndex || col.key
- return k === key
- })
-
- if (!col || !col.width) {
- return h('th', { ...restProps }, [...children])
- }
-
- const dragProps = {
- key: col.dataIndex || col.key,
- class: 'table-draggable-handle',
- attrs: {
- w: 10,
- x: col.width,
- z: 1,
- axis: 'x',
- draggable: false,
- resizable: false
- },
- on: {
- dragging: (x, y) => {
- col.width = Math.max(x, 1)
- }
- }
- }
- const drag = h('vue-draggable-resizable', { ...dragProps })
- return h('th', { ...restProps, class: 'resize-table-th' }, [...children, drag])
- }
- }
- }
+ // this.components = {
+ // header: {
+ // cell: (h, props, children) => {
+ // const { key, ...restProps } = props
+ //
+ // // 此处的this.columns 是定义的table的表头属性变量
+ //
+ // const col = this.columns.find((col) => {
+ // const k = col.dataIndex || col.key
+ // return k === key
+ // })
+ //
+ // if (!col || !col.width) {
+ // return h('th', { ...restProps }, [...children])
+ // }
+ //
+ // const dragProps = {
+ // key: col.dataIndex || col.key,
+ // class: 'table-draggable-handle',
+ // attrs: {
+ // w: 10,
+ // x: col.width,
+ // z: 1,
+ // axis: 'x',
+ // draggable: false,
+ // resizable: false
+ // },
+ // on: {
+ // dragging: (x, y) => {
+ // col.width = Math.max(x, 1)
+ // }
+ // }
+ // }
+ // const drag = h('vue-draggable-resizable', { ...dragProps })
+ // return h('th', { ...restProps, class: 'resize-table-th' }, [...children, drag])
+ // }
+ // }
+ // }
return {
+ colIndexs:[],
+ minWidthColumns:[],
token: Vue.ls.get(ACCESS_TOKEN),
jsonBody: [],
checkboxList: [],
@@ -297,6 +305,8 @@
pageNo: 1,
pageSize: 100,
pageNohistory: 1,
+ description:'',
+ isTrue:false,
pageSizehistory: 10,
pageSizeOptions: ['100', '200'],
total: 0,
@@ -340,14 +350,15 @@
{
title: this.$t('OperationDetails'),
dataIndex: 'logContent',
- align: 'center',
+ align: 'left',
ellipsis: true,
- scopedSlots: { customRender: 'content' }
+ scopedSlots: { customRender: 'content' },
+ width: 484
},
{
title: this.$t('remarks'),
dataIndex: 'remarks',
- align: 'center',
+ align: 'left',
ellipsis: true,
width: 180,
scopedSlots: { customRender: 'detailText' }
@@ -355,7 +366,7 @@
{
title: this.$t('OperationTime'),
dataIndex: 'createTime',
- align: 'center',
+ align: 'left',
ellipsis: true,
width: 180
}
@@ -629,8 +640,20 @@
}
}
}
+
+ if(res.type){
+ this.colIndexs.push(index)
+ }
})
- this.columns = [...this.columns]
+
+ this.isTrue = false
+ setTimeout(()=>{
+ this.isTrue = true
+ this.columns = [...this.columns]
+ this.colIndexs.forEach((item)=>{
+ this.minWidthColumns.push([this.columns[item],500])
+ })
+ },300)
console.log(this.columns)
}
})
@@ -852,6 +875,7 @@
}