|
@@ -165,11 +165,7 @@ export default {
|
|
|
collapseTags: Boolean,
|
|
|
gysType: String,
|
|
|
treeType: String,
|
|
|
- belongtocompany: Number,
|
|
|
- adminProfiles:{
|
|
|
- type:Boolean,
|
|
|
- default:false
|
|
|
- }
|
|
|
+ belongtocompany: Number
|
|
|
},
|
|
|
model: {
|
|
|
prop: "value",
|
|
@@ -181,7 +177,7 @@ export default {
|
|
|
this.title = getCustomerName(this.corpType);
|
|
|
allCropList({
|
|
|
corpType: getCustomerCode(this.corpType),
|
|
|
- adminProfiles: userObj.role_name != "admin"&&this.adminProfiles ? userObj.user_id : null,
|
|
|
+ adminProfiles: userObj.role_name != "admin" ? userObj.user_id : null,
|
|
|
corpsTypeName: this.treeType == "CK" ? "货代和物流" : null,
|
|
|
belongtocompany: this.belongtocompany
|
|
|
}).then(res => {
|
|
@@ -256,7 +252,7 @@ export default {
|
|
|
current: page.currentPage,
|
|
|
corpsTypeId: this.treeDeptId,
|
|
|
corpType: getCustomerCode(this.corpType),
|
|
|
- adminProfiles: userObj.role_name != "admin"&&this.adminProfiles ? userObj.user_id : null,
|
|
|
+ adminProfiles: userObj.role_name != "admin" ? userObj.user_id : null,
|
|
|
corpsTypeName: this.treeType == "CK" ? "货代和物流" : null,
|
|
|
belongtocompany: this.belongtocompany
|
|
|
});
|
|
@@ -330,7 +326,7 @@ export default {
|
|
|
let userObj = JSON.parse(localStorage.getItem("saber-userInfo")).content;
|
|
|
allCropList({
|
|
|
corpType: getCustomerCode(this.corpType),
|
|
|
- adminProfiles: !userObj.role_name.split(',').some(item => item == 'admin' || item == 'administrator')&&this.adminProfiles ? userObj.user_id : null,
|
|
|
+ adminProfiles: !userObj.role_name.split(',').some(item => item == 'admin' || item == 'administrator') ? userObj.user_id : null,
|
|
|
belongtocompany: belongToCompany,
|
|
|
}).then(res => {
|
|
|
this.corpList = res.data.data;
|