修复BUG: 消息中心优化

pull/79/head
猿小天 2022-11-14 00:07:24 +08:00
parent a591c26971
commit 1bd16a722e
1 changed files with 2 additions and 15 deletions

View File

@ -26,7 +26,7 @@
</template>
<script>
import { AddObj, GetObj, GetList, UpdateObj, DelObj, GetSelfReceive,receiveView } from './api'
import { AddObj, GetObj, GetList, UpdateObj, DelObj, GetSelfReceive } from './api'
import { crudOptions } from './crud'
import { d2CrudPlus } from 'd2-crud-plus'
import viewTemplate from './viewTemplate.js'
@ -39,10 +39,7 @@ export default {
tabActivted: 'send'
}
},
created () {
//
this.crud.options.fetchDetail = this.fetchDetail
},
computed: {
},
methods: {
@ -74,16 +71,6 @@ export default {
delRequest (row) {
return DelObj(row.id)
},
//
fetchDetail (index, row) {
if (index == null) {
//
return {}
}
return GetObj(row).then(res => {
return res.data
})
},
onView ({ row, index }) {
this.getD2Crud().showDialog({
mode: 'view',