|
@@ -6,8 +6,9 @@
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
import { Component, Prop, Vue, Watch } from "vue-property-decorator";
|
|
|
-import {query,add,update,del} from '@/api/printPermission'
|
|
|
-@Component({components:{}})
|
|
|
+import {query,add,update,del} from '@/api/printPermission';
|
|
|
+import permissionSelect from "./components/permissionSelect.vue";
|
|
|
+@Component({components:{permissionSelect}})
|
|
|
export default class PrintPermission extends Vue {
|
|
|
load=false;
|
|
|
isSearch=false
|
|
@@ -23,28 +24,29 @@ export default class PrintPermission extends Vue {
|
|
|
columns:[
|
|
|
[{
|
|
|
span:8,
|
|
|
- label:'模板名称',
|
|
|
- prop:'templateName',
|
|
|
- component:'by-input',
|
|
|
- compConfig:{
|
|
|
- attr:{
|
|
|
- clearable:true
|
|
|
- }
|
|
|
- }
|
|
|
+ label:'外部用户标识',
|
|
|
+ prop:'userName',
|
|
|
+ component:'user-modal'
|
|
|
},{
|
|
|
span:8,
|
|
|
- label:'模板引擎',
|
|
|
- prop:'templateEngine',
|
|
|
+ label:'角色',
|
|
|
+ prop:'role',
|
|
|
component:'by-select',
|
|
|
compConfig:{
|
|
|
attr:{
|
|
|
clearable:true,
|
|
|
data:[{
|
|
|
- label:'freemarker',
|
|
|
- value:'freemarker'
|
|
|
+ label:'超级管理员',
|
|
|
+ value:'admin'
|
|
|
+ },{
|
|
|
+ label:'操作用户',
|
|
|
+ value:'oper_user'
|
|
|
},{
|
|
|
- label:'thymeleaf',
|
|
|
- value:'thymeleaf'
|
|
|
+ label:'打印用户',
|
|
|
+ value:'print_user'
|
|
|
+ },{
|
|
|
+ label:'自定义用户',
|
|
|
+ value:'custom_user'
|
|
|
}]
|
|
|
}
|
|
|
}
|
|
@@ -68,7 +70,7 @@ export default class PrintPermission extends Vue {
|
|
|
columns:[{
|
|
|
title:'外部用户标识',
|
|
|
isDetail:true,
|
|
|
- field:'userId'
|
|
|
+ field:'userName'
|
|
|
},{
|
|
|
title:'角色',
|
|
|
field:'role',
|
|
@@ -118,12 +120,12 @@ export default class PrintPermission extends Vue {
|
|
|
role:[
|
|
|
{required: true, message: '角色不能为空!', trigger: 'change'}
|
|
|
],
|
|
|
- customPermission:[
|
|
|
- {required: true, message: '自定义权限不能为空!', trigger: 'change'}
|
|
|
- ],
|
|
|
- customLimit:[
|
|
|
- {required: true, message: '自定义打印次数限制不能为空!', trigger: 'blur'}
|
|
|
- ]
|
|
|
+ // customPermission:[
|
|
|
+ // {required: true, message: '自定义权限不能为空!', trigger: 'change'}
|
|
|
+ // ],
|
|
|
+ // customLimit:[
|
|
|
+ // {required: true, message: '自定义打印次数限制不能为空!', trigger: 'blur'}
|
|
|
+ // ]
|
|
|
}
|
|
|
},
|
|
|
columns:[
|
|
@@ -158,25 +160,7 @@ export default class PrintPermission extends Vue {
|
|
|
[{
|
|
|
label:'自定义权限',
|
|
|
prop:'customPermission',
|
|
|
- component:'by-select',
|
|
|
- compConfig:{
|
|
|
- attr:{
|
|
|
- clearable:true,
|
|
|
- data:[{
|
|
|
- label:'新增模板',
|
|
|
- value:'add'
|
|
|
- },{
|
|
|
- label:'编辑模板',
|
|
|
- value:'edit'
|
|
|
- },{
|
|
|
- label:'删除模板',
|
|
|
- value:'del'
|
|
|
- },{
|
|
|
- label:'打印模板',
|
|
|
- value:'print'
|
|
|
- }]
|
|
|
- }
|
|
|
- }
|
|
|
+ component:permissionSelect
|
|
|
}],
|
|
|
[{
|
|
|
label:'自定义打印次数限制',
|