Merge "Fix a bug in build library: the uploaded file cannot be shown in table."
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
:is-loading="isLoading"
|
:is-loading="isLoading"
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
:sortable="sortable"
|
:sortable="sortable"
|
||||||
:total="total"
|
:total="tableLength"
|
||||||
@do-search="doSearch"
|
@do-search="doSearch"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
@@ -67,9 +67,21 @@ export default {
|
|||||||
total: 0
|
total: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
tableLength() {
|
||||||
|
return this.builds.length
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
builds: {
|
||||||
|
handler: function() {
|
||||||
|
this.rows = TableSort(this.builds, this.sortable.order, this.sortable.sort, 0, 10)
|
||||||
|
},
|
||||||
|
deep: true
|
||||||
|
}
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.rows = TableSort(this.builds, this.sortable.order, this.sortable.sort, 0, 10)
|
this.rows = TableSort(this.builds, this.sortable.order, this.sortable.sort, 0, 10)
|
||||||
this.total = this.builds.length
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
doSearch(offset, limit, order, sort) {
|
doSearch(offset, limit, order, sort) {
|
||||||
@@ -77,7 +89,6 @@ export default {
|
|||||||
this.sortable.order = order
|
this.sortable.order = order
|
||||||
this.sortable.sort = sort
|
this.sortable.sort = sort
|
||||||
this.rows = TableSort(this.builds, order, sort, offset, limit)
|
this.rows = TableSort(this.builds, order, sort, offset, limit)
|
||||||
this.total = this.builds.length
|
|
||||||
this.isLoading = false
|
this.isLoading = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
:is-loading="isLoading"
|
:is-loading="isLoading"
|
||||||
:rows="rows"
|
:rows="rows"
|
||||||
:sortable="sortable"
|
:sortable="sortable"
|
||||||
:total="total"
|
:total="tableLength"
|
||||||
@do-search="doSearch"
|
@do-search="doSearch"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
@@ -82,9 +82,21 @@ export default {
|
|||||||
total: 0
|
total: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
tableLength() {
|
||||||
|
return this.jobs.length
|
||||||
|
},
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
jobs: {
|
||||||
|
handler: function() {
|
||||||
|
this.rows = TableSort(this.jobs, this.sortable.order, this.sortable.sort, 0, 10)
|
||||||
|
},
|
||||||
|
deep: true
|
||||||
|
}
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.rows = TableSort(this.jobs, this.sortable.order, this.sortable.sort, 0, 10)
|
this.rows = TableSort(this.jobs, this.sortable.order, this.sortable.sort, 0, 10)
|
||||||
this.total = this.jobs.length
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
doSearch(offset, limit, order, sort) {
|
doSearch(offset, limit, order, sort) {
|
||||||
@@ -92,7 +104,6 @@ export default {
|
|||||||
this.sortable.order = order
|
this.sortable.order = order
|
||||||
this.sortable.sort = sort
|
this.sortable.sort = sort
|
||||||
this.rows = TableSort(this.jobs, order, sort, offset, limit)
|
this.rows = TableSort(this.jobs, order, sort, offset, limit)
|
||||||
this.total = this.jobs.length
|
|
||||||
this.isLoading = false
|
this.isLoading = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user