合并分支 'fix_bug_first_stage' 到 'master'
修改禅道已知bug 查看合并请求 laws-nio/laws-weilai!38
This commit is contained in:
@@ -90,7 +90,8 @@
|
|||||||
<div class="Virtual-detail-right"
|
<div class="Virtual-detail-right"
|
||||||
:style="{'width':isDisplay?'calc(100% - 240px)':'calc(100% - 66px)'}">
|
:style="{'width':isDisplay?'calc(100% - 240px)':'calc(100% - 66px)'}">
|
||||||
<ProjectDetailsName @TaskListChange="TaskListChange" v-if="textTitle === $t('projectDetails')"/>
|
<ProjectDetailsName @TaskListChange="TaskListChange" v-if="textTitle === $t('projectDetails')"/>
|
||||||
<listOfRegulations v-else-if="textTitle === $t('listOfRegulations')"/>
|
<listOfRegulations v-else-if="textTitle === $t('listOfRegulations')"
|
||||||
|
:areaOfResponsibilityList="areaOfResponsibilityList"/>
|
||||||
<TaskList :isDisplayNum="isDisplayNum" :areaOfResponsibility="areaOfResponsibility"
|
<TaskList :isDisplayNum="isDisplayNum" :areaOfResponsibility="areaOfResponsibility"
|
||||||
v-else-if="textTitle === $t('taskList')"/>
|
v-else-if="textTitle === $t('taskList')"/>
|
||||||
<TaskParameterCollection v-else-if="textTitle === $t('TaskParameterCollection')"/>
|
<TaskParameterCollection v-else-if="textTitle === $t('TaskParameterCollection')"/>
|
||||||
@@ -137,7 +138,7 @@
|
|||||||
isTrue: true,
|
isTrue: true,
|
||||||
loading: false,
|
loading: false,
|
||||||
isDisplay: true,
|
isDisplay: true,
|
||||||
|
areaOfResponsibilityList:{},
|
||||||
url: {
|
url: {
|
||||||
logList: '/project/projectLawsInventoryLogEO/page',
|
logList: '/project/projectLawsInventoryLogEO/page',
|
||||||
historicalVersionUrl: '',
|
historicalVersionUrl: '',
|
||||||
@@ -216,6 +217,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
textClick(num, name) {
|
textClick(num, name) {
|
||||||
|
this.areaOfResponsibilityList = {}
|
||||||
|
this.areaOfResponsibility = {}
|
||||||
this.textTitle = name
|
this.textTitle = name
|
||||||
let textColor = document.getElementsByClassName('Virtual-detail-left-text-color')
|
let textColor = document.getElementsByClassName('Virtual-detail-left-text-color')
|
||||||
if (textColor && textColor.length > 0) {
|
if (textColor && textColor.length > 0) {
|
||||||
@@ -286,15 +289,20 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
TaskListChange(item) {
|
TaskListChange(item) {
|
||||||
this.areaOfResponsibility = item
|
if (item.isListing && item.isListing == '1'){
|
||||||
this.textTitle = this.$t('taskList')
|
this.areaOfResponsibilityList = item
|
||||||
|
this.textTitle = this.$t('listOfRegulations')
|
||||||
|
}else{
|
||||||
|
this.areaOfResponsibility = item
|
||||||
|
this.textTitle = this.$t('taskList')
|
||||||
|
}
|
||||||
let textColor = document.getElementsByClassName('Virtual-detail-left-text-color')
|
let textColor = document.getElementsByClassName('Virtual-detail-left-text-color')
|
||||||
if (textColor && textColor.length > 0) {
|
if (textColor && textColor.length > 0) {
|
||||||
textColor[0].classList.remove('Virtual-detail-left-text-color')
|
textColor[0].classList.remove('Virtual-detail-left-text-color')
|
||||||
}
|
}
|
||||||
let text = document.getElementsByClassName('Virtual-detail-left-text')
|
let text = document.getElementsByClassName('Virtual-detail-left-text')
|
||||||
for (let i = 0; i < text.length; i++) {
|
for (let i = 0; i < text.length; i++) {
|
||||||
if (text[i].title == this.$t('taskList')) {
|
if (text[i].title == this.textTitle) {
|
||||||
text[i].classList.add('Virtual-detail-left-text-color')
|
text[i].classList.add('Virtual-detail-left-text-color')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -387,6 +387,7 @@
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'listOfRegulations',
|
name: 'listOfRegulations',
|
||||||
|
props:['areaOfResponsibilityList'],
|
||||||
components: {
|
components: {
|
||||||
ImportFile,
|
ImportFile,
|
||||||
listAddModel,
|
listAddModel,
|
||||||
@@ -911,6 +912,9 @@
|
|||||||
this.getRoleByUserId(() => {
|
this.getRoleByUserId(() => {
|
||||||
this.getAndUserId()
|
this.getAndUserId()
|
||||||
})
|
})
|
||||||
|
if (this.areaOfResponsibilityList && this.areaOfResponsibilityList.dutyTerritory) {
|
||||||
|
this.queryParam.dutyTerritory = this.areaOfResponsibilityList.dutyTerritory
|
||||||
|
}
|
||||||
// } else {
|
// } else {
|
||||||
// this.isDisplay = false
|
// this.isDisplay = false
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -98,6 +98,9 @@
|
|||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
areaOfResponsibilityClick(item) {
|
areaOfResponsibilityClick(item) {
|
||||||
|
if (this.queryParam.operatorType == 'queryListingToConfirmStatistics' || this.queryParam.operatorType == 'queryTaskToConfirmStatistics'){
|
||||||
|
item.isListing = '1'
|
||||||
|
}
|
||||||
this.$emit('responsibility', item)
|
this.$emit('responsibility', item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user