修改上报库管理
This commit is contained in:
@@ -44,13 +44,15 @@
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||
:columns="columns"
|
||||
>
|
||||
<!-- <span slot="projectName" slot-scope="text,record" :title="text">-->
|
||||
<!-- {{ text && text.length > 20 ? text.slice(0, 19) + '...' : text }}-->
|
||||
<!-- </span>-->
|
||||
<!-- <span slot="projectName" slot-scope="text,record" :title="text">-->
|
||||
<!-- {{ text && text.length > 20 ? text.slice(0, 19) + '...' : text }}-->
|
||||
<!-- </span>-->
|
||||
<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="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>
|
||||
</a-table>
|
||||
</div>
|
||||
@@ -68,7 +70,8 @@
|
||||
</div>
|
||||
<!-- 导出历史模板-->
|
||||
<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 class="show-drawer" :title="titleDelete" width="500px" v-model="deleteVisible" :footer="null">
|
||||
@@ -81,7 +84,8 @@
|
||||
<span>{{$t('reportedDelete')}} <span style="font-weight: bold">{{ this.deleteformtltle }}</span> {{$t('reportDelete')}}</span>
|
||||
</div>
|
||||
<div class="title-text">
|
||||
<span class="title-text-text">{{$t('pleaseEnter')}} <span style="color: #BD3B1E;background-color: #F9E5E1">{{ this.deleteformtltle }}</span> {{$t('toConfirmed')}}</span>
|
||||
<span class="title-text-text">{{$t('pleaseEnter')}} <span
|
||||
style="color: #BD3B1E;background-color: #F9E5E1">{{ this.deleteformtltle }}</span> {{$t('toConfirmed')}}</span>
|
||||
</div>
|
||||
<div class="box-title-text">
|
||||
<a-form-model-item class="itemModel" prop="paramsTemplateName">
|
||||
@@ -118,16 +122,16 @@
|
||||
components: {
|
||||
ExportHistory
|
||||
},
|
||||
mixins:[ResizeHeader, ResizeColumnProvide],
|
||||
mixins: [ResizeHeader, ResizeColumnProvide],
|
||||
data() {
|
||||
return {
|
||||
token: Vue.ls.get(ACCESS_TOKEN),
|
||||
loading: false,
|
||||
toggleSearchStatus: false,
|
||||
deleteVisible:false,
|
||||
titleDelete:this.$t('Deletetitle'),
|
||||
deleteVisible: false,
|
||||
titleDelete: this.$t('Deletetitle'),
|
||||
selectedRowKeys: [],
|
||||
paramsManifestId:'',
|
||||
paramsManifestId: '',
|
||||
selectedRowKeysArray: '',
|
||||
formInline: {},
|
||||
orderBy: '1',
|
||||
@@ -138,16 +142,16 @@
|
||||
]
|
||||
},
|
||||
rules1: {
|
||||
paramsTemplateName:[
|
||||
{ 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' },
|
||||
],
|
||||
paramsTemplateName: [
|
||||
{ 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' }
|
||||
]
|
||||
},
|
||||
disabled: false,
|
||||
projectNameList: [],
|
||||
visible: false,
|
||||
dataSource: [],
|
||||
deleteformtltle:'',
|
||||
deleteformtltle: '',
|
||||
confirmLoading: false,
|
||||
url: {
|
||||
list: 'params/report/page'
|
||||
@@ -162,14 +166,14 @@
|
||||
align: 'left',
|
||||
width: 300,
|
||||
dataIndex: 'projectName',
|
||||
sorter:true,
|
||||
sorter: true,
|
||||
scopedSlots: { customRender: 'projectName' }
|
||||
},
|
||||
{
|
||||
title: this.$t('ListTitle'),
|
||||
align: 'left',
|
||||
width: 400,
|
||||
dataIndex: 'title',
|
||||
dataIndex: 'title'
|
||||
},
|
||||
{
|
||||
title: this.$t('Version'),
|
||||
@@ -186,7 +190,7 @@
|
||||
}
|
||||
],
|
||||
queryParam: {},
|
||||
deleteform:{},
|
||||
deleteform: {},
|
||||
areaVisible: false,
|
||||
paramsTemplateName: '',
|
||||
drawerVisible: false,
|
||||
@@ -204,7 +208,7 @@
|
||||
handleSubmit() {
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
if(this.formInline.paramsTemplateName === this.deleteform.title){
|
||||
if (this.formInline.paramsTemplateName === this.deleteform.title) {
|
||||
getAction('/params/report/delete', {
|
||||
id: this.deleteform.id
|
||||
}).then((res) => {
|
||||
@@ -216,7 +220,7 @@
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}else{
|
||||
} else {
|
||||
this.$message.warning(this.$t('confirmtitle'))
|
||||
}
|
||||
|
||||
@@ -289,7 +293,7 @@
|
||||
this.deleteformtltle = val.title
|
||||
this.formInline = {}
|
||||
this.deleteVisible = true
|
||||
this.titleDelete = this.$t('Deletetitle') + "'" + val.title + "'" + '?'
|
||||
this.titleDelete = this.$t('Deletetitle') + '\'' + val.title + '\'' + '?'
|
||||
// let param = {
|
||||
// id: val.id
|
||||
// }
|
||||
@@ -315,9 +319,9 @@
|
||||
},
|
||||
tableOnChange(pagination, filters, sorter) {
|
||||
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
||||
if(sorter.columnKey == 'projectName') {
|
||||
if (sorter.columnKey == 'projectName') {
|
||||
this.orderByField = 'pageName'
|
||||
} else{
|
||||
} else {
|
||||
this.orderByField = sorter.columnKey
|
||||
}
|
||||
this.getList()
|
||||
@@ -375,20 +379,22 @@
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.titletext{
|
||||
width: 460px;
|
||||
min-width: 110px;
|
||||
color: #000F16;
|
||||
display: inline-block;
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
/*margin-right: 16px;*/
|
||||
/*margin-top: 3px;*/
|
||||
/*text-align: right;*/
|
||||
/*white-space: nowrap;*/
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.titletext {
|
||||
width: 460px;
|
||||
min-width: 110px;
|
||||
color: #000F16;
|
||||
display: inline-block;
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
/*margin-right: 16px;*/
|
||||
/*margin-top: 3px;*/
|
||||
/*text-align: right;*/
|
||||
/*white-space: nowrap;*/
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.box-input {
|
||||
display: inline-block;
|
||||
width: 213%;
|
||||
@@ -476,26 +482,29 @@
|
||||
.add-text-text {
|
||||
margin-top: -14px;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-row:first-child {
|
||||
background: #fff!important;
|
||||
background: #fff !important;
|
||||
opacity: 0.9;
|
||||
}
|
||||
/deep/.ant-modal-title{
|
||||
|
||||
/deep/ .ant-modal-title {
|
||||
font-weight: bold;
|
||||
font-size: 18px;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-body {
|
||||
background: transparent!important;
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-row-cell-break-word{
|
||||
::v-deep .ant-table-row-cell-break-word {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
::v-deep .ant-table-placeholder{
|
||||
::v-deep .ant-table-placeholder {
|
||||
margin-top: 8px !important
|
||||
}
|
||||
</style>
|
||||
@@ -121,7 +121,9 @@
|
||||
</div>
|
||||
<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"/>
|
||||
{{$t('preservation')}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user