From ff383d2cd5272ff46171ce1ef70ec62f947459c4 Mon Sep 17 00:00:00 2001 From: Tcsm <1377977403@qq.com> Date: 星期日, 06 八月 2023 01:53:52 +0800 Subject: [PATCH] 完善成长经历阅历的个人基本信息模块,点击完成之后不会再刷新整个网站 --- ruoyi-ui/src/views/self/memo.vue | 51 +++++++++++++++++++++++++++++++-------------------- 1 files changed, 31 insertions(+), 20 deletions(-) diff --git a/ruoyi-ui/src/views/self/memo.vue b/ruoyi-ui/src/views/self/memo.vue index fcb4431..1d8ad84 100644 --- a/ruoyi-ui/src/views/self/memo.vue +++ b/ruoyi-ui/src/views/self/memo.vue @@ -1,23 +1,24 @@ <template> <div class="app-container"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> - <el-form-item label="" prop="phone wx qq twitter isAlways remark" > - <el-input - v-model:phone="queryParams.phone" - v-model:wx="queryParams.wx" - v-model:qq="queryParams.qq" - v-model:twitter="queryParams.twitter" - v-model:isAlways="queryParams.isAlways" - v-model:remark="queryParams.remark" - placeholder="鍦ㄢ�滀釜浜鸿浜嬫湰鈥濅腑鎼滅储" - clearable - style="width: 240px" - @keyup.enter.native="handleQuery"> - <i slot="prefix" class="el-input__icon el-icon-search"></i> - </el-input> +<!-- --> +<!-- <el-input--> +<!-- v-model:phone="queryParams.phone"--> +<!-- placeholder=""--> +<!-- clearable--> +<!-- style="width: 240px"--> +<!-- @keyup.enter.native="handleQuery">--> +<!-- <i slot="prefix" class="el-input__icon el-icon-search"></i>--> +<!-- </el-input>--> +<!-- --> + <el-form-item label="" prop="address title remark people happenTime" > + <el-input v-model="keyword" placeholder="鍦ㄢ�滀釜浜鸿浜嬫湰鈥濅腑鎼滅储" clearable + style="width: 240px" + @keyup.enter.native="handleQuery"> + <i slot="prefix" class="el-input__icon el-icon-search"></i></el-input> </el-form-item> - <el-form-item label="鏃堕棿"> + <el-form-item label="鏃堕棿" prop="happenTime"> <el-date-picker v-model="dateRange" style="width: 197px; @@ -31,6 +32,7 @@ range-separator="-" start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" + @keyup.enter.native="handleQuery" ></el-date-picker> </el-form-item> <el-form-item label="浜虹墿" prop="people"> @@ -164,15 +166,16 @@ alt="" style="width: 35px; height: 35px;" fit="cover" - v-if="scope.row.url !== ','" + v-if="!(scope.row.url === '' || scope.row.url === ',' || scope.row.url === null)" > <img + v-else class="el-upload-list__item-thumbnail" src="../../assets/images/deviceA.png" alt="" style="width: 35px; height: 35px;" fit="cover" - v-if="scope.row.url ===',' " + ></div> </template> </el-table-column> @@ -363,7 +366,7 @@ dsb:true, btn:false, fit:['fill'], - + keyword:'', formDat: { //涓汉璁颁簨鏈鎯� id:undefined, @@ -386,7 +389,7 @@ people:undefined, address:undefined, title:undefined, - + remark:undefined }, // searchVal:"", @@ -435,6 +438,7 @@ // this.formDat[i] = this.contactList[i]; // } }, + methods: { // 鍙栨秷鎸夐挳 cancelData() { @@ -453,6 +457,8 @@ /** 鏌ヨ璁板綍鍒楄〃 */ getList() { this.loading = true; + this.queryParams.happenStartTime = this.dateRange.length > 0 && this.dateRange[0] + this.queryParams.happenEndTime = this.dateRange.length > 0 && this.dateRange[1] // console.log(this.queryParams) // listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => { listNote(this.queryParams).then(response => { @@ -477,7 +483,11 @@ }) }, handleRemove(file) { - alert(323) + for(let i = 0; i < this.fileList.length; i++) + { + if(this.fileList[i].url==file.url) + this.$delete(this.fileList,i); + } }, // 鍙栨秷鎸夐挳 cancel() { @@ -596,6 +606,7 @@ Object.keys(this.formDat).forEach(key => { this.formDat[key] = ''; }); + this.handleRemove(this.fileList[0]); }, requestUpload(params) { -- Gitblit v1.9.1