[update] 上宝库
This commit is contained in:
@@ -981,4 +981,5 @@ module.exports = {
|
|||||||
// 上报库
|
// 上报库
|
||||||
Enable: 'Enable',
|
Enable: 'Enable',
|
||||||
Latestupdatetime: 'Latest update time',
|
Latestupdatetime: 'Latest update time',
|
||||||
|
Exporthistory: 'Exporthistory',
|
||||||
}
|
}
|
||||||
@@ -986,4 +986,5 @@ module.exports = {
|
|||||||
// 上报库
|
// 上报库
|
||||||
Enable: '启用',
|
Enable: '启用',
|
||||||
Latestupdatetime: '最新更新时间',
|
Latestupdatetime: '最新更新时间',
|
||||||
|
Exporthistory: '导出历史',
|
||||||
}
|
}
|
||||||
@@ -4,22 +4,20 @@
|
|||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('zoneOfApplication')">
|
<div class="title-text" :title="$t('entryName')">
|
||||||
<span>{{$t('zoneOfApplication')}}</span>
|
<span>{{$t('entryName')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<j-dict-select-tag class="box-input" v-model="queryParam.region"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('entryName')"
|
||||||
:placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"
|
v-model="queryParam.projectName"></a-input>
|
||||||
:type="'select'"
|
|
||||||
:triggerChange="false" :dictCode="'region'"/>
|
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text" :title="$t('parameterTemplate')">
|
<div class="title-text" :title="$t('ListTitle')">
|
||||||
<span>{{$t('parameterTemplate')}}</span>
|
<span>{{$t('ListTitle')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('parameterTemplate')"
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('ListTitle')"
|
||||||
v-model="queryParam.paramsTemplateName"></a-input>
|
v-model="queryParam.title"></a-input>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||||
@@ -30,20 +28,6 @@
|
|||||||
</span>
|
</span>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-operator">
|
|
||||||
<div @click="handleAdd" class="operator-text" v-has="'params:template:add'">
|
|
||||||
<a-icon type="plus"/>
|
|
||||||
{{$t('newlyAdded')}}
|
|
||||||
</div>
|
|
||||||
<div @click="handlecody" class="operator-text" v-has="'params:template:copy'">
|
|
||||||
<a-icon type="copy"/>
|
|
||||||
{{$t('copy')}}
|
|
||||||
</div>
|
|
||||||
<div @click="handleDel" class="operator-text" v-has="'params:template:delete'">
|
|
||||||
<a-icon type="delete"/>
|
|
||||||
{{$t('BatchDelete')}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
<div>
|
||||||
<a-table
|
<a-table
|
||||||
ref="table"
|
ref="table"
|
||||||
@@ -65,8 +49,8 @@
|
|||||||
{{ text && text.length > 30 ? text.slice(0, 29) + '...' : text }}
|
{{ text && text.length > 30 ? text.slice(0, 29) + '...' : text }}
|
||||||
</span>
|
</span>
|
||||||
<span slot="operation" slot-scope="text,record">
|
<span slot="operation" slot-scope="text,record">
|
||||||
<a class="text-operation" v-has="'params:template:edit'" @click="edit(record)">{{$t('edit')}}</a>
|
<a class="text-operation" @click="edit(record)">{{$t('Exporthistory')}}</a>
|
||||||
<a class="text-operation" v-has="'params:template:delete'" @click="deleteLib(record)">{{$t('deleteLib')}}</a>
|
<a class="text-operation" @click="deleteLib(record)">{{$t('See')}}</a>
|
||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
@@ -138,7 +122,7 @@ export default {
|
|||||||
dataSource: [],
|
dataSource: [],
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
url: {
|
url: {
|
||||||
list: 'params/template/page',
|
list: 'params/report/page',
|
||||||
add: 'params/template/add',
|
add: 'params/template/add',
|
||||||
edit: 'params/template/edit',
|
edit: 'params/template/edit',
|
||||||
deleteBatch: 'params/template/delete',
|
deleteBatch: 'params/template/delete',
|
||||||
@@ -154,19 +138,17 @@ export default {
|
|||||||
title: this.$t('entryName'),
|
title: this.$t('entryName'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '10%',
|
width: '10%',
|
||||||
dataIndex: 'region_dictText',
|
dataIndex: 'projectName',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('ListTitle'),
|
title: this.$t('ListTitle'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'paramsTemplateName',
|
dataIndex: 'title',
|
||||||
scopedSlots: { customRender: 'projectName' }
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('Version'),
|
title: this.$t('Version'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'description',
|
dataIndex: 'version',
|
||||||
scopedSlots: { customRender: 'titleName' }
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('operation'),
|
title: this.$t('operation'),
|
||||||
@@ -214,68 +196,9 @@ export default {
|
|||||||
this.selectedRowKeys = value
|
this.selectedRowKeys = value
|
||||||
this.selectedRowKeysArray = this.selectedRowKeys.join(',')
|
this.selectedRowKeysArray = this.selectedRowKeys.join(',')
|
||||||
},
|
},
|
||||||
//添加
|
|
||||||
handleAdd() {
|
|
||||||
this.$refs.addModelRef.addModel()
|
|
||||||
},
|
|
||||||
// 复制
|
|
||||||
handlecody(){
|
|
||||||
if (this.selectedRowKeys.length > 1) {
|
|
||||||
this.$message.warning(this.$t('OnlyOneSelected'))
|
|
||||||
} else if(this.selectedRowKeys.length == 0){
|
|
||||||
this.$message.warning(this.$t('pleaseSelectData'))
|
|
||||||
} else {
|
|
||||||
this.areaVisible=true
|
|
||||||
this.formInline = {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
hideModal(){
|
hideModal(){
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
},
|
},
|
||||||
//批量删除
|
|
||||||
handleDel() {
|
|
||||||
let param={
|
|
||||||
ids: this.selectedRowKeysArray
|
|
||||||
}
|
|
||||||
if (this.selectedRowKeys.length > 0) {
|
|
||||||
let _this = this
|
|
||||||
this.$confirm({
|
|
||||||
content: _this.$t('ConfirmBatchDeletion'),
|
|
||||||
onOk() {
|
|
||||||
axios({
|
|
||||||
url: '/jero-boot/params/template/deleteBatch',
|
|
||||||
method: 'post',
|
|
||||||
data: param,
|
|
||||||
transformRequest: [function (data) {
|
|
||||||
let ret = ''
|
|
||||||
for (let it in data) {
|
|
||||||
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
|
||||||
}
|
|
||||||
return ret
|
|
||||||
}],
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
|
||||||
'X-Access-Token':_this.token
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.then( (res) =>{
|
|
||||||
if (res.data.success) {
|
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
|
||||||
_this.selectedRowKeys = []
|
|
||||||
_this.getList()
|
|
||||||
}else{
|
|
||||||
_this.$message.warning(_this.$t('operationFailed'))
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch( (error) =>{
|
|
||||||
console.log(error);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
|
||||||
}
|
|
||||||
},
|
|
||||||
//编辑
|
//编辑
|
||||||
edit(item) {
|
edit(item) {
|
||||||
this.$refs.addModelRef.editModel(JSON.parse(JSON.stringify(item)))
|
this.$refs.addModelRef.editModel(JSON.parse(JSON.stringify(item)))
|
||||||
|
|||||||
Reference in New Issue
Block a user