From 20b237a429542bce0eb6e758bcc795796cf61261 Mon Sep 17 00:00:00 2001 From: linwenling <3256558519@qq.com> Date: 星期二, 26 九月 2023 20:35:36 +0800 Subject: [PATCH] 备忘本 --- ruoyi-ui/src/views/secret/index.vue | 65 ++++++++++++++++++++++++++------ 1 files changed, 52 insertions(+), 13 deletions(-) diff --git a/ruoyi-ui/src/views/secret/index.vue b/ruoyi-ui/src/views/secret/index.vue index ca1fdb2..a729b6f 100644 --- a/ruoyi-ui/src/views/secret/index.vue +++ b/ruoyi-ui/src/views/secret/index.vue @@ -1,11 +1,25 @@ <template> <div class="app-container" style="opacity: 1;"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> + <el-form-item label="" prop="phone wx qq timeLimit type happenTime"> + <el-input + v-model="queryParams.searchText" + placeholder="鍦ㄢ�滆储浜р�濅腑鎼滅储" + clearable + style="width: 240px" + @keyup.enter.native="handleQuer1(queryParams)"> + <i slot="prefix" class="el-input__icon el-icon-search"></i> + </el-input> + </el-form-item> + </el-form-item> <el-form-item label="鏃堕棿" prop="happenTime"> <el-date-picker v-model="dateRange" - style="width: 240px;" + style="width: 200px; + height: 35px; + border-radius: 16px 16px 16px 16px; + opacity: 0.5;" value-format="yyyy-MM-dd" type="daterange" range-separator="-" @@ -13,12 +27,16 @@ end-placeholder="缁撴潫鏃ユ湡" ></el-date-picker> </el-form-item> + <el-form-item label="绫诲埆" prop="type"> <el-input v-model="queryParams.type" placeholder="璇疯緭鍏ョ被鍒�" clearable - style="width: 240px" + style="width: 200px; + height: 35px; + border-radius: 16px 16px 16px 16px; + opacity: 0.5;" @keyup.enter.native="handleQuery" /> </el-form-item> @@ -27,6 +45,18 @@ <el-input v-model="queryParams.accNo" placeholder="璇疯緭鍏ヨ处鍙�" + clearable + style="width: 200px; + height: 35px; + border-radius: 16px 16px 16px 16px; + opacity: 0.5;" + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="鏈熼檺" prop="timeLimit"> + <el-input + v-model="queryParams.timeLimit" + placeholder="璇疯緭鍏ユ湡闄�" clearable style="width: 240px" @keyup.enter.native="handleQuery" @@ -100,13 +130,13 @@ <el-table v-loading="loading" :data="secretList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" @row-click="handleCheck" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;"> <el-table-column type="selection" :reserve-selection="true" width="55" align="center" /> - <el-table-column label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/> - <el-table-column label="鍙戠敓鏃堕棿" prop="happenTime" sortable width="100" align="center"> + <el-table-column label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="80"/> + <el-table-column label="鍙戠敓鏃堕棿" prop="happenTime" sortable width="150" align="center"> <template slot-scope="scope">{{scope.row.happenTime? scope.row.happenTime: '鈥斺�斺�斺��'}}</template> </el-table-column> <el-table-column label="绫诲埆" prop="type" sortable width="100" /> <el-table-column label="璐﹀彿" prop="accNo" sortable width="100" /> - <el-table-column label="鏈夋晥鏈�" prop="validityDate" sortable width="100" align="center"> + <el-table-column label="鏈夋晥鏈�" prop="validityDate" sortable width="150" align="center"> <template slot-scope="scope">{{scope.row.validityDate? scope.row.validityDate: '鈥斺�斺�斺��'}}</template> </el-table-column> <el-table-column label="瀵嗙爜" prop="password" sortable width="100" /> @@ -239,7 +269,7 @@ <el-input v-model="formDat.remark" placeholder="璇疯緭鍏ュ娉�" clearable :style="{width: '100%'}" ></el-input> </el-form-item> - <h4 class="form-header">鐩稿叧鍥剧墖 </h4> + <h4 class="form-header">鐩稿叧鍥剧墖</h4> <el-upload action="#" list-type="picture-card" @@ -247,7 +277,7 @@ :http-request="requestUpload" :file-list="fileList" > - <i slot="default" class="el-icon-plus"></i> + <i slot="default" class="el-icon-plus"></i> <div slot="file" slot-scope="{file}"> <img class="el-upload-list__item-thumbnail" @@ -288,7 +318,8 @@ :http-request="requestUpload" :show-file-list="true" > - <el-button type="primary">涓婁紶</el-button> + <el-button type="primary">鐐瑰嚮涓婁紶</el-button> + <div v-if="uploading" class="upload-status">姝e湪涓婁紶...</div> <template #tip> <div class="el-upload__tip"> </div> @@ -363,6 +394,7 @@ ], dsb:true, btn:false, + uploading: false, formDat: { type: undefined, happenTime: undefined, @@ -387,7 +419,7 @@ type:undefined, accNo:undefined, happenTime:undefined, - useFor:undefined, + timeLimit:undefined, }, // 琛ㄥ崟鍙傛暟 @@ -582,6 +614,7 @@ this.queryParams.pageNum = 1; this.getList(); }, + /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { this.dateRange = []; @@ -651,8 +684,13 @@ Object.keys(this.formDat).forEach(key => { this.formDat[key] = ''; }); - this.handleRemove(this.fileList[0]); - this.handleRemoveFile(this.fileListOther[0]); + for(let i = 0; i <= this.fileList.length; i++) + { + this.handleRemove(this.fileList[0]); + } + for(let i = 0; i < this.fileListOther.length; i++){ + this.handleRemoveFile(this.fileListOther[0]); + } }, requestUpload(params) { @@ -660,10 +698,11 @@ var formData = new FormData(); formData.append('uploadFile', file); let _this = this - + this.uploading = true; uploadPic(formData).then(response => { let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) - + this.uploading = false; + this.$modal.msgSuccess("涓婁紶鎴愬姛"); if(_this.fot.includes(pth) === true) { _this.fileList.push({name:response.data.fileName, "url":response.data.url}) -- Gitblit v1.9.1