Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
:loading="loading"
|
:loading="loading"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
@change="tableOnChange"
|
@change="tableOnChange"
|
||||||
|
@onHeaderRow='onHeaderRow'
|
||||||
>
|
>
|
||||||
<span slot="operation" slot-scope="record">
|
<span slot="operation" slot-scope="record">
|
||||||
<a v-for="(ol,index) in OperationList"
|
<a v-for="(ol,index) in OperationList"
|
||||||
@@ -76,13 +77,8 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
methods: {
|
methods: {
|
||||||
|
onHeaderRow(column, index) {
|
||||||
getTextWith(text, fontStyle) {
|
console.log(column, index)
|
||||||
// var canvas = document.createElement('canvas')
|
|
||||||
// var context = canvas.getContext('2d')
|
|
||||||
// context.font = fontStyle || '14px' // 设置字体样式
|
|
||||||
// var dimension = context.measureText(text)
|
|
||||||
// return dimension.width + 40
|
|
||||||
},
|
},
|
||||||
getData() {
|
getData() {
|
||||||
let params = {
|
let params = {
|
||||||
|
|||||||
@@ -75,6 +75,7 @@
|
|||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
|
@customHeaderRow='customHeaderRow'
|
||||||
>
|
>
|
||||||
<!-- @change="tableOnChange"-->
|
<!-- @change="tableOnChange"-->
|
||||||
<span slot="projectName" slot-scope="text,record">
|
<span slot="projectName" slot-scope="text,record">
|
||||||
@@ -152,12 +153,12 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('ParameterName'),
|
title: this.$t('ParameterName'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'paramsName'
|
dataIndex: 'paramsName',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('ParameterDescription'),
|
title: this.$t('ParameterDescription'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'description'
|
dataIndex: 'description',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('areaOfResponsibility'),
|
title: this.$t('areaOfResponsibility'),
|
||||||
@@ -185,14 +186,12 @@ export default {
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// tableOnChange(pagination, filters, sorter) {
|
customHeaderRow(val,kk) {
|
||||||
// console.log(pagination,'pagination')
|
console.log(val,kk)
|
||||||
// console.log(filters,'filters')
|
},
|
||||||
// console.log(sorter,'sorter')
|
onClick(val,kk) {
|
||||||
// // this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
console.log(val,kk)
|
||||||
// // this.orderByField = sorter.columnKey
|
},
|
||||||
// this.getList()
|
|
||||||
// },
|
|
||||||
//导出
|
//导出
|
||||||
handleExport() {
|
handleExport() {
|
||||||
let _tt = {
|
let _tt = {
|
||||||
|
|||||||
Reference in New Issue
Block a user