| | |
| | | search() { |
| | | this.listLoading = true |
| | | searchEquipment(this.listQuery).then(response => { |
| | | if (response.data!=null) { |
| | | this.list = response.data.records |
| | | this.total = response.data.total |
| | | }else{ |
| | | this.$message({ |
| | | message: '未搜索到数据', |
| | | type: 'error' |
| | | }) |
| | | } |
| | | |
| | | this.listLoading = false |
| | | }) |
| | | }, |
| | |
| | | this.resetTemp() |
| | | this.dialogVisible = true |
| | | this.dialogType = 'modify' |
| | | // this.temp.anchorname = scope.row.anchorname |
| | | // this.temp.companyid = scope.row.companyid |
| | | // this.temp.id = scope.row.id |
| | | // this.temp.needbaseid = scope.row.needbaseid |
| | | // this.temp.tagid = scope.row.tagid |
| | | // this.temp.type = scope.row.type |
| | | this.temp = deepClone(scope.row) |
| | | // this.$nextTick(() => { |
| | | // this.$refs['dataForm'].clearValidate() |
| | |
| | | if (this.loading) { |
| | | return |
| | | } |
| | | this.temp.companyid=this.temp.company |
| | | this.temp.companyid=this.temp.companyid |
| | | this.loading = true |
| | | this.$refs[this.temp].validate((valid) => { |
| | | if (valid) { |