修改上报库管理

This commit is contained in:
范强强
2024-01-05 14:39:16 +08:00
parent 5b8c187755
commit e0765e5202
2 changed files with 54 additions and 43 deletions
@@ -50,7 +50,9 @@
<span slot="operation" slot-scope="text,record"> <span slot="operation" slot-scope="text,record">
<a class="text-operation" @click="handlecody(record)" v-has="'params:report:history'">{{$t('Exporthistory')}}</a> <a class="text-operation" @click="handlecody(record)" v-has="'params:report:history'">{{$t('Exporthistory')}}</a>
<a class="text-operation" @click="deleteLib(record)" v-has="'report:detail:list'">{{$t('See')}}</a> <a class="text-operation" @click="deleteLib(record)" v-has="'report:detail:list'">{{$t('See')}}</a>
<a class="action-delete" @click="onDelete(record)" v-has="'params:report:delete'">{{$t('delete')}}</a> <a class="action-delete" @click="onDelete(record)"
:disabled="record.authorityFlag == '1' ? true : false"
v-has="'params:report:delete'">{{$t('delete')}}</a>
</span> </span>
</a-table> </a-table>
</div> </div>
@@ -68,7 +70,8 @@
</div> </div>
<!-- 导出历史模板--> <!-- 导出历史模板-->
<a-modal class="show-drawer" :title="titleTag" width="900px" v-model="drawerVisible" :footer="null"> <a-modal class="show-drawer" :title="titleTag" width="900px" v-model="drawerVisible" :footer="null">
<export-history v-if='drawerVisible' @areaVisible='drawerVisible = false' :paramsManifestId='paramsManifestId'></export-history> <export-history v-if='drawerVisible' @areaVisible='drawerVisible = false'
:paramsManifestId='paramsManifestId'></export-history>
</a-modal> </a-modal>
<!-- 删除--> <!-- 删除-->
<a-modal class="show-drawer" :title="titleDelete" width="500px" v-model="deleteVisible" :footer="null"> <a-modal class="show-drawer" :title="titleDelete" width="500px" v-model="deleteVisible" :footer="null">
@@ -81,7 +84,8 @@
<span>{{$t('reportedDelete')}}&nbsp;<span style="font-weight: bold">{{ this.deleteformtltle }}</span>&nbsp;{{$t('reportDelete')}}</span> <span>{{$t('reportedDelete')}}&nbsp;<span style="font-weight: bold">{{ this.deleteformtltle }}</span>&nbsp;{{$t('reportDelete')}}</span>
</div> </div>
<div class="title-text"> <div class="title-text">
<span class="title-text-text">{{$t('pleaseEnter')}}&nbsp;<span style="color: #BD3B1E;background-color: #F9E5E1">{{ this.deleteformtltle }}</span>&nbsp;{{$t('toConfirmed')}}</span> <span class="title-text-text">{{$t('pleaseEnter')}}&nbsp;<span
style="color: #BD3B1E;background-color: #F9E5E1">{{ this.deleteformtltle }}</span>&nbsp;{{$t('toConfirmed')}}</span>
</div> </div>
<div class="box-title-text"> <div class="box-title-text">
<a-form-model-item class="itemModel" prop="paramsTemplateName"> <a-form-model-item class="itemModel" prop="paramsTemplateName">
@@ -140,8 +144,8 @@
rules1: { rules1: {
paramsTemplateName: [ paramsTemplateName: [
{ required: true, message: this.$t('PleaseEnter') + this.$t('title'), trigger: 'change' }, { required: true, message: this.$t('PleaseEnter') + this.$t('title'), trigger: 'change' },
{ min:1, max: 200, message: this.$t('cantExeed')+'200'+this.$t('characters'), trigger: 'blur' }, { min: 1, max: 200, message: this.$t('cantExeed') + '200' + this.$t('characters'), trigger: 'blur' }
], ]
}, },
disabled: false, disabled: false,
projectNameList: [], projectNameList: [],
@@ -169,7 +173,7 @@
title: this.$t('ListTitle'), title: this.$t('ListTitle'),
align: 'left', align: 'left',
width: 400, width: 400,
dataIndex: 'title', dataIndex: 'title'
}, },
{ {
title: this.$t('Version'), title: this.$t('Version'),
@@ -289,7 +293,7 @@
this.deleteformtltle = val.title this.deleteformtltle = val.title
this.formInline = {} this.formInline = {}
this.deleteVisible = true this.deleteVisible = true
this.titleDelete = this.$t('Deletetitle') + "'" + val.title + "'" + '?' this.titleDelete = this.$t('Deletetitle') + '\'' + val.title + '\'' + '?'
// let param = { // let param = {
// id: val.id // id: val.id
// } // }
@@ -375,6 +379,7 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.titletext { .titletext {
width: 460px; width: 460px;
min-width: 110px; min-width: 110px;
@@ -389,6 +394,7 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.box-input { .box-input {
display: inline-block; display: inline-block;
width: 213%; width: 213%;
@@ -476,15 +482,18 @@
.add-text-text { .add-text-text {
margin-top: -14px; margin-top: -14px;
} }
::v-deep .ant-table-row:first-child { ::v-deep .ant-table-row:first-child {
background: #fff !important; background: #fff !important;
opacity: 0.9; opacity: 0.9;
} }
/deep/ .ant-modal-title { /deep/ .ant-modal-title {
font-weight: bold; font-weight: bold;
font-size: 18px; font-size: 18px;
letter-spacing: 1px; letter-spacing: 1px;
} }
::v-deep .ant-table-body { ::v-deep .ant-table-body {
background: transparent !important; background: transparent !important;
} }
@@ -121,7 +121,9 @@
</div> </div>
<div class="table-operator"> <div class="table-operator">
<!-- 保存--> <!-- 保存-->
<div @click="handlePreservation" class="operator-text" v-has="'report:detail:export:save'"> <div @click="handlePreservation" class="operator-text"
v-if="$route.query.authorityFlag == '0'"
v-has="'report:detail:export:save'">
<a-icon type="check-circle"/> <a-icon type="check-circle"/>
{{$t('preservation')}} {{$t('preservation')}}
</div> </div>