2019-09-02 17:34:34 +08:00
|
|
|
<template>
|
2019-10-09 17:05:10 +08:00
|
|
|
<el-dialog v-dialogDrag :title="this.$t('orderAuthor.packingDetails')" :visible.sync="dialogShow" width="800px" :before-close="close">
|
2019-09-03 10:45:58 +08:00
|
|
|
<div>
|
|
|
|
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
2019-09-02 17:34:34 +08:00
|
|
|
</div>
|
2019-09-03 10:45:58 +08:00
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
<el-button @click="dialogShow = false">{{ $t('map.cancel') }}</el-button>
|
|
|
|
</span>
|
|
|
|
</el-dialog>
|
2019-09-02 17:34:34 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { getPermissonDetail } from '@/api/management/author';
|
|
|
|
|
|
|
|
export default {
|
2019-10-29 17:33:11 +08:00
|
|
|
name: 'Author',
|
|
|
|
components: {
|
|
|
|
},
|
2019-11-04 14:05:55 +08:00
|
|
|
props:{
|
|
|
|
permissionTypeList:{
|
|
|
|
required:true,
|
|
|
|
type:Array
|
|
|
|
}
|
|
|
|
},
|
2019-10-29 17:33:11 +08:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
dialogShow: false,
|
|
|
|
id: '',
|
|
|
|
pagerConfig: {
|
|
|
|
pageSize: 'pageSize',
|
|
|
|
pageIndex: 'pageNum'
|
|
|
|
},
|
|
|
|
queryForm: {
|
|
|
|
labelWidth: '140px',
|
|
|
|
reset: true,
|
|
|
|
show: false,
|
|
|
|
queryObject: {
|
|
|
|
}
|
|
|
|
},
|
|
|
|
queryList: {
|
|
|
|
query: this.queryFunction,
|
|
|
|
selectCheckShow: false,
|
|
|
|
indexShow: true,
|
|
|
|
columns: [
|
|
|
|
{
|
|
|
|
title: this.$t('orderAuthor.permissionName'),
|
|
|
|
prop: 'name'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: this.$t('orderAuthor.permissionType'),
|
|
|
|
prop: 'type',
|
|
|
|
type: 'tag',
|
2019-11-04 14:05:55 +08:00
|
|
|
columnValue: (row) => { return this.$convertField(row.type, this.permissionTypeList, ['value', 'label']); },
|
2019-10-29 17:33:11 +08:00
|
|
|
tagType: (row) => { return ''; }
|
|
|
|
}
|
|
|
|
],
|
|
|
|
actions: [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
doShow(id) {
|
|
|
|
this.id = id;
|
|
|
|
this.dialogShow = true;
|
|
|
|
this.reloadTable();
|
|
|
|
},
|
|
|
|
close() {
|
|
|
|
this.id = '';
|
|
|
|
this.dialogShow = false;
|
|
|
|
},
|
|
|
|
queryFunction() {
|
|
|
|
if (this.id) {
|
|
|
|
return getPermissonDetail(this.id);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
reloadTable() {
|
|
|
|
if (this.queryList && this.queryList.reload) {
|
|
|
|
this.queryList.reload();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
turnback() {
|
|
|
|
this.$router.go(-1);
|
|
|
|
}
|
|
|
|
}
|
2019-09-02 17:34:34 +08:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
|
|
.draft {
|
|
|
|
width: 400px;
|
|
|
|
text-align: center;
|
|
|
|
margin: 20px auto;
|
|
|
|
}
|
|
|
|
</style>
|