bug
This commit is contained in:
parent
79d073b26c
commit
273e38494c
@ -172,7 +172,9 @@ export default {
|
|||||||
// 上传成功回调
|
// 上传成功回调
|
||||||
handleUploadSuccess(res, file) {
|
handleUploadSuccess(res, file) {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.uploadList.push({ name: res.data.url, url: res.data.url });
|
let list = res.data.url.split("/static")
|
||||||
|
let url = this.baseUrl + "/static" + list[list.length-1]
|
||||||
|
this.uploadList.push({ name: url, url: url });
|
||||||
this.uploadedSuccessfully();
|
this.uploadedSuccessfully();
|
||||||
} else {
|
} else {
|
||||||
this.number--;
|
this.number--;
|
||||||
@ -207,14 +209,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 预览
|
// 预览
|
||||||
handlePictureCardPreview(file) {
|
handlePictureCardPreview(file) {
|
||||||
if (this.imgUrl != "" && this.imgUrl != undefined){
|
if (this.imgUrl){
|
||||||
this.dialogImageUrl = this.baseUrl + this.imgUrl;
|
this.dialogImageUrl = this.baseUrl + this.imgUrl;
|
||||||
}else {
|
}else {
|
||||||
if (file!=undefined){
|
if (file){
|
||||||
this.dialogImageUrl = file.url;
|
this.dialogImageUrl = file.url;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.doorUrl != "" && this.doorUrl != undefined && this.doorUrl != []){
|
if (this.doorUrl){
|
||||||
let list = JSON.parse(this.doorUrl)
|
let list = JSON.parse(this.doorUrl)
|
||||||
list.forEach(item => {
|
list.forEach(item => {
|
||||||
let data = {name:"",url:""}
|
let data = {name:"",url:""}
|
||||||
@ -225,7 +227,7 @@ export default {
|
|||||||
// this.doorList.push(this.baseUrl + item);
|
// this.doorList.push(this.baseUrl + item);
|
||||||
})
|
})
|
||||||
}else {
|
}else {
|
||||||
if (file!=undefined){
|
if (file){
|
||||||
this.dialogImageUrl = file.url;
|
this.dialogImageUrl = file.url;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
|
|
||||||
<el-table style="margin-top: 20px" v-loading="loading" :data="list">
|
<el-table style="margin-top: 20px" v-loading="loading" :data="list">
|
||||||
<el-table-column type="index" width="80" align="center" label="序号"/>
|
<el-table-column type="index" width="80" align="center" label="序号"/>
|
||||||
<el-table-column align="center" prop="userId" label="用户id"/>
|
<el-table-column align="center" prop="userId" label="用户昵称"/>
|
||||||
|
<el-table-column align="center" prop="userName" label="用户昵称"/>
|
||||||
|
<el-table-column align="center" prop="userMobile" label="用户手机号"/>
|
||||||
<el-table-column align="center" prop="content" label="反馈内容"/>
|
<el-table-column align="center" prop="content" label="反馈内容"/>
|
||||||
<el-table-column align="center" prop="screenshot_url" label="截图信息">
|
<el-table-column align="center" prop="screenshot_url" label="截图信息">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -576,7 +576,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-table ref="tables" v-loading="loading" :data="cardValueChildList">
|
<el-table ref="tables" v-loading="loading" :data="cardValueChildList">
|
||||||
<el-table-column label="子卡ID" prop="id" align="center" width="60"/>
|
<el-table-column type="index" width="80" align="center" label="序号"/>
|
||||||
<el-table-column label="子卡手机号" prop="cardChildPhones" align="center"/>
|
<el-table-column label="子卡手机号" prop="cardChildPhones" align="center"/>
|
||||||
<el-table-column label="创建时间" align="center" width="160" prop="createTime">
|
<el-table-column label="创建时间" align="center" width="160" prop="createTime">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@ -661,7 +661,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="ID" prop="id" align="center" width="60"/>
|
<el-table-column type="index" width="80" align="center" label="序号"/>
|
||||||
<el-table-column label="子卡手机号" prop="cardChildPhones" align="center" />
|
<el-table-column label="子卡手机号" prop="cardChildPhones" align="center" />
|
||||||
<el-table-column label="订单号" prop="orderNo" align="center" />
|
<el-table-column label="订单号" prop="orderNo" align="center" />
|
||||||
<el-table-column label="订单金额" prop="amount" align="center" />
|
<el-table-column label="订单金额" prop="amount" align="center" />
|
||||||
@ -775,8 +775,10 @@
|
|||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="子卡手机号" prop="cardChildPhones" style="width: 420px">
|
<el-form-item label="子卡手机号" prop="cardChildPhones" style="width: 420px">
|
||||||
<el-input
|
<el-input
|
||||||
v-model.number="cardChildPhones"
|
v-model="form1.cardChildPhones"
|
||||||
|
@input="setCardChildPhones"
|
||||||
placeholder="请输入子卡手机号"
|
placeholder="请输入子卡手机号"
|
||||||
|
oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -1024,6 +1026,9 @@ export default {
|
|||||||
this.getAllAmount()
|
this.getAllAmount()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
setCardChildPhones(val){
|
||||||
|
this.form1.cardChildPhones = val
|
||||||
|
},
|
||||||
// 计算找零金额
|
// 计算找零金额
|
||||||
changeSeekZero(){
|
changeSeekZero(){
|
||||||
this.seekZero = (this.authCode - this.cardValueForm.amount).toFixed(2)
|
this.seekZero = (this.authCode - this.cardValueForm.amount).toFixed(2)
|
||||||
@ -1070,7 +1075,7 @@ export default {
|
|||||||
submitSubCard(){
|
submitSubCard(){
|
||||||
this.$refs["form1"].validate(valid => {
|
this.$refs["form1"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.form1.cardChildPhones = this.cardChildPhones
|
// this.form1.cardChildPhones = this.cardChildPhones
|
||||||
if (this.form1.id) {
|
if (this.form1.id) {
|
||||||
editCardValueChild(this.form1).then(res => {
|
editCardValueChild(this.form1).then(res => {
|
||||||
if (res.data==1){
|
if (res.data==1){
|
||||||
|
@ -280,7 +280,7 @@
|
|||||||
v-for="dict in shqxList"
|
v-for="dict in shqxList"
|
||||||
:key="dict.dictValue"
|
:key="dict.dictValue"
|
||||||
:label="dict.dictLabel"
|
:label="dict.dictLabel"
|
||||||
:value="dict.dictValue"
|
:value="dict.dictLabel"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
@ -495,7 +495,7 @@ export default {
|
|||||||
this.auditPrem = []
|
this.auditPrem = []
|
||||||
if (val) {
|
if (val) {
|
||||||
this.shqxList.forEach((item) => {
|
this.shqxList.forEach((item) => {
|
||||||
this.auditPrem.push(item.dictValue)
|
this.auditPrem.push(item.dictLabel)
|
||||||
this.form.auditPrem = this.auditPrem.toString();
|
this.form.auditPrem = this.auditPrem.toString();
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
@ -83,7 +83,7 @@ export default {
|
|||||||
// 上传文件列表
|
// 上传文件列表
|
||||||
uploadFiles: [
|
uploadFiles: [
|
||||||
{name:"nihao",
|
{name:"nihao",
|
||||||
url:'http://192.168.1.4:8080/static/uploadImages/20231218/c4b1c4fc7cfc4dd4a4acf1e922cacc86.png'}
|
url:'http://localhost:8080/static/uploadImages/20231218/c4b1c4fc7cfc4dd4a4acf1e922cacc86.png'}
|
||||||
],
|
],
|
||||||
// 门店二维码
|
// 门店二维码
|
||||||
collectionImg:'',
|
collectionImg:'',
|
||||||
|
@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|||||||
import com.fuint.business.userManager.entity.Feedback;
|
import com.fuint.business.userManager.entity.Feedback;
|
||||||
import com.fuint.business.userManager.entity.FixingLevel;
|
import com.fuint.business.userManager.entity.FixingLevel;
|
||||||
import com.fuint.business.userManager.service.FeedbackService;
|
import com.fuint.business.userManager.service.FeedbackService;
|
||||||
|
import com.fuint.business.userManager.vo.FeedbackVo;
|
||||||
import com.fuint.framework.web.BaseController;
|
import com.fuint.framework.web.BaseController;
|
||||||
import com.fuint.framework.web.ResponseObject;
|
import com.fuint.framework.web.ResponseObject;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -24,11 +25,11 @@ public class FeedbackController extends BaseController {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public ResponseObject list(Feedback feedback,
|
public ResponseObject list(FeedbackVo feedback,
|
||||||
@RequestParam(value = "page",defaultValue = "1") Integer pageNo,
|
@RequestParam(value = "page",defaultValue = "1") Integer pageNo,
|
||||||
@RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){
|
@RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){
|
||||||
Page page =new Page(pageNo,pageSize);
|
Page page =new Page(pageNo,pageSize);
|
||||||
IPage<Feedback> list = feedbackService.selectFeedbackList(page,feedback);
|
IPage<FeedbackVo> list = feedbackService.selectFeedbackList(page,feedback);
|
||||||
return getSuccessResult(list);
|
return getSuccessResult(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.fuint.business.userManager.mapper.FeedbackMapper">
|
<mapper namespace="com.fuint.business.userManager.mapper.FeedbackMapper">
|
||||||
<sql id="selectFeedback">
|
<sql id="selectFeedback">
|
||||||
select fb.*,mu.name name,mu.mobile mobile from feedback fb left join mt_user mu on fb.user_id = mu.id
|
select fb.*,mu.name userName,mu.mobile userMobile from feedback fb left join mt_user mu on fb.user_id = mu.id
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectFeedbackList" resultType="com.fuint.business.userManager.vo.FeedbackVo">
|
<select id="selectFeedbackList" resultType="com.fuint.business.userManager.vo.FeedbackVo">
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
package com.fuint.business.userManager.vo;
|
package com.fuint.business.userManager.vo;
|
||||||
|
|
||||||
import com.fuint.business.userManager.entity.Feedback;
|
import com.fuint.business.userManager.entity.Feedback;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
public class FeedbackVo extends Feedback {
|
public class FeedbackVo extends Feedback {
|
||||||
/**
|
/**
|
||||||
* 用户昵称
|
* 用户昵称
|
||||||
*/
|
*/
|
||||||
private String name;
|
private String userName;
|
||||||
/**
|
/**
|
||||||
* 用户电话
|
* 用户电话
|
||||||
*/
|
*/
|
||||||
private String mobile;
|
private String userMobile;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user