| | |
| | | searchBtn: false, |
| | | emptyBtn: false, |
| | | columnBtn: false, |
| | | editBtn:!this.checkStatus || this.crudLCStatus == 'Editing', |
| | | delBtn:!this.checkStatus || this.crudLCStatus == 'Editing', |
| | | addBtn: !this.checkStatus || this.crudLCStatus == 'Editing', |
| | | defaultSort: { |
| | | prop: 'id,name,description,version', |
| | |
| | | created() { |
| | | this.getStart() |
| | | }, |
| | | watch: { |
| | | code: { |
| | | handler(newval, oldval) { |
| | | this.getDataList() |
| | | } |
| | | }, |
| | | checkStatus: { |
| | | handler(newval, oldval) { |
| | | this.option.delBtn=!this.checkStatus || this.crudLCStatus == 'Editing'; |
| | | this.option.editBtn=!this.checkStatus || this.crudLCStatus == 'Editing'; |
| | | this.option.addBtn=!this.checkStatus || this.crudLCStatus == 'Editing'; |
| | | } |
| | | }, |
| | | crudLCStatus: { |
| | | handler(newval, oldval) { |
| | | this.option.delBtn=!this.checkStatus || this.crudLCStatus == 'Editing'; |
| | | this.option.editBtn=!this.checkStatus || this.crudLCStatus == 'Editing'; |
| | | this.option.addBtn=!this.checkStatus || this.crudLCStatus == 'Editing'; |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | async getStart() { |
| | | const response = await getStartList() |
| | |
| | | } |
| | | }, |
| | | watch: { |
| | | |
| | | code: { |
| | | handler(newval, oldval) { |
| | | this.getDataList() |
| | | } |
| | | } |
| | | }, |
| | | data() { |
| | | const options = { |