| | |
| | | url: { |
| | | list: "/eam/faultDescription/list", |
| | | }, |
| | | faultId: '', |
| | | faultId: '-1', |
| | | faultDetails: '', |
| | | photo: '' |
| | | } |
| | |
| | | computed: { |
| | | }, |
| | | methods: { |
| | | loadData(arg) { |
| | | loadData() { }, |
| | | loadData1(arg) { |
| | | if (!this.url.list) { |
| | | this.$message.error('请设置url.list属性!') |
| | | return |
| | |
| | | this.loading = true |
| | | getAction(this.url.list, params) |
| | | .then(res => { |
| | | if (res.success) { |
| | | if (res.success && res.result !== null) { |
| | | //update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------ |
| | | this.dataSource = res.result.records |
| | | if (this.dataSource != null && this.dataSource != "") { |
| | |
| | | faultId() { |
| | | this.queryParam = {}; |
| | | this.queryParam.faultId = this.faultId; |
| | | this.loadData(1); |
| | | this.loadData1(1); |
| | | }, |
| | | } |
| | | } |