|
@@ -69,7 +69,7 @@ import _ from "lodash";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- treeForm:{},
|
|
|
+ treeForm: {},
|
|
|
treeOption: {
|
|
|
addBtn: false,
|
|
|
menu: false,
|
|
@@ -113,6 +113,12 @@ export default {
|
|
|
res.data.data.records;
|
|
|
this.treeData = res.data.data.records;
|
|
|
});
|
|
|
+ if (localStorage.getItem("roleName") == "贸易") {
|
|
|
+ this.findObject(this.tableOption.column, "taxRate").hide = true;
|
|
|
+ this.findObject(this.tableOption.column, "taxRate").showColumn = false;
|
|
|
+ this.findObject(this.tableOption.column, "price").hide = true;
|
|
|
+ this.findObject(this.tableOption.column, "price").showColumn = false;
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
init(status, partreData) {
|
|
@@ -181,16 +187,6 @@ export default {
|
|
|
this.partreData = null;
|
|
|
this.$refs.crud.toggleSelection();
|
|
|
}
|
|
|
- },
|
|
|
- watch: {
|
|
|
- tableOption: function() {
|
|
|
- if (localStorage.getItem("roleName") == "贸易") {
|
|
|
- this.findObject(this.tableOption.column, "taxRate").hide = true;
|
|
|
- this.findObject(this.tableOption.column, "taxRate").showColumn = false;
|
|
|
- this.findObject(this.tableOption.column, "price").hide = true;
|
|
|
- this.findObject(this.tableOption.column, "price").showColumn = false;
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
};
|
|
|
</script>
|