|
@@ -11,6 +11,7 @@
|
|
|
:table-loading="loading"
|
|
|
@on-load="onLoad"
|
|
|
@row-update="rowUpdate"
|
|
|
+ @refresh-change="refreshChange"
|
|
|
:cell-style="cellStyle">
|
|
|
<template slot-scope="scope" slot="lockingQuantity">
|
|
|
<span v-if="Number(scope.row.lockingQuantity) > 0" style="color: #409EFF;cursor: pointer" @click.stop="viewCell(scope.row,scope.index)">{{ scope.row.lockingQuantity }}</span>
|
|
@@ -261,6 +262,14 @@ export default {
|
|
|
onClose(val) {
|
|
|
this.switchDialog = val;
|
|
|
},
|
|
|
+ //列表刷新触发
|
|
|
+ refreshChange() {
|
|
|
+ this.data.forEach(item => {
|
|
|
+ this.$refs.crud.toggleRowExpansion(item, false)
|
|
|
+ })
|
|
|
+ this.page.currentPage = 1;
|
|
|
+ this.onLoad(this.page,this.search);
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|