UNPKG

ldap-clients

Version:
22 lines (20 loc) 630 B
import Vue from 'vue' let Util = { // 开启卡监听 load () { return Vue.resetpost('/rs/search', {data: {source: 'this.getRights().where(row.getType()==$function$ && row.getPath($name$).indexOf($资源操作$) != -1)', userid: Vue.$login.f.id}}, {resolveMsg: null, rejectMsg: null}).then((ret) => { if(ret.data){ let arry=[] ret.data.forEach((item) => { arry.push(item.name) }) Util.f={} Util.f.ldapReslist=arry } }).catch((res) => { this.msg = res.data this.show = true }) } } export default Util