|
@@ -174,7 +174,7 @@ const columnsFixd = [
|
|
|
|
|
|
{
|
|
|
title: '视频描述',
|
|
|
- dataIndex: 'materialName',
|
|
|
+ dataIndex: 'materialDesc',
|
|
|
align: 'center',
|
|
|
width: 100,
|
|
|
fixed: 'left'
|
|
@@ -394,11 +394,18 @@ export default {
|
|
|
//弹出框确定
|
|
|
handleOk(e) {
|
|
|
this.loading = false
|
|
|
- this.columns = [...this.listNum]
|
|
|
+ // this.columns = [...this.listNum]
|
|
|
this.visible = false
|
|
|
|
|
|
// console.log(this.columns)
|
|
|
|
|
|
+ if(this.listNum.length>=10){
|
|
|
+
|
|
|
+ let newlist=this.listNum.slice(columnsFixd.length)
|
|
|
+ console.log(newlist)
|
|
|
+ this.columns = [...columnsFixd,...newlist]
|
|
|
+ }
|
|
|
+
|
|
|
if (this.listNum.length > 12 && this.listNum.length<=13 ) {
|
|
|
this.scrollX =1900
|
|
|
console.log(this.$refs.vSummaryTable)
|
|
@@ -493,14 +500,8 @@ export default {
|
|
|
this.listNum.splice(index,1)
|
|
|
}
|
|
|
})
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ }
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
} else {
|
|
|
arr = this.listNum.filter((item, index) => {
|
|
|
return item.dataIndex == val.dataIndex
|
|
@@ -534,11 +535,16 @@ export default {
|
|
|
// console.log(JSON.parse(res.result))
|
|
|
let columns=JSON.parse(res.result)
|
|
|
if(columns.length){
|
|
|
- columns.map((item,index)=>{
|
|
|
+ if(columns.length>=columnsFixd.length){
|
|
|
+ columns.map((item,index)=>{
|
|
|
if(index>columnsFixd.length-1){
|
|
|
item.sorter=function(a,b){ return a[item.dataIndex]-b[item.dataIndex]}
|
|
|
}})
|
|
|
- this.columns=columns
|
|
|
+ columns=columns.slice(columnsFixd.length);
|
|
|
+ this.columns=[...columnsFixd,...columns]
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
// console.log(this.columns)
|
|
|
}
|
|
|
}
|