|
@@ -49,11 +49,11 @@
|
|
<a-button id="btn" type="link" @click="clearAllList">清空全部</a-button>
|
|
<a-button id="btn" type="link" @click="clearAllList">清空全部</a-button>
|
|
<ul class="selectlist">
|
|
<ul class="selectlist">
|
|
<li v-for="(item,index) in listNum" :key="index">
|
|
<li v-for="(item,index) in listNum" :key="index">
|
|
- <span v-if=" index <4">
|
|
|
|
|
|
+ <span v-if=" index <5">
|
|
<a-icon type="lock" />
|
|
<a-icon type="lock" />
|
|
<span class="listText">{{item.title}}</span>
|
|
<span class="listText">{{item.title}}</span>
|
|
</span>
|
|
</span>
|
|
- <span v-else-if=" index >=4">
|
|
|
|
|
|
+ <span v-else-if=" index >=5">
|
|
<a-icon type="menu" style="color:#ccc" />
|
|
<a-icon type="menu" style="color:#ccc" />
|
|
<span class="listText">{{item.title}}</span>
|
|
<span class="listText">{{item.title}}</span>
|
|
<a-icon
|
|
<a-icon
|
|
@@ -166,6 +166,13 @@ const columnsFixd = [
|
|
key: 'videoU',
|
|
key: 'videoU',
|
|
scopedSlots: { customRender: 'videoU' }
|
|
scopedSlots: { customRender: 'videoU' }
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ title: '项目名称',
|
|
|
|
+ dataIndex: 'projectName',
|
|
|
|
+ align: 'center',
|
|
|
|
+ width: 100,
|
|
|
|
+ fixed: 'left'
|
|
|
|
+ },
|
|
{
|
|
{
|
|
title: '视频ID',
|
|
title: '视频ID',
|
|
dataIndex: 'signature',
|
|
dataIndex: 'signature',
|
|
@@ -446,7 +453,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
// console.log(this.columns.length)
|
|
// console.log(this.columns.length)
|
|
- if (this.columns.length == 3) {
|
|
|
|
|
|
+ if (this.columns.length == 4) {
|
|
// console.log(this.listNum.length)
|
|
// console.log(this.listNum.length)
|
|
this.columns.map((item, index) => {
|
|
this.columns.map((item, index) => {
|
|
item.width = 500
|
|
item.width = 500
|
|
@@ -456,7 +463,7 @@ export default {
|
|
this.columns.map((item, index) => {
|
|
this.columns.map((item, index) => {
|
|
if (index == 1||index==2) {
|
|
if (index == 1||index==2) {
|
|
item.width = 150
|
|
item.width = 150
|
|
- } else if (index >= 2 && index < 4 || index == 0) {
|
|
|
|
|
|
+ } else if (index >= 2 && index < 5 || index == 0) {
|
|
item.width = 100
|
|
item.width = 100
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -527,8 +534,9 @@ export default {
|
|
// console.log(res)
|
|
// console.log(res)
|
|
if(res.success){
|
|
if(res.success){
|
|
// console.log(JSON.parse(res.result))
|
|
// console.log(JSON.parse(res.result))
|
|
- let columns=JSON.parse(res.result)
|
|
|
|
- if(columns.length){
|
|
|
|
|
|
+ if(res.result){
|
|
|
|
+ let columns=JSON.parse(res.result)
|
|
|
|
+ if(columns.length){
|
|
columns.map((item,index)=>{
|
|
columns.map((item,index)=>{
|
|
if(index>columnsFixd.length-1){
|
|
if(index>columnsFixd.length-1){
|
|
item.sorter=function(a,b){ return a[item.dataIndex]-b[item.dataIndex]}
|
|
item.sorter=function(a,b){ return a[item.dataIndex]-b[item.dataIndex]}
|
|
@@ -537,10 +545,10 @@ export default {
|
|
this.columns=[...columnsFixd,...columns]
|
|
this.columns=[...columnsFixd,...columns]
|
|
this.tableHandle()
|
|
this.tableHandle()
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
// console.log(this.columns)
|
|
// console.log(this.columns)
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|