|
@@ -163,7 +163,8 @@ export default {
|
|
|
multiple: Boolean,
|
|
|
collapseTags: Boolean,
|
|
|
gysType: String,
|
|
|
- treeType: String
|
|
|
+ treeType: String,
|
|
|
+ belongtocompany: Number
|
|
|
},
|
|
|
model: {
|
|
|
prop: "value",
|
|
@@ -176,7 +177,8 @@ export default {
|
|
|
allCropList({
|
|
|
corpType: getCustomerCode(this.corpType),
|
|
|
adminProfiles: userObj.role_name != "admin" ? userObj.user_id : null,
|
|
|
- corpsTypeName: this.treeType == "CK" ? "货代和物流" : null
|
|
|
+ corpsTypeName: this.treeType == "CK" ? "货代和物流" : null,
|
|
|
+ belongtocompany: this.belongtocompany
|
|
|
}).then(res => {
|
|
|
this.corpList = res.data.data;
|
|
|
});
|
|
@@ -236,7 +238,8 @@ export default {
|
|
|
corpsTypeId: this.treeDeptId,
|
|
|
corpType: getCustomerCode(this.corpType),
|
|
|
adminProfiles: userObj.role_name != "admin" ? userObj.user_id : null,
|
|
|
- corpsTypeName: this.treeType == "CK" ? "货代和物流" : null
|
|
|
+ corpsTypeName: this.treeType == "CK" ? "货代和物流" : null,
|
|
|
+ belongtocompany: this.belongtocompany
|
|
|
});
|
|
|
this.loading = true;
|
|
|
customerList(queryParams)
|
|
@@ -302,7 +305,18 @@ export default {
|
|
|
this.$message.success("重置成功");
|
|
|
this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 更新数据
|
|
|
+ updateData(belongToCompany) {
|
|
|
+ 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') ? userObj.user_id : null,
|
|
|
+ belongtocompany: belongToCompany,
|
|
|
+ }).then(res => {
|
|
|
+ this.corpList = res.data.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|