|
|
@@ -33,7 +33,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group row">
|
|
|
- <label for="authority" class="col-2 col-form-label text-md-right">权限</label>
|
|
|
+ <label for="authority" class="col-2 col-form-label text-md-right">允许权限</label>
|
|
|
<div class="col-8">
|
|
|
<input type="text" class="form-control tooltipTarget" placeholder="定位权限"
|
|
|
@input="seekAuthority($event)" title="输入关键词快速定位下拉列表"></div>
|
|
|
@@ -44,7 +44,7 @@
|
|
|
<input name="authority" hidden v-model="authorities" >
|
|
|
<div class="input-group" style="max-height: 150px; overflow-y: scroll;border-radius:5px;opacity:0.5;text-align: center;">
|
|
|
<ul class="list-group" style="width: 100%" onselectstart="return false;">
|
|
|
- <li :data-original-title="authority.style ? '双击删除权限' :'双击添加权限'" v-for="authority in authoritiesAll" :id="authority.name" class="list-group-item list-group-item-action pt-0 pb-0"
|
|
|
+ <li :data-original-title="authority.style ? '双击删除权限' :'双击添加权限'" v-for="authority in authoritiesAll" v-if="authority.permission=='允许'" :id="authority.name" class="list-group-item list-group-item-action pt-0 pb-0"
|
|
|
@dblclick="selectedAuthority(authority)" :class="authority.style ? 'active' :''"><span style="cursor: default;" :id="authority.name"> @{{ authority.name }} </span></li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
@@ -57,7 +57,38 @@
|
|
|
<div class="col-3" v-if="authoritiesList.length>0">
|
|
|
<div class="input-group" style="max-height: 150px; overflow-y: scroll;border-radius:5px;text-align: center;">
|
|
|
<ul class="list-group tooltipTarget" style="width: 100%" onselectstart="return false;">
|
|
|
- <li title="双击删除权限" v-for="authority in authoritiesList" class=" list-group-item list-group-item-action pt-0 pb-0"
|
|
|
+ <li title="双击删除权限" v-for="authority in authoritiesList" v-if="authority.permission=='允许'" class=" list-group-item list-group-item-action pt-0 pb-0"
|
|
|
+ @dblclick="selectedAuthority(authority)"><span style="cursor: default;"> @{{ authority.name }} </span></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group row">
|
|
|
+ <label for="authority" class="col-2 col-form-label text-md-right">禁止权限</label>
|
|
|
+ <div class="col-8">
|
|
|
+ <input type="text" class="form-control tooltipTarget" placeholder="定位权限"
|
|
|
+ @input="seekAuthority($event)" title="输入关键词快速定位下拉列表"></div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group row">
|
|
|
+ <label class="col-2"></label>
|
|
|
+ <div class="col-5">
|
|
|
+ <input name="authority" hidden v-model="authorities" >
|
|
|
+ <div class="input-group" style="max-height: 150px; overflow-y: scroll;border-radius:5px;opacity:0.5;text-align: center;">
|
|
|
+ <ul class="list-group" style="width: 100%" >
|
|
|
+ <li :data-original-title="authority.style ? '双击删除权限' :'双击添加权限'" v-for="authority in authoritiesAll" v-if="authority.permission=='禁止'" :id="authority.name" class="list-group-item list-group-item-action pt-0 pb-0"
|
|
|
+ @dblclick="selectedAuthority(authority)" :class="authority.style ? 'active' :''"><span style="cursor: default;" :id="authority.name"> @{{ authority.name }} </span></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ @error('authority')
|
|
|
+ <span class="invalid-feedback">
|
|
|
+ <strong>{{ $message }}</strong>
|
|
|
+ </span>
|
|
|
+ @enderror
|
|
|
+ </div>
|
|
|
+ <div class="col-3" v-if="authoritiesList.length>0">
|
|
|
+ <div class="input-group" style="max-height: 150px; overflow-y: scroll;border-radius:5px;text-align: center;">
|
|
|
+ <ul class="list-group tooltipTarget" style="width: 100%" >
|
|
|
+ <li title="双击删除权限" v-for="authority in authoritiesList" v-if="authority.permission=='禁止'" class=" list-group-item list-group-item-action pt-0 pb-0"
|
|
|
@dblclick="selectedAuthority(authority)"><span style="cursor: default;"> @{{ authority.name }} </span></li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
@@ -82,7 +113,7 @@
|
|
|
data:{
|
|
|
authoritiesAll:[
|
|
|
@foreach( $authoritiesAll as $authority )
|
|
|
- {id:'{{$authority->id}}',name:'{{$authority->alias_name}}',style:false},
|
|
|
+ {id:'{{$authority->id}}',name:'{{$authority->alias_name}}',style:false,permission:'{{$authority->permission}}'},
|
|
|
@endforeach
|
|
|
],
|
|
|
authorities:[
|
|
|
@@ -106,7 +137,7 @@
|
|
|
authoritiesAll.every(function (authorityAll) {
|
|
|
if (authorityAll.id == authorities[i]) {
|
|
|
authorityAll.style = true;
|
|
|
- authoritiesList.push({'id':authorityAll.id,'name':authorityAll.name});
|
|
|
+ authoritiesList.push({'id':authorityAll.id,'name':authorityAll.name,'permission':authorityAll.permission});
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
|
@@ -149,7 +180,7 @@
|
|
|
authoritiesAll.every(function (authorityAll) {
|
|
|
if (authorityAll.id==e.id){
|
|
|
authorityAll.style=true;
|
|
|
- authoritiesList.push({'id':authorityAll.id,'name':authorityAll.name});
|
|
|
+ authoritiesList.push({'id':authorityAll.id,'name':authorityAll.name,'permission':authorityAll.permission});
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|