|
|
@@ -2,7 +2,7 @@
|
|
|
<div>
|
|
|
<el-drawer :visible.sync="showArea" size="55vw" :before-close="closeFn" custom-class="drawer-class" direction="ltr">
|
|
|
<div>
|
|
|
- <div style="margin-left:2px;font-weight:bold;">【{{ itemData.itemName?itemData.itemName:'' }}】路上记录</div>
|
|
|
+ <div style="margin-left:2px;font-weight:bold;">【{{ customData.customName?customData.customName:'' }}】路上记录</div>
|
|
|
<x-crud @load="onLoad">
|
|
|
<template #table-column-changeNum="{scope}">
|
|
|
{{ scope.row.io == 1 ? '+' : '-' }}<span>{{ scope.row.changeNum }}</span>
|
|
|
@@ -14,9 +14,9 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
export default {
|
|
|
- name: 'total-book-record',
|
|
|
+ name: 'book-custom-road-record',
|
|
|
props: {
|
|
|
- itemData: {
|
|
|
+ customData: {
|
|
|
type: Object,
|
|
|
default: () => {}
|
|
|
}
|
|
|
@@ -30,7 +30,7 @@ export default {
|
|
|
init() {
|
|
|
this.showArea = true
|
|
|
if(this.app){
|
|
|
- this.app.refresh({relateSecondId:this.itemData.id,itemId:this.itemData.itemId})
|
|
|
+ this.app.refresh({relateSecondId:this.customData.id,customId:this.customData.customId})
|
|
|
}
|
|
|
},
|
|
|
closeFn() {
|
|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
},
|
|
|
onLoad({ ctx, app }) {
|
|
|
this.app = app;
|
|
|
- ctx.service(this.$service.bookRoadChangeGlobal)
|
|
|
+ ctx.service(this.$service.bookCustomRoadChange)
|
|
|
.set('table', {
|
|
|
columns: [
|
|
|
{
|
|
|
@@ -83,7 +83,7 @@ export default {
|
|
|
['flex1']
|
|
|
])
|
|
|
.done()
|
|
|
- app.refresh({relateSecondId:this.itemData.id,itemId:this.itemData.itemId})
|
|
|
+ app.refresh({relateSecondId:this.customData.id,customId:this.customData.customId})
|
|
|
}
|
|
|
}
|
|
|
};
|