| | |
| | | _this.typeOptions = [] |
| | | getCategory().then(response=>{ |
| | | console.log(response.data) |
| | | // alert(9801) |
| | | response.data.map(elem=>{ |
| | | _this.typeOptions.push({"label":elem.type, "value":elem.type}) |
| | | _this.typeOptions.push({"label":elem, "value":elem}) |
| | | }) |
| | | // response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ |
| | | // _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) |
| | |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | alert(23) |
| | | //alert(23) |
| | | const Ids = row.id || this.ids; |
| | | this.$modal.confirm('是否确认删除所选数据项?').then(function() { |
| | | return delProperty(Ids); |