From c1a26beb08607034d45f0a31b5c88314a5909359 Mon Sep 17 00:00:00 2001 From: Tcsm <1377977403@qq.com> Date: 星期二, 23 五月 2023 23:21:11 +0800 Subject: [PATCH] 将家庭模块中各页面的模块名字去掉了 --- ruoyi-ui/src/views/doctor/index.vue | 49 +++++++++++++++++++++++++++++++++++-------------- 1 files changed, 35 insertions(+), 14 deletions(-) diff --git a/ruoyi-ui/src/views/doctor/index.vue b/ruoyi-ui/src/views/doctor/index.vue index 42e32df..8072694 100644 --- a/ruoyi-ui/src/views/doctor/index.vue +++ b/ruoyi-ui/src/views/doctor/index.vue @@ -115,14 +115,14 @@ </el-form-item> </el-form> <div> - <div style="width: 100px; - height: 24px; - font-size: 18px; - font-family: Microsoft YaHei-Regular, Microsoft YaHei; - font-weight: 400; - color: #000000; - line-height: 21px; - ">瀹跺涵灏忓尰鐢�</div> +<!-- <div style="width: 100px;--> +<!-- height: 24px;--> +<!-- font-size: 18px;--> +<!-- font-family: Microsoft YaHei-Regular, Microsoft YaHei;--> +<!-- font-weight: 400;--> +<!-- color: #000000;--> +<!-- line-height: 21px;--> +<!-- ">瀹跺涵灏忓尰鐢�</div>--> <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> @@ -163,7 +163,7 @@ plain icon="el-icon-download" size="mini" - @click="handleExport" + @click="handleExportTemplate" v-hasPermi="['family:note:export']" >瀵煎叆妯℃澘涓嬭浇</el-button> </el-col> @@ -185,10 +185,12 @@ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> </el-row> </div> - <el-table v-loading="loading" :data="doctorList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;"> - <el-table-column type="selection" width="25" align="center" /> - <el-table-column label="搴忓彿" sortable type="index" align="center" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/> - <el-table-column label="绫诲瀷" prop="type" sortable width="120" align="center"> + + <el-table v-loading="loading" :data="doctorList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;"> + <el-table-column type="selection" :reserve-selection="true" width="25" align="center" /> + <el-table-column fixed label="搴忓彿" sortable type="index" align="center" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/> + <el-table-column label="绫诲瀷" prop="type" sortable width="80" align="center"> + <template slot-scope="scope">{{scope.row.type? scope.row.type: '鈥斺�斺�斺��'}}</template> </el-table-column> <el-table-column label="鐥囩姸" prop="symptom" sortable :show-overflow-tooltip="true" width="120" align="center" > @@ -579,6 +581,10 @@ this.open = false; this.reset(); }, + getRowId(row) + { + return row.id + }, // 鍙栨秷鎸夐挳锛堟暟鎹潈闄愶級 cancelDataScope() { this.openDataScope = false; @@ -719,9 +725,24 @@ }, /** 瀵煎嚭鎸夐挳鎿嶄綔 */ handleExport() { - this.download('zfDoctor/export', { + const Ids = this.ids; + + if(Ids.length==0) + { + this.download('/zfDoctor/export', { ...this.queryParams }, `zfDoctor_${new Date().getTime()}.xlsx`) + }else{ + this.download('/zfDoctor/export1/'+Ids, { + + }, `zfDoctor_${new Date().getTime()}.xlsx`) + } + }, + + handleExportTemplate(){ + this.download('/zfDoctor/model', { + + }, `zfDoctor_${new Date().getTime()}.xlsx`) }, /** 瀵煎叆鎿嶄綔*/ handleEnport(params){ -- Gitblit v1.9.1