优化用户分配客户权限的接口
This commit is contained in:
@@ -335,6 +335,8 @@ public class SupplierController extends BaseController {
|
|||||||
ubLongArray[i] = Long.parseLong(ubArr[i]);
|
ubLongArray[i] = Long.parseLong(ubArr[i]);
|
||||||
}
|
}
|
||||||
obj.put("data", ubLongArray);
|
obj.put("data", ubLongArray);
|
||||||
|
} else {
|
||||||
|
obj.put("data", null);
|
||||||
}
|
}
|
||||||
obj.put("code", 200);
|
obj.put("code", 200);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
loadSelected(id) {
|
loadSelected(id) {
|
||||||
getAction(this.url.selectedList + '?UBType=UserCustomer&UBKeyId='+id).then((res) => {
|
getAction(this.url.selectedList + '?UBType=UserCustomer&UBKeyId='+id).then((res) => {
|
||||||
if (res.code===200) {
|
if (res.code===200) {
|
||||||
this.selectedRowKeys = res.data
|
this.selectedRowKeys = res.data? res.data:[]
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.data)
|
this.$message.warning(res.data)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user