消防基础信息模块代码格式化
parent
5b06e37473
commit
3d3ffa9d5f
|
@ -282,7 +282,7 @@ export default {
|
|||
},
|
||||
|
||||
goDetail(id, FIRE_RECORD_ID) {
|
||||
this.setActiveName('RecordInfo')
|
||||
this.setActiveName('RecordList')
|
||||
const info = this.getInfo()
|
||||
info.FIRE_CHECK_ID = id
|
||||
info.FIRE_RECORD_ID = FIRE_RECORD_ID
|
||||
|
|
|
@ -243,8 +243,8 @@ export default {
|
|||
created() {
|
||||
this.FIRE_CHECK_ID = this.getInfo().FIRE_CHECK_ID
|
||||
this.FIRE_RECORD_ID = this.getInfo().FIRE_RECORD_ID
|
||||
this.SHOW_OR_EDIT = this.$parent.SHOW_OR_EDIT
|
||||
this.recordBase = Object.assign({}, this.$parent.row)
|
||||
this.SHOW_OR_EDIT = this.getInfo().SHOW_OR_EDIT
|
||||
this.recordBase = Object.assign({}, this.getInfo().row)
|
||||
this.getData()
|
||||
this.getSignImgs(this.FIRE_RECORD_ID)
|
||||
},
|
||||
|
@ -310,7 +310,7 @@ export default {
|
|||
this.$refs.information.init(id)
|
||||
},
|
||||
back() {
|
||||
this.$parent.activeName = 'RecordList'
|
||||
this.setActiveName('RecordList')
|
||||
},
|
||||
// 获取详情
|
||||
getData() {
|
||||
|
|
|
@ -125,6 +125,7 @@ export default {
|
|||
this.getList()
|
||||
this.hasButton()
|
||||
},
|
||||
inject: ['setActiveName', 'getInfo', 'setInfo'],
|
||||
methods: {
|
||||
getRowKey(row) {
|
||||
return row.CHECKRECORD_ID
|
||||
|
@ -142,7 +143,7 @@ export default {
|
|||
{
|
||||
STARTTIME: this.dates[0],
|
||||
ENDTIME: this.dates[1],
|
||||
FIRE_CHECK_ID: this.$parent.FIRE_CHECK_ID,
|
||||
FIRE_CHECK_ID: this.getInfo().FIRE_CHECK_ID,
|
||||
KEYWORDS: this.KEYWORDS,
|
||||
STATUS: this.STATUS
|
||||
}
|
||||
|
@ -198,15 +199,17 @@ export default {
|
|||
},
|
||||
// 检查记录
|
||||
goCheck(row, id, FIRE_RECORD_ID) {
|
||||
this.$parent.FIRE_CHECK_ID = id
|
||||
this.$parent.FIRE_RECORD_ID = FIRE_RECORD_ID
|
||||
this.$parent.SHOW_OR_EDIT = 'SHOW'
|
||||
this.$parent.row = row
|
||||
this.$parent.activeName = 'RecordInfo'
|
||||
const info = this.getInfo()
|
||||
info.FIRE_CHECK_ID = id
|
||||
info.FIRE_RECORD_ID = FIRE_RECORD_ID
|
||||
info.SHOW_OR_EDIT = 'SHOW'
|
||||
info.row = row
|
||||
this.setInfo(info)
|
||||
this.setActiveName('RecordInfo')
|
||||
},
|
||||
// 返回
|
||||
back() {
|
||||
this.$parent.activeName = 'List'
|
||||
this.setActiveName('FireRecord')
|
||||
},
|
||||
hasButton: function() {
|
||||
var keys = 'checkrecord:add,checkrecord:del,checkrecord:edit,toExcel'
|
||||
|
|
|
@ -6,9 +6,10 @@ import List from './components/list'
|
|||
import FireRecord from './components/fireRecord.vue'
|
||||
import FireList from './components/fireList.vue'
|
||||
import RecordInfo from './components/recordInfo.vue'
|
||||
import RecordList from './components/recordList.vue'
|
||||
export default {
|
||||
components: {
|
||||
List, FireRecord, FireList, RecordInfo
|
||||
List, FireRecord, FireList, RecordInfo, RecordList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue