| | |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" size="mini" @click="handleManual">查询</el-button> |
| | | <el-button type="primary" size="mini" @click="handleAdd">新增</el-button> |
| | | <el-button type="primary" size="mini" @click="handleAdd">新增</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <!-- 标本单选表格(带多选框样式) --> |
| | | <el-table border v-loading="loading" :data="filteredSpecimenData" height="478" style="width: 100%" |
| | | <el-table border v-loading="loading" :data="filteredSpecimenData" height="478" style="width: 100%" |
| | | ref="specimenTable" :row-key="row => row.value" @select="handleSpecimenSelect"> |
| | | <el-table-column type="selection" width="40px" align="center" /> |
| | | <el-table-column label="序号" align="center" type="index" width="50px" /> |
| | | <el-table-column label="标本名称" align="center" prop="label" show-overflow-tooltip /> |
| | | </el-table> |
| | | <el-table-column label="标本名称" align="center" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.label ? scope.row.label : scope.row.dictLabel }} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-col> |
| | | |
| | | <!-- 第二列:中间选中项目列表 --> |
| | |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | let dictType = "sys_dict_specimen" |
| | | getDicts(dictType).then(response => { |
| | | this.originalSpecimenData= response.rows ||[] |
| | | this.filteredSpecimenData =[...this.originalSpecimenData]; |
| | | }); |
| | | getDicts(dictType).then(response => { |
| | | this.originalSpecimenData = response.data || [] |
| | | this.filteredSpecimenData = [...this.originalSpecimenData]; |
| | | }); |
| | | }); |
| | | } |
| | | } |