From 24112d26079c0010f0baff217d9ddcd9dfb595b4 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期日, 05 十一月 2023 17:31:05 +0800 Subject: [PATCH] 11 --- src/views/project/donatebaseinfo/index.vue | 99 ++++++++++++++++++++++++++++--------------------- 1 files changed, 56 insertions(+), 43 deletions(-) diff --git a/src/views/project/donatebaseinfo/index.vue b/src/views/project/donatebaseinfo/index.vue index 3fe23f0..ea365c8 100644 --- a/src/views/project/donatebaseinfo/index.vue +++ b/src/views/project/donatebaseinfo/index.vue @@ -124,15 +124,15 @@ <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" width="200" fixed="right"> <template slot-scope="scope"> <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-hasPermi="['project:donatebaseinfo:edit']">淇敼</el-button> + v-hasPermi="['project:donatebaseinfo:edit']">璇︽儏</el-button> - <el-button v-if="scope.row.recordstate == 0" size="mini" type="text" icon="el-icon-delete" + <!-- <el-button v-if="scope.row.recordstate == 0" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['project:donatebaseinfo:remove']">鍒犻櫎</el-button> <el-button size="mini" type="text" icon="el-icon-edit" @click="handletermination(scope.row)" v-hasPermi="['project:donatebaseinfo:edit']">缁堟</el-button> <el-button size="mini" type="text" icon="el-icon-refrigerator" @click="handledownload(scope.row)">涓嬭浇</el-button> <el-button v-if="scope.row.recordstate == 0 || scope.row.recordstate == 3" size="mini" type="text" - icon="el-icon-thumb" @click="handleapproval(scope.row)">涓婃姤瀹℃牳</el-button> + icon="el-icon-thumb" @click="handleapproval(scope.row)">涓婃姤瀹℃牳</el-button> --> <!-- 鎾ら攢鐢宠 --> </template> </el-table-column> @@ -1179,53 +1179,66 @@ }, /** 鏂板鎸夐挳鎿嶄綔 */ handleAdd() { - this.reset(); - //璁剧疆鎶ュ憡浜哄拰閮ㄩ棬/缁� - this.form.reporterno = this.currentuser.userName; - this.form.reportername = this.currentuser.nickName; - this.form.deptid = this.currentuser.deptid; - - this.showSaveBtn = true; - //this.$refs.annex.getAnnexList(); - this.open = true; - this.$nextTick(function () { - this.$refs.annex.getAnnexList(); + this.$router.push({ + path: "/organ/donationdetails/", + query: { + organType: "add", + } }); + // this.reset(); + // //璁剧疆鎶ュ憡浜哄拰閮ㄩ棬/缁� + // this.form.reporterno = this.currentuser.userName; + // this.form.reportername = this.currentuser.nickName; + // this.form.deptid = this.currentuser.deptid; - this.title = "浜轰綋鍣ㄥ畼娼滃湪鎹愮尞鑰呯櫥璁拌〃"; + // this.showSaveBtn = true; + // //this.$refs.annex.getAnnexList(); + // this.open = true; + // this.$nextTick(function () { + // this.$refs.annex.getAnnexList(); + // }); + + // this.title = "浜轰綋鍣ㄥ畼娼滃湪鎹愮尞鑰呯櫥璁拌〃"; }, /** 淇敼鎸夐挳鎿嶄綔 */ handleUpdate(row) { - this.showSaveBtn = true; - const id = row.id || this.ids; - //this.$refs.annex.getAnnexList(); - - getDonatebaseinfo(id).then((response) => { - this.reset(); - - this.$nextTick(function () { - this.$refs.annex.getAnnexList(); - }); - this.form = response.data; - response.data.sex = parseInt(response.data.sex); - this.form.id = response.data.id; - this.form.diseasetype = this.form.diseasetype.split(","); - this.form.infectious = this.form.infectious.split(","); - this.form.selfwill = this.form.selfwill.split(","); - this.form.othercases = this.form.othercases.split(","); - this.form.infosources = this.form.infosources.split(","); - this.form.kinship = this.form.kinship.split(","); - this.form.patientstate = this.form.patientstate.split(","); - this.open = true; - this.title = "浜轰綋鍣ㄥ畼娼滃湪鎹愮尞鑰呯櫥璁拌〃"; - this.registerAddresss.sheng = response.data.registerprovincename; - this.residenceAddresss.sheng = response.data.residenceprovincename; - this.registerAddresss.shi = response.data.registercityname; - this.residenceAddresss.shi = response.data.residencecityname; - this.residenceAddresss.qu = response.data.residencetownname; - this.registerAddresss.qu = response.data.registertownname; + this.$router.push({ + path: "/organ/donationdetails/", + query: { + id: row.id, + organType: "edit", + } }); + // this.showSaveBtn = true; + // const id = row.id || this.ids; + // //this.$refs.annex.getAnnexList(); + + // getDonatebaseinfo(id).then((response) => { + // this.reset(); + + // this.$nextTick(function () { + // this.$refs.annex.getAnnexList(); + // }); + // this.form = response.data; + // response.data.sex = parseInt(response.data.sex); + // this.form.id = response.data.id; + // this.form.diseasetype = this.form.diseasetype.split(","); + // this.form.infectious = this.form.infectious.split(","); + // this.form.selfwill = this.form.selfwill.split(","); + // this.form.othercases = this.form.othercases.split(","); + // this.form.infosources = this.form.infosources.split(","); + // this.form.kinship = this.form.kinship.split(","); + // this.form.patientstate = this.form.patientstate.split(","); + // this.open = true; + // this.title = "浜轰綋鍣ㄥ畼娼滃湪鎹愮尞鑰呯櫥璁拌〃"; + // this.registerAddresss.sheng = response.data.registerprovincename; + // this.residenceAddresss.sheng = response.data.residenceprovincename; + // this.registerAddresss.shi = response.data.registercityname; + // this.residenceAddresss.shi = response.data.residencecityname; + // this.residenceAddresss.qu = response.data.residencetownname; + // this.registerAddresss.qu = response.data.registertownname; + // }); }, // 缁堟妗堜緥 handletermination(row) { -- Gitblit v1.9.3