修改禅道已知bug

This commit is contained in:
qq787203167
2022-06-17 14:10:06 +08:00
parent 5274179ce2
commit 256e86e6a4
3 changed files with 22 additions and 6 deletions
@@ -97,6 +97,13 @@
this.visibleTree = false this.visibleTree = false
}, },
handleSubmit() { handleSubmit() {
if (this.userName.length > 1) {
this.$message.warning(this.$t('onlyOnePersonCanBeSelected'))
return
} else if (this.userName.length == 0) {
this.$message.warning(this.$t('pleaseSelectPersonFirst'))
return
}
let query = { let query = {
id: this.tableKey, id: this.tableKey,
createBy: this.userName.join(',') createBy: this.userName.join(',')
@@ -33,10 +33,10 @@
</a-form> </a-form>
</div> </div>
<div class="table-operator"> <div class="table-operator">
<div @click="setCreatorClick" class="operator-text" v-has="'dummyInventoryBase:add'"> <!-- <div @click="setCreatorClick" class="operator-text" v-has="'dummyInventoryBase:add'">-->
<a-icon type="setting"/> <!-- <a-icon type="setting"/>-->
{{$t('setCreator')}} <!-- {{$t('setCreator')}}-->
</div> <!-- </div>-->
<div @click="handleAdd" class="operator-text" v-has="'dummyInventoryBase:add'"> <div @click="handleAdd" class="operator-text" v-has="'dummyInventoryBase:add'">
<a-icon type="plus"/> <a-icon type="plus"/>
{{$t('newlyAdded')}} {{$t('newlyAdded')}}
@@ -70,6 +70,7 @@
<updateLog :url="url" ref="updateLogRef"/> <updateLog :url="url" ref="updateLogRef"/>
<historicalVersionList ref="historicalVersionListRef"/> <historicalVersionList ref="historicalVersionListRef"/>
<commentList ref="commentListRef"/> <commentList ref="commentListRef"/>
<JLoading :loading="loading"></JLoading>
</div> </div>
</template> </template>
@@ -103,6 +104,7 @@
isDisplayNum: '', isDisplayNum: '',
textTitle: '', textTitle: '',
isTrue: true, isTrue: true,
loading: false,
url: { url: {
logList: '/project/projectLawsInventoryLogEO/page', logList: '/project/projectLawsInventoryLogEO/page',
historicalVersionUrl: '', historicalVersionUrl: '',
@@ -224,10 +226,14 @@
postAction('/project/projectRelatedPersonnel/page', query).then((res) => { postAction('/project/projectRelatedPersonnel/page', query).then((res) => {
if (res.success) { if (res.success) {
let dataSource = res.result || [] let dataSource = res.result || []
console.log(dataSource)
dataSource.forEach(res => { dataSource.forEach(res => {
this.engineeringInterfacePerson += res.engineeringInterfacePerson + ',' if (res.engineeringInterfacePerson || res.certificationEngineer || res.lawEngineer) {
this.engineeringInterfacePerson += res.engineeringInterfacePerson + ',' + res.certificationEngineer + ',' + res.lawEngineer + ','
}
}) })
if (this.engineeringInterfacePerson.includes(this.userInfo().id)) { if (this.engineeringInterfacePerson.includes(this.userInfo().id) ||
this.$route.query.studioEngineer == this.userInfo().id) {
this.isTrue = true this.isTrue = true
} else { } else {
this.isTrue = false this.isTrue = false
@@ -235,8 +241,10 @@
this.$nextTick(() => { this.$nextTick(() => {
this.textColor(0) this.textColor(0)
}) })
this.loading = false
} else { } else {
this.textColor(0) this.textColor(0)
this.loading = false
} }
}) })
}, },
@@ -264,6 +272,7 @@
.doc-detail { .doc-detail {
background: #fff; background: #fff;
height: 100%; height: 100%;
position: relative;
.Virtual-detail-header { .Virtual-detail-header {
width: 100%; width: 100%;