diff --git a/src/views/basic-dictionary/MedicalConclusion.vue b/src/views/basic-dictionary/MedicalConclusion.vue index dddd164..aaf90eb 100644 --- a/src/views/basic-dictionary/MedicalConclusion.vue +++ b/src/views/basic-dictionary/MedicalConclusion.vue @@ -4,17 +4,11 @@ - + +
{{ item.displayName }}
+
- 类别选择 - - + 类别选择 + +
- + @@ -69,26 +44,15 @@ - + @@ -98,12 +62,7 @@
新增 - 编辑 + 编辑
删除
@@ -113,52 +72,32 @@ 置底
- 排序 + 排序
- 取消 + 取消
- + - + - + 类别 - + @@ -172,11 +111,7 @@ - + @@ -186,11 +121,7 @@ - + @@ -263,7 +194,7 @@ export default { createFilter(queryString) { return (tableData) => { return ( - tableData.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0 + tableData.displayName.toLowerCase().indexOf(queryString.toLowerCase()) != -1 ); }; }, @@ -271,7 +202,7 @@ export default { this.page.Filter = item.displayName; this.item = item; this.formid = item.id; - console.log(item); + //console.log(item); // quersmedicalid(item.id).then((res) => { // console.log(res); // this.form = res.data; @@ -285,17 +216,7 @@ export default { // 调用 callback 返回建议列表的数据 cb(tableDatas); }, - // isinput(v) { - // this.page.Filter = v; - // console.log(this.page.Filter); - // if (this.page.Filter == "") { - // this.getlist(); - // } else { - // physicallist(this.page).then((res) => { - // this.tableData = res.data.items; - // }); - // } - // }, + isselctvalue(v) { this.pages.TypeId = v; console.log(v); @@ -326,7 +247,7 @@ export default { this.form = {}; }); }) - .catch(() => {}); + .catch(() => { }); } }, //取消排序 @@ -422,7 +343,8 @@ export default { } }, //点击列表通过id查询 - rowick(row) { + rowclick(row) { + console.log("dianji") quersmedicalid(row.id).then((res) => { console.log(res); this.form = res.data; @@ -466,12 +388,33 @@ export default { }); }, getlist() { + // conclusionacquisition(this.pages).then((res) => { + // console.log(res); + // this.initTableData = [...res.data.items]; + // this.tableData = res.data.items; + // }); + this.getlistM(); + }, + getlistM(rowsid) { conclusionacquisition(this.pages).then((res) => { console.log(res); this.initTableData = [...res.data.items]; this.tableData = res.data.items; + + if (rowsid != null && rowsid != "") { + var row = this.tableData.filter(item => item.id == rowsid); + this.$refs.tableData.setCurrentRow(row[0]); + quersmedicalid(rowsid).then((res) => { + this.form = res.data; + }); + } }); }, + selsearch(id, typeid) { + this.Selectvalue = typeid; + this.pages.TypeId = typeid; + this.getlistM(id); + } }, }; @@ -479,6 +422,7 @@ export default { ::v-deep .el-dialog__footer { margin-top: 30px; } + .box { display: flex; }