From 65ef66fb1ea61a450cb75e206a3a4784794868e6 Mon Sep 17 00:00:00 2001 From: Tcsm <1377977403@qq.com> Date: 星期二, 30 五月 2023 22:45:06 +0800 Subject: [PATCH] 1.将通讯录的”成员姓名“改成”家人姓名“ 2.修改成长经历阅历几处新增的bug --- ruoyi-ui/src/views/contacts/index.vue | 65 ++++++++++++++++++-------------- 1 files changed, 36 insertions(+), 29 deletions(-) diff --git a/ruoyi-ui/src/views/contacts/index.vue b/ruoyi-ui/src/views/contacts/index.vue index d60564e..d15c23f 100644 --- a/ruoyi-ui/src/views/contacts/index.vue +++ b/ruoyi-ui/src/views/contacts/index.vue @@ -21,7 +21,7 @@ <el-form-item label="鎴愬憳濮撳悕" prop="myName" style="padding-left:180px"> <el-input v-model="queryParams.myName" - placeholder="璇疯緭鍏ユ垚鍛樺鍚�" + placeholder="璇疯緭鍏ュ浜哄鍚�" clearable style="width: 240px" @keyup.enter.native="handleQuery"> @@ -70,14 +70,14 @@ </el-form-item> </el-form> <div> - <div style="width: 72px; - height: 24px; - font-size: 18px; - font-family: Microsoft YaHei-Regular, Microsoft YaHei; - font-weight: 400; - color: #000000; - line-height: 21px; - ">閫氳褰�</div> +<!-- <div style="width: 72px;--> +<!-- 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"> @@ -117,7 +117,7 @@ plain icon="el-icon-download" size="mini" - @click="handleExport" + @click="handleExportTemplate" v-hasPermi="['family:note:export']" >瀵煎叆妯℃澘涓嬭浇</el-button> </el-col> @@ -140,11 +140,11 @@ </el-row> </div> - <el-table v-loading="loading" :data="contactList" @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" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="80"/> + <el-table v-loading="loading" :data="contactList" :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" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="80"/> - <el-table-column label="鎴愬憳濮撳悕" prop="myName" sortable width="160" > + <el-table-column label="瀹朵汉濮撳悕" prop="myName" sortable width="160" > <template slot-scope="scope"> <div> <a href="javascript:;" @click="handleCheck(scope.row)">{{scope.row.myName}}</a> @@ -178,13 +178,11 @@ </template> </el-table-column> - <el-table-column label="澶囨敞锛堟槸鍚﹀瓨鍦ㄩ噾閽卞叧绯伙級" prop="remark" sortable width="220" > - - + <el-table-column label="澶囨敞锛堟槸鍚﹀瓨鍦ㄩ噾閽卞叧绯伙級" prop="remark" sortable width="120" align="center"> <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '鈥斺�斺�斺��'}}</template> </el-table-column> - <el-table-column label="鐢靛瓙鍚嶇墖" prop="url" width="160" > + <el-table-column label="鐢靛瓙鍚嶇墖" prop="url" width="160" align="center"> <template slot-scope="scope" > <img class="el-upload-list__item-thumbnail" @@ -222,19 +220,12 @@ @click="handleDelete(scope.row)" v-hasPermi="['system:role:remove']" >鍒犻櫎</el-button> - <el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="handleCheck(scope.row)"> 鏌ョ湅璇︽儏</el-button> - - - - - - </template> </el-table-column> </el-table> @@ -252,7 +243,7 @@ <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body> <el-form ref="elForm" :model="formDat" :rules="rules" size="medium" label-width="100px"> - <el-form-item label="鎴愬憳濮撳悕" prop="myName"> + <el-form-item label="瀹朵汉濮撳悕" prop="myName"> <el-input v-model="formDat.myName" placeholder="璇疯緭鍏ユ垚鍛樺鍚�" clearable :style="{width: '100%'}" > </el-input> </el-form-item> @@ -480,7 +471,7 @@ // }], myName: [{ required: true, - message: '璇疯緭鍏ユ垚鍛樺鍚�', + message: '璇疯緭鍏ュ浜哄鍚�', trigger: 'blur' }], nickName: [{ @@ -545,7 +536,10 @@ this.open = false; this.reset(); }, - + getRowId(row) + { + return row.id + }, //闅旇鍙樿壊 tableRowClassName({ row, rowIndex }) { if (rowIndex % 2 == 0) { @@ -721,7 +715,7 @@ /** 鍒犻櫎鎸夐挳鎿嶄綔 */ handleDelete(row) { const Ids = row.id || this.ids; - this.$modal.confirm('鏄惁纭鍒犻櫎缂栧彿涓�"' + Ids + '"鐨勬暟鎹」锛�').then(function() { + this.$modal.confirm('鏄惁纭鍒犻櫎鏁版嵁椤癸紵').then(function() { return delContact(Ids); }).then(() => { this.getList(); @@ -730,9 +724,22 @@ }, /** 瀵煎嚭鎸夐挳鎿嶄綔 */ handleExport() { + const Ids = this.ids; + + if(Ids.length==0) + { this.download('zfContact/export', { ...this.queryParams }, `zfContact_${new Date().getTime()}.xlsx`) + }else{ + this.download('zfContact/export1/'+Ids, { + }, `zfContact_${new Date().getTime()}.xlsx`) + } + }, + handleExportTemplate(){ + this.download('zfContact/model', { + ...this.queryParams + }, `zfContact_${new Date().getTime()}.xlsx`) }, /** 瀵煎叆鎿嶄綔*/ handleEnport(params){ -- Gitblit v1.9.1