| | |
| | | export default { |
| | | name: 'FlowPath', |
| | | props: { |
| | | checkStatus: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | crudLCStatus: { |
| | | type: String, |
| | | default: 'Editing' |
| | | }, |
| | | code: { |
| | | typeof: String, |
| | | required: true, |
| | |
| | | searchBtn: false, |
| | | emptyBtn: false, |
| | | columnBtn: false, |
| | | addBtn: !this.checkStatus || this.crudLCStatus == 'Editing', |
| | | defaultSort: { |
| | | prop: 'id,name,description,version', |
| | | order: 'descending' |
| | |
| | | type:'textarea' |
| | | }, |
| | | ] |
| | | }, |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | // 获取列表 |
| | | async getDataList() { |
| | | this.loading = false |
| | | console.log(this.search) |
| | | if(this.code){ |
| | | const { pageSize, currentPage } = this.page |
| | | let param = { size: pageSize, current: currentPage } |
| | | const response = await getFlowpathList({ ...param, ...{ templateId: this.code } }) |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | this.loading = false |
| | | const data = response.data.data |
| | | this.data = data.records |
| | | this.page.total = data.total |
| | | } else this.loading = false |
| | | } |
| | | |
| | | }, |
| | | // 新增 |
| | | async handleSave(row, done, loading) { |