Commit 15660a6a authored by 黄奎's avatar 黄奎

页面更新

parent da826258
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div v-loading="loading" class="h_edit_brand"> <div v-loading="loading" class="h_edit_brand">
<div class="head-title"> <div class="head-title">
<span @click="CommonJump('hbrand')" class="blue point">品牌管理</span> <span @click="CommonJump('hbrand')" class="blue point">品牌管理</span>
/ 编辑品牌管理 {{ addMsg.Id ? '/ 编辑品牌管理' : '/ 新增品牌管理' }}
</div> </div>
<div class="content"> <div class="content">
<el-form :rules="rules" :model="addMsg" ref="addMsg" label-width="150px" style="width: 70%"> <el-form :rules="rules" :model="addMsg" ref="addMsg" label-width="150px" style="width: 70%">
...@@ -194,6 +194,7 @@ export default { ...@@ -194,6 +194,7 @@ export default {
} }
}); });
} else { } else {
this.$message.error('请填写完整信息');
return false; return false;
} }
}); });
...@@ -201,7 +202,7 @@ export default { ...@@ -201,7 +202,7 @@ export default {
} }
}; };
</script> </script>
<style> <style scoped>
.app-add-cat .el-checkbox-group { .app-add-cat .el-checkbox-group {
font-size: 14px !important; font-size: 14px !important;
} }
......
<template> <template>
<div class="performanceStatics"> <div class="happraise">
<div class="head-title"> <div class="head-title">
估价列表 估价列表
</div> </div>
...@@ -67,7 +67,6 @@ ...@@ -67,7 +67,6 @@
<img style="width: 32px;height: 32px;" @click="showReplayForm(scope.row, 2)" <img style="width: 32px;height: 32px;" @click="showReplayForm(scope.row, 2)"
src="../../assets/img/userman/icon-show.png" /> src="../../assets/img/userman/icon-show.png" />
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -77,7 +76,7 @@ ...@@ -77,7 +76,7 @@
</div> </div>
<!-- 回复 --> <!-- 回复 -->
<el-dialog :title="editTitle" :visible.sync="isShowReplayForm" width="800px"> <el-dialog :title="editTitle" :visible.sync="isShowReplayForm" width="800px">
<el-form ref="answerform" label-width="150px" :rules="rules" :model="replayMsg" @validate="answerTest"> <el-form ref="answerform" label-width="150px" :rules="rules" :model="replayMsg">
<el-form-item label="咨询用户" class="user"> <el-form-item label="咨询用户" class="user">
{{ replayMsg.UserName }} {{ replayMsg.UserName }}
</el-form-item> </el-form-item>
...@@ -117,12 +116,12 @@ ...@@ -117,12 +116,12 @@
</el-form-item> </el-form-item>
<el-form-item label="回复内容" prop="ReplyContent"> <el-form-item label="回复内容" prop="ReplyContent">
<template v-if="showType == 1"> <template v-if="showType == 1">
<el-input style="width:250px" size="small" maxlength="800" :rows="4" type="textarea" <el-input style="width:400px" size="small" maxlength="800" show-word-limit :rows="4" type="textarea"
v-model="replayMsg.ReplyContent"> v-model="replayMsg.ReplyContent">
</el-input> </el-input>
</template> </template>
<template v-else> <template v-else>
{{ replayMsg.ReplyContent }} <p>{{ replayMsg.ReplyContent }}</p>
</template> </template>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -226,19 +225,16 @@ export default { ...@@ -226,19 +225,16 @@ export default {
}); });
}, },
showReplayForm(item, showType) { showReplayForm(item, showType) {
this.editTitle = '回复'
this.replayMsg.GoodsId = item.Id; this.replayMsg.GoodsId = item.Id;
this.replayMsg.GoodsImgList = item.GoodsImgList; let { GoodsImgList, MoreImgList, Remark, CategoryName, BrandName, UserName, CreateDate } = item;
this.replayMsg.MoreImgList = item.MoreImgList; this.replayMsg = { GoodsImgList, MoreImgList, Remark, CategoryName, BrandName, UserName, CreateDate }
this.replayMsg.Remark = item.Remark;
this.replayMsg.CategoryName = item.CategoryName;
this.replayMsg.BrandName = item.BrandName;
this.replayMsg.UserName = item.UserName;
this.replayMsg.CreateDate = item.CreateDate;
this.showType = showType; this.showType = showType;
this.srcList = item.GoodsImgList.map(v => v.Path); this.srcList = item.GoodsImgList.map(v => v.Path);
this.moreImg = item.MoreImgList.map(v => v.Path); this.moreImg = item.MoreImgList.map(v => v.Path);
if (this.showType == 2) { if (this.showType == 2) {
this.replayMsg.ReplyContent = item.ReplyContent; this.replayMsg.ReplyContent = item.ReplyContent;
this.editTitle = '查看'
} }
this.isShowReplayForm = true; this.isShowReplayForm = true;
}, },
...@@ -294,27 +290,17 @@ export default { ...@@ -294,27 +290,17 @@ export default {
} }
}); });
} else { } else {
this.$message.error('请输入回复内容');
return false; return false;
} }
}); });
// if (this.pass) {
// this.assetsApipost("/api/Assess/SetGoodsReply", this.replayMsg, res => {
// if (res.data.resultCode == 1) {
// this.isShowReplayForm = false;
// this.Success(res.data.message);
// this.getList();
// } else {
// this.Error(res.data.message);
// }
// });
// }
}, },
//回复验证结果 //回复验证结果
}, },
}; };
</script> </script>
<style scoped> <style scoped>
.performanceStatics .content { .happraise .content {
background: #fff; background: #fff;
margin-top: 10px; margin-top: 10px;
padding: 20px; padding: 20px;
...@@ -322,36 +308,37 @@ export default { ...@@ -322,36 +308,37 @@ export default {
box-sizing: border-box; box-sizing: border-box;
} }
.happraise .shopImg1 {
.performanceStatics .shopImg1 {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 10px; margin-top: 10px;
} }
.performanceStatics .shopImg1>div { .happraise .shopImg1>div {
width: 20%; width: 20%;
} }
.performanceStatics .img_Des { .happraise .img_Des {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.performanceStatics .el-form-item { .happraise .el-form-item {
margin-bottom: 0; margin-bottom: 0;
} }
.performanceStatics .remark { .happraise .remark {
margin-top: 30px; margin: 20px 0;
} }
.performanceStatics .answer-con { .happraise .answer-con {
display: -webkit-box; display: -webkit-box;
word-break: break-all;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
/* white-space: pre-line; */
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 4; -webkit-line-clamp: 4;
} }
......
<template> <template>
<div class="performanceStatics"> <div class="hbrand">
<div class="head-title"> <div class="head-title">
品牌管理 品牌管理
<el-button style="float:right;margin-top: -5px;" type="primary" class="el-button--small" <el-button style="float:right;margin-top: -5px;" type="primary" class="el-button--small"
...@@ -149,8 +149,8 @@ export default { ...@@ -149,8 +149,8 @@ export default {
} }
}; };
</script> </script>
<style> <style scoped>
.performanceStatics .content { .hbrand .content {
background: #fff; background: #fff;
margin-top: 10px; margin-top: 10px;
padding: 20px; padding: 20px;
...@@ -158,16 +158,16 @@ export default { ...@@ -158,16 +158,16 @@ export default {
box-sizing: border-box; box-sizing: border-box;
} }
.performanceStatics .edit-img { .hbrand .edit-img {
margin-right: 10px; margin-right: 10px;
} }
.performanceStatics .moredesc-con { .hbrand .moredesc-con {
display: -webkit-box; display: -webkit-box;
word-break: break-all; word-break: break-all;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: pre-line; /* white-space: pre-line; */
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 4; -webkit-line-clamp: 4;
} }
......
<template> <template>
<div class="performanceStatics"> <div class="hcategory">
<div class="head-title"> <div class="head-title">
分类管理 分类管理
<el-button style="float:right;margin-top: -5px;" type="primary" class="el-button--small" <el-button style="float:right;margin-top: -5px;" type="primary" class="el-button--small"
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<el-input type="text" style="width:250px" size="small" maxlength="100" v-model="msg.Name" <el-input type="text" style="width:250px" size="small" maxlength="100" v-model="msg.Name"
@input="(msg.pageIndex = 1), getList()" clearable> @input="(msg.pageIndex = 1), getList()" clearable>
</el-input> </el-input>
<el-button @click="(msg.pageIndex = 1), getList()" size="small" type="primary"> <el-button :disabled="iscx" @click="(msg.pageIndex = 1), getList()" size="small" type="primary">
查询 查询
</el-button> </el-button>
</div> </div>
...@@ -110,11 +110,13 @@ export default { ...@@ -110,11 +110,13 @@ export default {
isShowChooseImage: false, isShowChooseImage: false,
rules: { rules: {
Name: [{ required: true, message: "请输入名称", trigger: "blur" }], Name: [{ required: true, message: "请输入名称", trigger: "blur" }],
Image: [{ required: true, message: "请选择文件", trigger: "blur" }] Image: [{ required: true, message: "请选择文件" }]
}, },
// 验证是否通过 // 验证是否通过
pass: "" pass: "",
//节流字段
iscx: ''
}; };
}, },
created() { }, created() { },
...@@ -152,11 +154,8 @@ export default { ...@@ -152,11 +154,8 @@ export default {
showCategoryForm(item) { showCategoryForm(item) {
if (item) { if (item) {
this.editTitle = "修改分类"; this.editTitle = "修改分类";
this.postMsg.Id = item.Id; let { Id, Name, Image, Enable, Sort } = item;
this.postMsg.Name = item.Name; this.postMsg = { Id, Name, Image, Enable, Sort };
this.postMsg.Image = item.Image;
this.postMsg.Enable = item.Enable;
this.postMsg.Sort = item.Sort;
} else { } else {
this.editTitle = "新增分类"; this.editTitle = "新增分类";
this.postMsg.Id = 0; this.postMsg.Id = 0;
...@@ -171,19 +170,6 @@ export default { ...@@ -171,19 +170,6 @@ export default {
formTest(res, pass) { formTest(res, pass) {
this.pass = pass; this.pass = pass;
}, },
// saveData() {
// if (this.pass && this.postMsg.Image) {
// this.assetsApipost("/api/Assess/SetCategoryInfo", this.postMsg, res => {
// if (res.data.resultCode == 1) {
// this.Success(res.data.message);
// this.getList();
// } else {
// this.Error(res.data.message);
// }
// });
// }
// },
//新增修改分类 //新增修改分类
saveData(editform) { saveData(editform) {
this.$refs[editform].validate((valid) => { this.$refs[editform].validate((valid) => {
...@@ -197,6 +183,7 @@ export default { ...@@ -197,6 +183,7 @@ export default {
} }
}); });
} else { } else {
this.$message.error('请填写完整信息');
return false; return false;
} }
}); });
...@@ -224,8 +211,8 @@ export default { ...@@ -224,8 +211,8 @@ export default {
} }
}; };
</script> </script>
<style> <style scoped>
.performanceStatics .content { .hcategory .content {
background: #fff; background: #fff;
margin-top: 10px; margin-top: 10px;
padding: 20px; padding: 20px;
...@@ -233,7 +220,7 @@ export default { ...@@ -233,7 +220,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
} }
.performanceStatics .edit-img { .hcategory .edit-img {
margin-right: 10px; margin-right: 10px;
} }
</style> </style>
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
</div> </div>
</div> </div>
</template> </template>
<script> <script scoped>
export default { export default {
data() { data() {
return { return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment