From 034d8675792fee6af5af592df0b69acd3ad8a215 Mon Sep 17 00:00:00 2001 From: odc.xiaohui <xiaohui@Q1> Date: 星期二, 07 三月 2023 10:50:21 +0800 Subject: [PATCH] 调整群组交流样式 --- src/views/cause/Group.vue | 10 src/views/common/Publicity.vue | 335 ++++++++++++++++++------------ src/views/Home.vue | 3 src/api/User.js | 10 src/views/manager/User.vue | 263 ++++++++++++----------- 5 files changed, 361 insertions(+), 260 deletions(-) diff --git a/src/api/User.js b/src/api/User.js index b81e1ca..28df470 100644 --- a/src/api/User.js +++ b/src/api/User.js @@ -7,10 +7,18 @@ params }) } + export function addPublicityList(params) { return request({ url: '/user/add', method: 'post', - data:params + data: params + }) +} + +export function toManager(id) { + return request({ + url: '/user/toManager/' + id, + method: 'get' }) } diff --git a/src/views/Home.vue b/src/views/Home.vue index dcd2b0d..a0ea6fa 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -118,8 +118,9 @@ <!-- 鍙充晶鍐呭涓婚 --> <el-main style="background-color: #F5FAFF"> <router-view></router-view> +<!-- <div style="position: absolute;bottom: 0;right: 50%;color: #ccc">褰撳墠鐗堟湰 v2.1.3</div>--> </el-main> - <div style="position: absolute;bottom: 0;right: 50%;color: #ccc">褰撳墠鐗堟湰 v2.1.3</div> + </el-container> </el-container> </template> diff --git a/src/views/cause/Group.vue b/src/views/cause/Group.vue index 0445560..ff70b86 100644 --- a/src/views/cause/Group.vue +++ b/src/views/cause/Group.vue @@ -22,7 +22,7 @@ <el-button style="margin-left: 5px" type="primary" @click="search">鎼滅储</el-button> </div> <div class="group-right-left-seach-body-box"> - <ul v-infinite-scroll="load" style="overflow:auto;height: 569px" class="group-right-left-seach-body-box-ul"> + <ul v-infinite-scroll="load" style="overflow:auto;height: 558px" class="group-right-left-seach-body-box-ul"> <li v-for="messageOne in messageList" class="group-right-left-seach-body-box-li" > <div class="group-right-left-seach-body-box-imgmessage"> <img class="group-img" v-if="messageOne.pic != null && messageOne.pic != ''" :src="messageOne.pic" @@ -254,14 +254,22 @@ background-color: #fff; .group-left{ width: 300px; + .inputleft{ + margin-top: 10px; + margin-left: 5px; + } } .group-right{ margin-left: 10px; border-left: 1px solid #ccc; padding-left: 10px; + background-color: #fff; //flex-grow: 1; .group-right-name{ margin-bottom: 10px; + font-size: 16px; + font-weight: 900; + margin-top: 10px; } .group-right-box{ display: flex; diff --git a/src/views/common/Publicity.vue b/src/views/common/Publicity.vue index 812e706..1890932 100644 --- a/src/views/common/Publicity.vue +++ b/src/views/common/Publicity.vue @@ -21,7 +21,7 @@ <el-form-item> <el-upload name="multipartFile" class="upload-demo" action="/api/publicity/upload " :show-file-list="false" - :before-upload="beforeAvatarUpload" :on-success="respond" :limit="1"> + :before-upload="beforeAvatarUpload" :on-success="respond" :limit="1"> <el-button type="primary">瀵煎叆</el-button> </el-upload> </el-form-item> @@ -52,7 +52,7 @@ <template slot-scope="scope"> <el-button type="text" size="medium" @click="details(scope.row.id)">璇︽儏</el-button> <el-button type="text" size="medium" @click="punlish(scope.row.id, scope.row.status)" - :disabled="scope.row.status == 2"> + :disabled="scope.row.status == 2"> <span v-if="scope.row.status === 1" style="color:#ff0000">涓嬫灦</span> <span v-else>鍙戝竷</span> </el-button> @@ -63,24 +63,38 @@ </el-table> </template> <el-pagination @current-change="handleCurrentChange" :current-page="queryInfo.current" :page-size="queryInfo.size" - layout="prev, pager, next" :total="total"></el-pagination> + layout="prev, pager, next" :total="total"></el-pagination> </el-card> <!--娣诲姞鍏叡瀹d紶寮圭獥--> <el-dialog title="鍏叡瀹d紶娣诲姞" :visible.sync="addPublicityVisibel" width="50%" :before-close="addPublicityClose" - :append-to-body="true"> + :append-to-body="true"> <el-row :gutter="15"> <el-form ref="addPublicityForm" :model="addPublicityForm" :rules="rules" size="medium" label-width="100px"> <el-col :span="12"> <el-form-item label="鏍囬 " prop="publicityTitle"> <el-input v-model="addPublicityForm.publicityTitle" clearable placeholder="璇疯緭鍏ユ爣棰�" - :style="{ width: '100%' }"></el-input> + :style="{ width: '100%' }"></el-input> + </el-form-item> + </el-col> + <el-col> + <el-form-item label="姝f枃鍥剧墖"> + <el-upload + action="/api/minio/upload" + list-type="picture-card" + :with-credentials="true" + :on-preview="handlePictureCardPreview" + :on-success="uploadSuccess3" + :on-remove="handleRemove" + :file-list="addPublicityForm.img"> + <i slot="default" class="el-icon-plus"></i> + </el-upload> </el-form-item> </el-col> <el-col :span="24"> <el-form-item label="鍐呭 " prop="content"> <el-input v-model="addPublicityForm.text" type="textarea" placeholder="璇疯緭鍏ュ叕鍛婂唴瀹�" clearable - :autosize="{ minRows: 4, maxRows: 4 }" :style="{ width: '100%' }"></el-input> + :autosize="{ minRows: 4, maxRows: 4 }" :style="{ width: '100%' }"></el-input> </el-form-item> </el-col> </el-form> @@ -91,21 +105,42 @@ </span> </el-dialog> + <!-- 鍥剧墖鏀惧ぇ寮圭獥 --> + <el-dialog :visible.sync="dialogVisible"> + <img width="100%" :src="dialogImageUrl" alt=""> + </el-dialog> + <!--鍏叡瀹d紶璇︽儏寮圭獥--> <el-dialog title="鍏叡瀹d紶璇︽儏" :visible.sync="detailsVisible" width="50%" :append-to-body="true" - :before-close="detailsVisibleclose"> + :before-close="detailsVisibleclose"> <el-row :gutter="15"> - <el-form ref="addGroupForm" :model="addGroupForm" size="medium" label-width="100px"> - <el-col :span="12"> + <el-form ref="addGroupForm" :model="detailsRow" size="medium" label-width="100px"> + <el-col :span="12"> <el-form-item label="鏍囬" prop="effectiveEtime"> <el-input v-model="detailsRow.publicityTitle" disabled></el-input> </el-form-item> </el-col> <el-col :span="24"> + <el-form-item label="姝f枃鍥剧墖"> + <el-upload + action="/api/minio/upload" + list-type="picture-card" + :with-credentials="true" + :on-preview="handlePictureCardPreview" + :on-success="uploadSuccess3" + :on-remove="handleRemove" + :file-list="detailsRow.img" + disabled + class="freePic"> + <i slot="default" class="el-icon-plus"></i> + </el-upload> + </el-form-item> + </el-col> + <el-col :span="24"> <el-form-item label="鍐呭 " prop="text"> <el-input v-model="detailsRow.text" type="textarea" placeholder="璇疯緭鍏ュ叕鍛婂唴瀹�" disabled - :autosize="{ minRows: 4, maxRows: 4 }" :style="{ width: '100%' }"></el-input> + :autosize="{ minRows: 4, maxRows: 4 }" :style="{ width: '100%' }"></el-input> </el-form-item> </el-col> <!-- <el-col :span="12"> @@ -125,7 +160,7 @@ <el-col :span="12"> <el-form-item label="鍙戝竷鏃堕棿" prop="effectiveEtime"> <el-date-picker v-model="detailsRow.releaseTime" type="datetime" placeholder="閫夋嫨鏃ユ湡鏃堕棿" disabled - :style="{ width: '100%' }" value-format="yyyy-MM-dd HH:mm:ss"> + :style="{ width: '100%' }" value-format="yyyy-MM-dd HH:mm:ss"> </el-date-picker> </el-form-item> </el-col> @@ -188,8 +223,9 @@ name: "Publicity", data() { return { - - + fileList: [], + dialogImageUrl: '', + dialogVisible: false, //璇︾粏鍐呭寮规 detailsVisible: false, //璇︾粏鍐呭 @@ -197,7 +233,8 @@ //琛ㄥ崟鎻愪氦鍐呭 addPublicityForm: { publicityTitle: '', - text: '' + text: '', + img: [] }, //娣诲姞寮规 addPublicityVisibel: false, @@ -254,130 +291,161 @@ }, methods: - { - //鍒犻櫎 - remove(val) { - this.$http.delete('/api/publicity/' + val).then(res => { - this.$message({ - message: '鍒犻櫎鎴愬姛', - type: 'success' - }) + { + uploadSuccess3(res, file) { + if (res.code === 200) { + this.addPublicityForm.img.push({ + name: res.data, + url: '/minio/img/' + res.data, + uid: this.addPublicityForm.img.length + }) + } else { + this.$message.error(res.msg) + } + }, + // 姝f枃鍥剧墖涓婁紶,鍒犻櫎鎿嶄綔 + handleRemove(file, fileList) { + // file鏄偣鍑诲垹闄ょ殑鏂囦欢锛宖ileList鏃跺垹闄ゅ悗鍓╀笅鐨勬枃浠跺垪琛� + this.addPublicityForm.img = fileList + }, + handlePictureCardPreview(file) { + this.dialogImageUrl = file.url + this.dialogVisible = true + }, + //鍒犻櫎 + remove(val) { + this.$http.delete('/api/publicity/' + val).then(res => { + this.$message({ + message: '鍒犻櫎鎴愬姛', + type: 'success' + }) - this.search(); - }) - }, - //鍙戝竷/涓嬫灦 - punlish(val, val2) { - if (val2 == 0) { - this.$http.get('/api/publicity/release/' + val).then(res => { - this.$message({ - message: '鍙戝竷鎴愬姛', - type: 'success' + this.search(); }) + }, + //鍙戝竷/涓嬫灦 + punlish(val, val2) { + if (val2 == 0) { + this.$http.get('/api/publicity/release/' + val).then(res => { + this.$message({ + message: '鍙戝竷鎴愬姛', + type: 'success' + }) - this.search(); - } - ) - } - if (val2 == 1) { - this.$http.get('/api/publicity/offline/' + val).then(res => { - this.$message({ - message: '涓嬫灦鎴愬姛', - type: 'success' - }) - this.search(); - } - ); - } - }, + this.search(); + } + ) + } + if (val2 == 1) { + this.$http.get('/api/publicity/offline/' + val).then(res => { + this.$message({ + message: '涓嬫灦鎴愬姛', + type: 'success' + }) + this.search(); + } + ); + } + }, - //璇︽儏 - details(val) { - this.detailsVisible = true; - this.$http.get('/api/publicity/' + val).then(res => this.detailsRow = res.data.data); - }, - //娣诲姞 - add() { - this.$refs.addPublicityForm.validate(async (vaild) => { - if (!vaild) return this.$message.error('杈撳叆鏈夎') - let param = null; - param = this.addPublicityForm; - addPublicityList(param).then(res => { - this.$message({ - message: '鎿嶄綔鎴愬姛', - type: 'success' + //璇︽儏 + details(val) { + this.detailsVisible = true; + this.$http.get('/api/publicity/' + val).then(res => { + this.detailsRow = res.data.data + this.detailsRow.img = this.detailsRow['photoStr'].split(',').map(item => { + return { + name: item, + url: '/minio/img/' + item, + uid: this.detailsRow['photoStr'].split(',').length + } + }) + this.fileList = this.detailsRow.img }); - this.addPublicityForm = {} - this.init(); - } - ) - this.addPublicityVisibel = false; - }) - }, - //鍏抽棴涔嬪墠 - addPublicityClose() { - this.addPublicityVisibel = false; - }, - detailsVisibleclose() { - this.detailsVisible = false; - }, - //鍒嗛〉鏂规硶 - handleCurrentChange(val) { - this.queryInfo.current = val; - this.search(); - }, - //瀵煎叆 - beforeAvatarUpload(file) { - let Xls = file.name.split('.'); - if (Xls[1] === 'xls' || Xls[1] === 'xlsx') { - return file - } else { - this.$message.error('涓婁紶鏂囦欢鍙兘鏄� xls/xlsx 鏍煎紡!') - return false - } - }, - //瀵煎叆鎴愬姛 - respond(res) { - if (res.code == 200) { - this.$message({ - message: '涓婁紶鎴愬姛', - type: 'success' - } - ) - } else { - this.$message({ - message: res.msg, - type: 'error' - }) - } - location.reload(); - }, - //鍏叡瀹d紶鍔犺浇 - init() { - let param = {} - param.current = this.queryInfo.current - param.size = this.queryInfo.size - param.status = this.queryInfo.status !== null ? this.queryInfo.status : '' - getPublicityList(param).then(res => { - this.publicityList = res.records; - this.total = res.total - }) - }, - //鏌ヨ - search() { - let param = {} - param.publicityTitle = this.queryInfo.publicityTitle; - param.current = this.queryInfo.current - param.size = this.queryInfo.size - param.status = this.queryInfo.status !== null ? this.queryInfo.status : '' - getPublicityList(param).then(res => { - this.publicityList = res.records; - this.total = res.total - this.current = res.current - }) - }, + }, + //娣诲姞 + add() { + this.$refs.addPublicityForm.validate(async (vaild) => { + if (!vaild) return this.$message.error('杈撳叆鏈夎') + let param = null; + param = JSON.parse(JSON.stringify(this.addPublicityForm)); + param.photoStr = param.img.map(item => item.name).join(','); + addPublicityList(param).then(res => { + this.$message({ + message: '鎿嶄綔鎴愬姛', + type: 'success' + }); + this.addPublicityForm = {} + this.init(); + } + ) + this.addPublicityVisibel = false; + }) + }, + //鍏抽棴涔嬪墠 + addPublicityClose() { + this.addPublicityVisibel = false; + }, + detailsVisibleclose() { + this.detailsVisible = false; + }, + //鍒嗛〉鏂规硶 + handleCurrentChange(val) { + this.queryInfo.current = val; + this.search(); + }, + //瀵煎叆 + beforeAvatarUpload(file) { + let Xls = file.name.split('.'); + if (Xls[1] === 'xls' || Xls[1] === 'xlsx') { + return file + } else { + this.$message.error('涓婁紶鏂囦欢鍙兘鏄� xls/xlsx 鏍煎紡!') + return false + } + }, + //瀵煎叆鎴愬姛 + respond(res) { + if (res.code == 200) { + this.$message({ + message: '涓婁紶鎴愬姛', + type: 'success' + } + ) + } else { + this.$message({ + message: res.msg, + type: 'error' + }) + } + location.reload(); + }, + //鍏叡瀹d紶鍔犺浇 + init() { + let param = {} + param.current = this.queryInfo.current + param.size = this.queryInfo.size + param.status = this.queryInfo.status !== null ? this.queryInfo.status : '' + getPublicityList(param).then(res => { + this.publicityList = res.records; + this.total = res.total + }) + }, + //鏌ヨ + search() { + let param = {} + param.publicityTitle = this.queryInfo.publicityTitle; + param.current = this.queryInfo.current + param.size = this.queryInfo.size + param.status = this.queryInfo.status !== null ? this.queryInfo.status : '' + getPublicityList(param).then(res => { + this.publicityList = res.records; + this.total = res.total + this.current = res.current + }) + }, - } + } } </script> @@ -385,4 +453,7 @@ ::v-deep(.el-table thead) { color: #000000; } +.freePic ::v-deep .el-upload--picture-card { + display: none; +} </style> \ No newline at end of file diff --git a/src/views/manager/User.vue b/src/views/manager/User.vue index b557f33..c5bc1d1 100644 --- a/src/views/manager/User.vue +++ b/src/views/manager/User.vue @@ -30,21 +30,23 @@ <el-table-column label="鎿嶄綔" align="conter"> <template slot-scope="scope"> <el-button type="text" size="medium" @click="details(scope.row)">缂栬緫</el-button> -<!-- <el-button type="text" size="medium" @click="reset(scope.row.id)">閲嶇疆瀵嗙爜</el-button>--> -<!-- <el-button type="text" size="medium" @click="remove(scope.row.id)" style="color:#ff0000">鍒犻櫎--> - <el-button type="text" size="medium" @click="updateStatus(scope.row.id,scope.row.status)">{{scope.row.status==1?"绂佺敤":"鍚敤"}} + <!-- <el-button type="text" size="medium" @click="reset(scope.row.id)">閲嶇疆瀵嗙爜</el-button>--> + <!-- <el-button type="text" size="medium" @click="remove(scope.row.id)" style="color:#ff0000">鍒犻櫎--> + <el-button type="text" size="medium" @click="handleToManager(scope.row)">璁句负璀﹀憳</el-button> + <el-button type="text" size="medium" @click="updateStatus(scope.row.id,scope.row.status)"> + {{ scope.row.status == 1 ? "绂佺敤" : "鍚敤" }} </el-button> </template> </el-table-column> </el-table> </template> <el-pagination @current-change="handleCurrentChange" :current-page="queryInfo.current" :page-size="queryInfo.size" - layout="prev, pager, next" :total="total"></el-pagination> + layout="prev, pager, next" :total="total"></el-pagination> </el-card> <!--娣诲姞鐢ㄦ埛寮圭獥--> <el-dialog title="鐢ㄦ埛娣诲姞" :visible.sync="addPublicityVisibel" width="50%" :before-close="addPublicityClose" - :append-to-body="true"> + :append-to-body="true"> <el-row :gutter="15"> <el-form ref="addPublicityForm" :model="addPublicityForm" :rules="rules" size="medium" label-width="100px"> @@ -65,7 +67,7 @@ </el-col> <el-col :span="12"> <el-form-item label="韬唤璇�" prop="userIdcard"> - <el-input v-model="addPublicityForm.userIdcard" clearable placeholder="璇疯緭鍏ヨ韩浠借瘉"> </el-input> + <el-input v-model="addPublicityForm.userIdcard" clearable placeholder="璇疯緭鍏ヨ韩浠借瘉"></el-input> </el-form-item> </el-col> </el-form> @@ -77,7 +79,7 @@ </el-dialog> <el-dialog title="缂栬緫" :visible.sync="detailsVisible" width="50%" :append-to-body="true" - :before-close="detailsVisibleclose"> + :before-close="detailsVisibleclose"> <el-row :gutter="15"> <el-form ref="detailsRow" :model="detailsRow" size="medium" label-width="100px"> <el-col :span="12"> @@ -94,13 +96,15 @@ </el-col> <el-col :span="12"> <el-form-item label="鎵嬫満鍙风爜" prop="userMobile"> - <el-input v-model="detailsRow.userMobile" placeholder="璇疯緭鍏ユ墜鏈哄彿鐮�" clearable :style="{ width: '100%' }"> + <el-input v-model="detailsRow.userMobile" placeholder="璇疯緭鍏ユ墜鏈哄彿鐮�" clearable + :style="{ width: '100%' }"> </el-input> </el-form-item> </el-col> <el-col :span="12"> <el-form-item label="韬唤璇佸彿" prop="userIdcard"> - <el-input v-model="detailsRow.userIdcard" placeholder="璇疯緭鍏ヨ韩浠借瘉鍙�" clearable :style="{ width: '100%' }"> + <el-input v-model="detailsRow.userIdcard" placeholder="璇疯緭鍏ヨ韩浠借瘉鍙�" clearable + :style="{ width: '100%' }"> </el-input> </el-form-item> </el-col> @@ -118,7 +122,8 @@ <script> import { getPublicityList, - addPublicityList + addPublicityList, + toManager } from '@/api/User' @@ -153,8 +158,7 @@ detailsVisible: false, //璇︾粏鍐呭 detailsRow: - { - } + {} , //琛ㄥ崟鎻愪氦鍐呭 addPublicityForm: { @@ -202,127 +206,136 @@ }, methods: - { - //鏇存柊鐢ㄦ埛鐘舵�� - updateStatus(id,status) { - var _this = this; - this.$confirm('纭淇敼璐︽埛鐘舵�佸悧锛�').then(() => { - _this.$http.get('/api/user/status', { params: { id: id ,status:status} }).then(res => { - _this.$message({ - message: '淇敼鎴愬姛', - type: 'success' + { + handleToManager(data) { + toManager(data.id).then(res => { + this.$message({ + message: '璁剧疆鎴愬姛', + type: 'success' + }) + this.search(); }) - this.search(); - }) - } - ) + }, + //鏇存柊鐢ㄦ埛鐘舵�� + updateStatus(id, status) { + var _this = this; + this.$confirm('纭淇敼璐︽埛鐘舵�佸悧锛�').then(() => { + _this.$http.get('/api/user/status', {params: {id: id, status: status}}).then(res => { + _this.$message({ + message: '淇敼鎴愬姛', + type: 'success' + }) + this.search(); + }) + } + ) - }, - // //鍙戝竷/涓嬫灦 - // punlish(val, val2) { - // if (val2 == 0) { - // this.$http.get('/api/commonQuestion/release/' + val).then(res => { - // this.$message({ - // message: '鍙戝竷鎴愬姛', - // type: 'success' - // }) + }, + // //鍙戝竷/涓嬫灦 + // punlish(val, val2) { + // if (val2 == 0) { + // this.$http.get('/api/commonQuestion/release/' + val).then(res => { + // this.$message({ + // message: '鍙戝竷鎴愬姛', + // type: 'success' + // }) - // this.search(); - // } - // ) - // } - // if (val2 == 1) { - // this.$http.get('/api/commonQuestion/offline/' + val).then(res => { - // this.$message({ - // message: '涓嬫灦鎴愬姛', - // type: 'success' - // }) - // this.search(); - // } - // ); - // } - // }, + // this.search(); + // } + // ) + // } + // if (val2 == 1) { + // this.$http.get('/api/commonQuestion/offline/' + val).then(res => { + // this.$message({ + // message: '涓嬫灦鎴愬姛', + // type: 'success' + // }) + // this.search(); + // } + // ); + // } + // }, - //缂栬緫 - details(val) { - this.detailsVisible = true; - this.detailsRow = Object.assign({}, val); - }, - update() { - this.$http.put('/api/user', this.detailsRow).then(res => { - this.$message({ - message: '缂栬緫鎴愬姛', - type: 'success' - } - ) - this.search(); - } - ); - this.detailsVisible = false; - }, + //缂栬緫 + details(val) { + this.detailsVisible = true; + this.detailsRow = Object.assign({}, val); + }, + update() { + this.$http.put('/api/user', this.detailsRow).then(res => { + this.$message({ + message: '缂栬緫鎴愬姛', + type: 'success' + } + ) + this.search(); + } + ); + this.detailsVisible = false; + }, - //閲嶇疆瀵嗙爜 - reset(val) { - this.$http.get('/api/user/resetPassword/' + val).then(res => this.$message({ - message: '閲嶇疆鎴愬姛', - type: 'success' - })); - }, - //娣诲姞 - add() { - this.$refs.addPublicityForm.validate(async (vaild) => { - if (!vaild) return this.$message.error('杈撳叆鏈夎') - let param = null; - param = this.addPublicityForm; - addPublicityList(param).then(res => { - this.$message({ - message: '鎿嶄綔鎴愬姛', + //閲嶇疆瀵嗙爜 + reset(val) { + this.$http.get('/api/user/resetPassword/' + val).then(res => this.$message({ + message: '閲嶇疆鎴愬姛', type: 'success' - }); - this.addPublicityForm = {}; - this.init(); - } - ) - this.addPublicityVisibel = false; - }) - }, - //鍏抽棴涔嬪墠 - addPublicityClose() { - this.addPublicityVisibel = false; - }, - detailsVisibleclose() { - this.detailsVisible = false; - }, - //鍒嗛〉鏂规硶 - handleCurrentChange(val) { - this.queryInfo.current = val; - this.search(); - }, + })); + }, + //娣诲姞 + add() { + this.$refs.addPublicityForm.validate(async (vaild) => { + if (!vaild) return this.$message.error('杈撳叆鏈夎') + let param = null; + param = this.addPublicityForm; + addPublicityList(param).then(res => { + this.$message({ + message: '鎿嶄綔鎴愬姛', + type: 'success' + }); + this.addPublicityForm = {}; + this.init(); + } + ) + this.addPublicityVisibel = false; + }) + }, + //鍏抽棴涔嬪墠 + addPublicityClose() { + this.addPublicityVisibel = false; + }, + detailsVisibleclose() { + this.detailsVisible = false; + }, + //鍒嗛〉鏂规硶 + handleCurrentChange(val) { + this.queryInfo.current = val; + this.search(); + }, - //鍏叡瀹d紶鍔犺浇 - init() { - let param = {} - param.current = this.queryInfo.current - param.size = this.queryInfo.size - getPublicityList(param).then(res => { - this.publicityList = res.records; - this.total = res.total - }) - }, - //鏌ヨ - search() { - let param = {} - param.realName = this.queryInfo.realName - param.nickName = this.queryInfo.nickName - param.size = this.queryInfo.size - getPublicityList(param).then(res => { - this.publicityList = res.records; - this.total = res.total - this.current = res.current - }) - }, + //鍏叡瀹d紶鍔犺浇 + init() { + let param = {} + param.current = this.queryInfo.current + param.size = this.queryInfo.size + getPublicityList(param).then(res => { + this.publicityList = res.records; + this.total = res.total + }) + }, + //鏌ヨ + search() { + let param = {} + param.realName = this.queryInfo.realName + param.nickName = this.queryInfo.nickName + param.size = this.queryInfo.size + getPublicityList(param).then(res => { + this.publicityList = res.records; + this.total = res.total + this.current = res.current + }) + }, - } + } } </script> -- Gitblit v1.8.0