|
@@ -53,6 +53,19 @@ function batchRemove(idList){
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+function hasPermission(method,path){
|
|
|
+ var formData = new FormData();
|
|
|
+
|
|
|
+ formData.append("method", method);
|
|
|
+ formData.append("path", path);
|
|
|
+
|
|
|
+ return request.post(constant.serverUrl + "/sys/permission/hasPermission",formData,{
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json"
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
export default {
|
|
|
- pageList,create,edit,add,update,remove,batchRemove,selectAll,batchImport
|
|
|
+ pageList,create,edit,add,update,remove,batchRemove,selectAll,batchImport,hasPermission
|
|
|
}
|