| | |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> |
| | | <el-form-item label="类型" prop="type"> |
| | | |
| | | |
| | | <el-select v-model="queryParams.type" placeholder="请选择类别" clearable |
| | | style="width: 200px; |
| | | height: 35px; |
| | |
| | | _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); |