|
@@ -294,11 +294,10 @@ export default {
|
|
|
this.openEpenseDetailModal = true
|
|
|
this.expenseAccountDetailSn = row.expenseAccountDetailSn
|
|
|
},
|
|
|
- // 新增明细成功
|
|
|
+ // 新增修改明细成功
|
|
|
epenseDetailOk (data) {
|
|
|
// 如果是批量修改
|
|
|
if (this.isBatch) {
|
|
|
- console.log(data)
|
|
|
const rows = this.rowSelectionInfo && this.rowSelectionInfo.selectedRows || []
|
|
|
const params = []
|
|
|
if (rows.length) {
|
|
@@ -324,6 +323,7 @@ export default {
|
|
|
if (res.status == 200) {
|
|
|
this.$message.success(res.message)
|
|
|
// 修改成功
|
|
|
+ this.$refs.table.clearTable()
|
|
|
this.epenseDetailClose()
|
|
|
this.getDetail(false)// 刷新列表
|
|
|
}
|
|
@@ -402,9 +402,8 @@ export default {
|
|
|
this.$router.push({ name: 'expenseReimbursementList' })
|
|
|
},
|
|
|
pageInit () {
|
|
|
- console.log(1)
|
|
|
+ this.$refs.table.clearTable()
|
|
|
if (this.$route.params.sn) { // 编辑页
|
|
|
- console.log(2)
|
|
|
this.getDetail(false)
|
|
|
}
|
|
|
}
|
|
@@ -415,10 +414,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
activated () {
|
|
|
- // 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
|
|
|
- if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
|
|
|
- this.pageInit()
|
|
|
- }
|
|
|
+ this.pageInit()
|
|
|
},
|
|
|
beforeRouteEnter (to, from, next) {
|
|
|
next(vm => {})
|