消防基础信息模块代码格式化

2024年2月1日测试
liujun 2024-02-03 13:55:58 +08:00
parent 5b06e37473
commit 3d3ffa9d5f
4 changed files with 16 additions and 12 deletions

View File

@ -282,7 +282,7 @@ export default {
}, },
goDetail(id, FIRE_RECORD_ID) { goDetail(id, FIRE_RECORD_ID) {
this.setActiveName('RecordInfo') this.setActiveName('RecordList')
const info = this.getInfo() const info = this.getInfo()
info.FIRE_CHECK_ID = id info.FIRE_CHECK_ID = id
info.FIRE_RECORD_ID = FIRE_RECORD_ID info.FIRE_RECORD_ID = FIRE_RECORD_ID

View File

@ -243,8 +243,8 @@ export default {
created() { created() {
this.FIRE_CHECK_ID = this.getInfo().FIRE_CHECK_ID this.FIRE_CHECK_ID = this.getInfo().FIRE_CHECK_ID
this.FIRE_RECORD_ID = this.getInfo().FIRE_RECORD_ID this.FIRE_RECORD_ID = this.getInfo().FIRE_RECORD_ID
this.SHOW_OR_EDIT = this.$parent.SHOW_OR_EDIT this.SHOW_OR_EDIT = this.getInfo().SHOW_OR_EDIT
this.recordBase = Object.assign({}, this.$parent.row) this.recordBase = Object.assign({}, this.getInfo().row)
this.getData() this.getData()
this.getSignImgs(this.FIRE_RECORD_ID) this.getSignImgs(this.FIRE_RECORD_ID)
}, },
@ -310,7 +310,7 @@ export default {
this.$refs.information.init(id) this.$refs.information.init(id)
}, },
back() { back() {
this.$parent.activeName = 'RecordList' this.setActiveName('RecordList')
}, },
// //
getData() { getData() {

View File

@ -125,6 +125,7 @@ export default {
this.getList() this.getList()
this.hasButton() this.hasButton()
}, },
inject: ['setActiveName', 'getInfo', 'setInfo'],
methods: { methods: {
getRowKey(row) { getRowKey(row) {
return row.CHECKRECORD_ID return row.CHECKRECORD_ID
@ -142,7 +143,7 @@ export default {
{ {
STARTTIME: this.dates[0], STARTTIME: this.dates[0],
ENDTIME: this.dates[1], ENDTIME: this.dates[1],
FIRE_CHECK_ID: this.$parent.FIRE_CHECK_ID, FIRE_CHECK_ID: this.getInfo().FIRE_CHECK_ID,
KEYWORDS: this.KEYWORDS, KEYWORDS: this.KEYWORDS,
STATUS: this.STATUS STATUS: this.STATUS
} }
@ -198,15 +199,17 @@ export default {
}, },
// //
goCheck(row, id, FIRE_RECORD_ID) { goCheck(row, id, FIRE_RECORD_ID) {
this.$parent.FIRE_CHECK_ID = id const info = this.getInfo()
this.$parent.FIRE_RECORD_ID = FIRE_RECORD_ID info.FIRE_CHECK_ID = id
this.$parent.SHOW_OR_EDIT = 'SHOW' info.FIRE_RECORD_ID = FIRE_RECORD_ID
this.$parent.row = row info.SHOW_OR_EDIT = 'SHOW'
this.$parent.activeName = 'RecordInfo' info.row = row
this.setInfo(info)
this.setActiveName('RecordInfo')
}, },
// //
back() { back() {
this.$parent.activeName = 'List' this.setActiveName('FireRecord')
}, },
hasButton: function() { hasButton: function() {
var keys = 'checkrecord:add,checkrecord:del,checkrecord:edit,toExcel' var keys = 'checkrecord:add,checkrecord:del,checkrecord:edit,toExcel'

View File

@ -6,9 +6,10 @@ import List from './components/list'
import FireRecord from './components/fireRecord.vue' import FireRecord from './components/fireRecord.vue'
import FireList from './components/fireList.vue' import FireList from './components/fireList.vue'
import RecordInfo from './components/recordInfo.vue' import RecordInfo from './components/recordInfo.vue'
import RecordList from './components/recordList.vue'
export default { export default {
components: { components: {
List, FireRecord, FireList, RecordInfo List, FireRecord, FireList, RecordInfo, RecordList
}, },
data() { data() {
return { return {