修改禅道已知bug
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="title">
|
<a-form-model-item class="itemModel" prop="title">
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
:disabled="true"
|
:disabled="formInline.roleCodeIndex == 0 ? false : true"
|
||||||
v-model="formInline.title"
|
v-model="formInline.title"
|
||||||
:placeholder="$t('PleaseEnter')+$t('title')"/>
|
:placeholder="$t('PleaseEnter')+$t('title')"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
|
|||||||
@@ -169,6 +169,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!isDisplay" style="float: right;margin-top: 1px;margin-bottom: 0px">
|
<div v-if="!isDisplay" style="float: right;margin-top: 1px;margin-bottom: 0px">
|
||||||
|
<div @click="handleExport" v-has="'projectLawsInventory:exportData'" v-if="isRoleSwitching"
|
||||||
|
class="operator-text">
|
||||||
|
<a-icon type="export" :rotate="-90"/>
|
||||||
|
{{ $t('export') }}
|
||||||
|
</div>
|
||||||
<div class="operator-text" @click="submitClick(0)" v-if="isRoleSwitching">
|
<div class="operator-text" @click="submitClick(0)" v-if="isRoleSwitching">
|
||||||
<a-icon type="check-circle"/>
|
<a-icon type="check-circle"/>
|
||||||
{{ $t('submit') }}
|
{{ $t('submit') }}
|
||||||
@@ -1061,11 +1066,21 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleExport() {
|
handleExport() {
|
||||||
|
let roleCodeIndex
|
||||||
|
if (this.isDisplay) {
|
||||||
|
roleCodeIndex = 0
|
||||||
|
} else {
|
||||||
|
roleCodeIndex = 4
|
||||||
|
}
|
||||||
|
if (this.formInlineRoleSwitching.roleSwitchingCode == '11' || this.formInlineRoleSwitching.roleSwitchingCode == '12') {
|
||||||
|
roleCodeIndex = 0
|
||||||
|
}
|
||||||
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
let query = {
|
let query = {
|
||||||
...this.queryParam,
|
...this.queryParam,
|
||||||
ids: selectedRowKeys.join(','),
|
ids: selectedRowKeys.join(','),
|
||||||
...this.queryParamQuery,
|
...this.queryParamQuery,
|
||||||
|
roleCode:roleCodeIndex,
|
||||||
projectLibraryId: this.$route.query.id
|
projectLibraryId: this.$route.query.id
|
||||||
}
|
}
|
||||||
downloadFile(this.url.exportData, this.$route.query.projectName + this.$t('listOfRegulations') + '.zip', query, this.Deselect)
|
downloadFile(this.url.exportData, this.$route.query.projectName + this.$t('listOfRegulations') + '.zip', query, this.Deselect)
|
||||||
|
|||||||
Reference in New Issue
Block a user