Merge remote-tracking branch 'origin/pet' into pet

# Conflicts:
#	src/views/dangerousWork/hoisting/components/list.vue
#	src/views/dangerousWork/hoisting/index.vue
pet-人员中台对接-xuyifeng-7.24
guoyuepeng 2024-06-28 14:44:00 +08:00
commit c2a661976d
5 changed files with 25 additions and 16 deletions

View File

@ -248,7 +248,7 @@ export default {
})
},
goBack() {
this.$parent.activeName = 'List'
this.$parent.activeName = 'highwork_list'
}
}

View File

@ -132,7 +132,14 @@
<el-button type="primary" @click="dialogFormShow = false"> </el-button>
</div>
</el-dialog>
<div style="height: 60px;"></div>
<div class="ui-foot">
<el-button type="primary" @click="goBack"> </el-button>
</div>
</div>
</template>
<script>
import Pagination from '@/components/Pagination' // el-pagination
@ -211,7 +218,9 @@ export default {
'/dangerousWork/gfHighWork/list?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page,
{
KEYWORDS: this.KEYWORDS, APPLY_STATUS: this.STATUS,
DEPTIDS: this.DEPTIDS, tm: new Date().getTime()
DEPTIDS: this.DEPTIDS, tm: new Date().getTime(),
CORPINFO_ID: this.$parent.CORPINFO_ID,
ticketType: this.$parent.ticketType
}
).then((data) => {
this.listLoading = false
@ -326,6 +335,10 @@ export default {
goDetail(id) {
this.$parent.activeName = 'Detail'
this.$parent.HIGHWORK_ID = id
},
goBack(){
this.$parent.activeName = 'CorpInfo'
this.$parent.HIGHWORK_ID = ''
}
}
}

View File

@ -1,28 +1,23 @@
<template>
<div>
<CorpInfo v-show="activeName=='CorpInfo'" />
<List v-show="activeName=='highwork_list'" />
<CorpInfo v-show="activeName=='CorpInfo'" ref="list"/>
<List v-if="activeName=='highwork_list'" />
<Detail v-if="activeName=='Detail'"/>
</div>
</template>
<script>
import CorpInfo from "./components/corpInfo";
import List from './components/list'
import Detail from './components/detail'
import CorpInfo from "./components/corpInfo";
export default {
components: {CorpInfo,List,Detail},
data() {
return {
activeName: 'highwork_list',
HIGHWORK_ID: ''
}
},
watch: {
activeName(val) {
if (val == 'highwork_list') {
this.$refs.list.getQuery()
}
activeName: 'CorpInfo',
HIGHWORK_ID: '',
ticketType : '',
CUTROAD_ID:''
}
}
}

View File

@ -102,7 +102,7 @@ export default {
this.$parent.activeName = tableName
this.$parent.CORPINFO_ID = CORPINFO_ID
this.$parent.ticketType = ticketType
this.$parent.CUTROAD_ID =''
this.$parent.HOISTING_ID =''
},
getList() {
return new Promise((resolve) => {

View File

@ -16,7 +16,8 @@ export default {
return {
activeName: 'CorpInfo',
HOISTING_ID: '',
ticketType:''
ticketType : '',
CORPINFO_ID : ''
}
},
watch: {