From dc3d15dfe0c4a4a85bc5b4df7959b84a02beb064 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 11 十二月 2023 10:48:04 +0800 Subject: [PATCH] 随访题库完成 --- src/smartor/dataobject/dw_patarchive_list.vue | 229 ++++++++++++++++++++++++++++++--------------------------- 1 files changed, 120 insertions(+), 109 deletions(-) diff --git a/src/smartor/dataobject/dw_patarchive_list.vue b/src/smartor/dataobject/dw_patarchive_list.vue index 255b3b3..1317680 100644 --- a/src/smartor/dataobject/dw_patarchive_list.vue +++ b/src/smartor/dataobject/dw_patarchive_list.vue @@ -1,32 +1,38 @@ <template> - <el-table v-loading="loading" :data="patarchiveList" @row-click="rowChanged"> - <!--el-table-column type="selection" width="55" align="center" /--> - <el-table-column label=" 鑷ID " align="center" prop="patid"/> - <el-table-column label=" 濮撳悕 " align="center" prop="name" /> - <el-table-column label=" 鎬у埆 " align="center" prop="sex"> - <template slot-scope="scope"> - <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.sex" /> - </template> - </el-table-column> - <el-table-column label=" 璇佷欢鍙风爜 " align="center" prop="iccardno" /> - <el-table-column label=" 鐢熸棩 " align="center" prop="birthdate" width="180"> - <template slot-scope="scope"> - <span>{{ parseTime(scope.row.birthdate, '{y}-{m}-{d}') }}</span> - </template> - </el-table-column> - <el-table-column label=" 骞撮緞 " align="center" prop="age" /> - <el-table-column label=" 鏉ユ簮 " align="center" prop="source"> - <template slot-scope="scope"> - <dict-tag :options="dict.type.sys_patientfrom" :value="scope.row.source" /> - </template> - </el-table-column> - <el-table-column label=" 鎵嬫満鍙风爜 " align="center" prop="telcode" /> - <el-table-column label=" 鏈烘瀯ID " align="center" prop="orgid"> - <template slot-scope="scope"> - <dict-tag :options="dict.type.sys_patientfrom" :value="scope.row.orgid" /> - </template> - </el-table-column> - <!--el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> + <el-table v-loading="loading" :data="patarchiveList" @row-click="rowChanged"> + <!--el-table-column type="selection" width="55" align="center" /--> + <el-table-column label=" 鑷ID " align="center" prop="patid" /> + <el-table-column label=" 濮撳悕 " align="center" prop="name" /> + <el-table-column label=" 鎬у埆 " align="center" prop="sex"> + <template slot-scope="scope"> + <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.sex" /> + </template> + </el-table-column> + <el-table-column label=" 璇佷欢鍙风爜 " align="center" prop="idno" /> + <el-table-column label=" 鐢熸棩 " align="center" prop="birthdate" width="180"> + <template slot-scope="scope"> + <span>{{ parseTime(scope.row.birthdate, "{y}-{m}-{d}") }}</span> + </template> + </el-table-column> + <el-table-column label=" 骞撮緞 " align="center" prop="age" /> + <el-table-column label=" 鏉ユ簮 " align="center" prop="source"> + <template slot-scope="scope"> + <dict-tag + :options="dict.type.sys_patientfrom" + :value="scope.row.source" + /> + </template> + </el-table-column> + <el-table-column label=" 鎵嬫満鍙风爜 " align="center" prop="telcode" /> + <el-table-column label=" 鏈烘瀯ID " align="center" prop="orgid"> + <template slot-scope="scope"> + <dict-tag + :options="dict.type.sys_patientfrom" + :value="scope.row.orgid" + /> + </template> + </el-table-column> + <!--el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> <template slot-scope="scope"> <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['smartor:patarchive:edit']">淇敼</el-button> @@ -34,89 +40,94 @@ v-hasPermi="['smartor:patarchive:remove']">鍒犻櫎</el-button> </template> </el-table-column--> - </el-table> + </el-table> </template> <script> -import { listPatarchive, getPatarchive, delPatarchive, addPatarchive, updatePatarchive } from "@/api/smartor/patarchive"; +import { + listPatarchive, + getPatarchive, + delPatarchive, + addPatarchive, + updatePatarchive, +} from "@/api/smartor/patarchive"; export default { - name: "PatarchiveList", - dicts: ['sys_user_sex', 'sys_patientfrom'], - data() { - return { - parent:null, - // 閬僵灞� - loading: true, - // 閫変腑鏁扮粍 - ids: [], - // 闈炲崟涓鐢� - single: true, - // 闈炲涓鐢� - multiple: true, - // 鏄剧ず鎼滅储鏉′欢 - showSearch: true, - // 鎬绘潯鏁� - total: 0, - // 鎮h�呮。妗堣〃鏍兼暟鎹� - patarchiveList: [], - // 寮瑰嚭灞傛爣棰� - title: "", - // 鏄惁鏄剧ず寮瑰嚭灞� - open: false, - // 鏌ヨ鍙傛暟 - queryParams: { - pageNum: 1, - pageSize: 10, - name: null, - iccardno: null, - source: null, - telcode: null, - orgid: null, - isupload: null, - uploadTime: null - }, - // 琛ㄥ崟鍙傛暟 - form: {}, - // 琛ㄥ崟鏍¢獙 - rules: { - delFlag: [ - { required: true, message: " 鍒犻櫎鏍囪 涓嶈兘涓虹┖", trigger: "blur" } - ], - isupload: [ - { required: true, message: " 涓婁紶鏍囪 涓嶈兘涓虹┖", trigger: "blur" } - ], - } - }; + name: "PatarchiveList", + dicts: ["sys_user_sex", "sys_patientfrom"], + data() { + return { + parent: null, + // 閬僵灞� + loading: true, + // 閫変腑鏁扮粍 + ids: [], + // 闈炲崟涓鐢� + single: true, + // 闈炲涓鐢� + multiple: true, + // 鏄剧ず鎼滅储鏉′欢 + showSearch: true, + // 鎬绘潯鏁� + total: 0, + // 鎮h�呮。妗堣〃鏍兼暟鎹� + patarchiveList: [], + // 寮瑰嚭灞傛爣棰� + title: "", + // 鏄惁鏄剧ず寮瑰嚭灞� + open: false, + // 鏌ヨ鍙傛暟 + queryParams: { + pageNum: 1, + pageSize: 10, + name: null, + idno: null, + source: null, + telcode: null, + orgid: null, + isupload: null, + uploadTime: null, + }, + // 琛ㄥ崟鍙傛暟 + form: {}, + // 琛ㄥ崟鏍¢獙 + rules: { + delFlag: [ + { required: true, message: " 鍒犻櫎鏍囪 涓嶈兘涓虹┖", trigger: "blur" }, + ], + isupload: [ + { required: true, message: " 涓婁紶鏍囪 涓嶈兘涓虹┖", trigger: "blur" }, + ], + }, + }; + }, + created() { + this.getList(); + }, + methods: { + initial(parent) { + this.parent = parent; }, - created() { - this.getList(); + getList() { + this.loading = true; + listPatarchive(this.queryParams).then((response) => { + this.patarchiveList = response.rows; + this.total = response.total; + this.loading = false; + }); }, - methods: { - initial(parent) - { - this.parent = parent - }, - getList() { - this.loading = true; - listPatarchive(this.queryParams).then(response => { - this.patarchiveList = response.rows; - this.total = response.total; - this.loading = false; - }); - }, - // 澶氶�夋閫変腑鏁版嵁 - handleSelectionChange(selection) { - this.ids = selection.map(item => item.patid) - this.single = selection.length !== 1 - this.multiple = !selection.length - //alert("selections:"+this.ids[0]) - //this.$parent.selectionChanged(this.ids[0]) - }, - rowChanged(row){ - //alert(row.patid) - //console.log(row) - //this.$parent.selectionChanged(row.patid) - this.$parent.patid = row.patid - } - } -} -</script> \ No newline at end of file + // 澶氶�夋閫変腑鏁版嵁 + handleSelectionChange(selection) { + this.ids = selection.map((item) => item.patid); + this.single = selection.length !== 1; + this.multiple = !selection.length; + //alert("selections:"+this.ids[0]) + //this.$parent.selectionChanged(this.ids[0]) + }, + rowChanged(row) { + //alert(row.patid) + //console.log(row) + //this.$parent.selectionChanged(row.patid) + this.$parent.patid = row.patid; + }, + }, +}; +</script> -- Gitblit v1.9.3