|
@@ -1926,19 +1926,25 @@ export default {
|
|
|
async getBtnList() {
|
|
|
console.log("aaaaaaa");
|
|
|
let res = await listBtn({ isEnablePaging: false, btnParentId: 0 });
|
|
|
- this.btnGroupOptions = res.rows.filter((item) => !item.whetherBind);
|
|
|
+ // this.btnGroupOption=res.rows
|
|
|
+ // this.btnGroupOptions = res.rows.filter((item) => !item.whetherBind);
|
|
|
+ this.btnGroupOptions = res.rows.filter((item) => {
|
|
|
+ let isMyBtn=this.formData.btnGroupList.some((val)=>item.btnKey==val)
|
|
|
+ return !item.whetherBind ||isMyBtn
|
|
|
+ });
|
|
|
+
|
|
|
},
|
|
|
},
|
|
|
created() {},
|
|
|
async mounted() {
|
|
|
this.getAllTable();
|
|
|
this.initDragTable();
|
|
|
- await this.getBtnList();
|
|
|
await this.getMenuList();
|
|
|
if (this.$route.query.tId) {
|
|
|
this.tId = this.$route.query.tId;
|
|
|
- this.initTableData(this.tId);
|
|
|
+ await this.initTableData(this.tId);
|
|
|
}
|
|
|
+ this.getBtnList();
|
|
|
},
|
|
|
};
|
|
|
</script>
|