Commit 4e3e6d7f authored by 吴春's avatar 吴春

提交评价标签

parent 78b84a8f
<template>
<div v-loading="pageloading" class="commentLabelEdit">
<div class="head-title">
<span @click="CommonJump('commentLabelList')" class="blue point">评价标签</span> / 评价标签编辑
</div>
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="150px">
<el-card shadow="never" style="margin-top:10px" class="box-card">
<el-form-item class="commonLabel discount" label="标签名称" prop="Name">
<el-tooltip class="item" effect="dark" content="" placement="top-start">
<i class=" elzk el-tooltip el-icon-info"></i>
</el-tooltip>
<el-input v-model="addMsg.Name" style="width:690px" size="small">
</el-input>
</el-form-item>
</el-card>
</el-form>
<div style="padding:20px;background:#fff;margin-top:10px">
<el-button @click="Save('addMsg')" size="small" type="primary">保存</el-button>
</div>
</div>
</template>
<script>
export default {
name: "commentLabelEdit",
data(){
return{
pageloading:false,
addMsg:{
Id:0,
Name:'',
},
rules:{
Name: [
{ required: true, message: '请输入标签名称', trigger: 'blur' },
],
},
ServiceId:-1,
}
},
created(){
if(this.$route.query.ServiceId){
this.ServiceId=this.$route.query.ServiceId;
this.getData()
}
},
methods:{
Save(formName){
this.$refs[formName].validate((valid) => {
if (valid) {
this.apipost('/api/Order/SetCommentLabel',this.addMsg,
res => {
if (res.data.resultCode === 1) {
this.CommonJump('commentLabelList')
this.Success(res.data.message)
} else {
this.Error(res.data.message);
}
},
null
);
} else {
return false;
}
});
},
getData(){
this.pageloading=true;
this.apipost("/api/Order/GetCommentLabel",{Id:this.ServiceId}, res => {
this.pageloading=false;
if(res.data.resultCode==1){
this.addMsg=res.data.data;
}else {
this.Error(res.data.message);
}
})
},
},
};
</script>
<style>
.goodsServicesEdit .discount .el-form-item__label{
padding-right: 30px;
}
.goodsServicesEdit .el-form-item .elzk{
position: absolute;
left: -25px;
top:12px;
}
</style>
<template>
<div class="quickBuy">
<div class="head-title">
评价标签列表
<el-button @click="CommonJump('commentLabelEdit')" style="float:right;margin-top: -5px;margin-left:20px;" size="small" type="primary">添加标签</el-button>
</div>
<div class="content">
<div>
<div class="searchInput" style="width:250px">
<el-input style="display:inline-block;width:225px;height:30px"
placeholder="请输入标签名称搜索"
v-model="msg.Name"
@clear="msg.pageIndex=1,getList()"
@keyup.enter.native="msg.pageIndex=1,getList()"
size="small"
clearable>
</el-input>
<span @click="msg.pageIndex=1,getList()" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
</div>
<!-- <el-select size="small" @change="msg.pageIndex=1,getList()" v-model="msg.IsDefault" placeholder="请选择">
<el-option label="不限" :value="0"></el-option>
<el-option label="是" :value="1"></el-option>
<el-option label="否" :value="2"></el-option>
</el-select> -->
</div>
<el-table
:data="tableData"
v-loading="loading"
border
style="width: 100%;margin:20px 0">
<el-table-column
prop="Id"
width="80"
label="ID">
</el-table-column>
<el-table-column
prop="Name"
label="标签名称">
</el-table-column>
<el-table-column
prop="UpdateDate"
width="200"
label="添加日期">
</el-table-column>
<el-table-column
prop="address"
width="200"
label="操作">
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" content="编辑" placement="top">
<img @click="CommonJump('commentLabelEdit',{ServiceId:scope.row.Id})" style="width:32px;height:32px;margin:0 10px" src="../../assets/img/userman/edit.png" alt="">
</el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top">
<img @click="Delete(scope.row)" style="width:32px;height:32px;margin:0 10px" src="../../assets/img/userman/del.png" alt="">
</el-tooltip>
</template>
</el-table-column>
</el-table>
<el-pagination style="text-align:right"
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:current-page.sync="msg.pageIndex"
:total="total">
</el-pagination>
</div>
</div>
</template>
<script>
export default {
name: "quickBuy",
data(){
return{
editState:false,
msg:{
pageIndex:1,
pageSize:15,
Name:'',
},
total:0,
tableData:[],
loading:false,
addMsg:{
Id:0,
Name:'',
},
msg1:{
Id:0,
Name:'',
},
}
},
created(){
this.getList();
},
methods:{
Delete(item){
let that=this;
that.$confirm('是否删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.apipost('/api/Order/RemoveCommentLabel',{Id:item.Id},
res => {
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message)
} else {
this.Error(res.data.message);
}
},
null
);
}).catch(() => {
});
},
Edit(row,num){
let addMsg=row;
this.apipost('/api/Order/SetCommentLabel',addMsg,
res => {
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message)
} else {
this.Error(res.data.message);
}
},
null
);
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
getList(){
this.loading=true;
this.apipost("/api/Order/GetCommentLabelPage", this.msg, res => {
this.loading=false;
if(res.data.resultCode==1){
this.total=res.data.data.count;
let pageData=res.data.data.pageData;
pageData.forEach(item=>{
item.SortNew=item.Sort;
item.editState=false;
})
this.tableData=pageData;
}
})
},
},
};
</script>
<style>
.quickBuy .content .searchInput{
border: 1px solid #DCDFE6;
border-radius: 4px;
}
.quickBuy .content .searchInput .el-input__inner{
border:none;outline:none;
height: 30px!important;
line-height: 30px!important;
}
.quickBuy .content .searchInput{
line-height: normal;
display: inline-table;
width: 100%;
border-collapse: separate;
border-spacing: 0;
width:250px;
margin-right: 20px;
}
.quickBuy .content{
background: #fff;
margin-top:10px;
padding: 20px;
box-sizing: border-box;
}
</style>
<template>
<div class="seeDetail">
<el-form label-width="180px">
<el-row>
<el-col :span="12">
<el-form-item label="用户:">
<img style="width:100px;height:100px;" :src="detailData.Photo" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="昵称:">{{detailData.Name}}</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="照片墙">
<div class="nav_Main" style="width: 500px;">
<div class="nav_IconContent">
<div v-for="(item, index) in detailData.AlbumList" :key="index"
style="margin-right: 20px; position: relative; ">
<div class="colapp-image" :style="{
backgroundImage: 'url(' + item + ')'
}"></div>
</div>
</div>
</div>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="微信号:">{{detailData.WechatNo}}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系方式:">{{detailData.ContactWay}}</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="手机号:">{{detailData.Moblie}}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="性别:">{{detailData.SexStr}}</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="体重:">{{detailData.Weight}}kg</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="身高:">{{detailData.Height}}cm</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="生日:">{{detailData.Birthday}}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="学历:">{{detailData.EducationTypeStr}}</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="婚姻:">{{detailData.MarriageStr}}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="房产:">{{detailData.HouseInfoStr}}</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="车产:">{{detailData.CarInfoStr}}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="年收入:">{{detailData.YearMoneyTypeStr}}</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="是否显示用户资料:">{{detailData.IsShow==1?'是':'否'}}</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="可查看微信次数:">{{detailData.LookTimes}}</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="真实姓名:">
{{detailData.RealName}}
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="身份证号:">{{detailData.IDCardNo}}</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="职业类型:">
{{detailData.Industry}}
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="毕业学校:">{{detailData.SchoolInfo}}</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="所属分组:">
<el-tag v-for="(item,index) in detailData.BelongGroupList" size="small" :key="index">{{item.GroupName}}
</el-tag>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="现居地:">
{{detailData.DWPName}}{{detailData.DWCName}}{{detailData.DWDName}}
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="自我描述:">
{{detailData.About}}
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="家庭背景:">
{{detailData.FamilyInfo}}
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="业余爱好:">
{{detailData.Hobby}}
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="曾经旅游过的地方:">
{{detailData.ActivityRegion}}
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="理想的另一半是什么样的:">
{{detailData.HopeYou}}
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="期待的未来生活是怎样的:">
{{detailData.OtherInfo}}
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="最喜欢的一本书及原因:">
{{detailData.LikeBook}}
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="最喜欢的电影及原因:">
{{detailData.LikeTV}}
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="欣赏爱情:">
{{detailData.IdealLove}}
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</template>
<script>
export default {
props: ['detailData'],
data() {
return {};
},
methods: {
},
mounted() {
this.getgroupList();
}
};
</script>
<style>
.seeDetail {
height: 500px;
overflow: auto;
}
.seeDetail .imgList {
display: flex;
flex-wrap: wrap;
width: 100%;
}
.seeDetail .el-form-item__content {
margin-left: 0;
}
.seeDetail .nav_Main {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
}
.seeDetail .nav_IconContent {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
}
.seeDetail .colapp-image {
background-size: cover;
background-position: center center;
width: 100px;
height: 100px;
border-radius: 0%;
border:1px solid #e2e2e2;
}
</style>
......@@ -57,6 +57,22 @@
<el-radio v-model="addMsg.CommentGrade" :label="item.Id" v-for="(item,index) in templateList" :key="index">
{{item.Name}}</el-radio>
</el-form-item>
<el-form-item label="评价标签" prop="Is_Anonymity">
<el-select
style="margin-right: 10px"
v-model="multipleSelection"
multiple
placeholder="请选择"
>
<el-option
v-for="item in LabelIdList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="是否匿名" prop="Is_Anonymity">
<el-switch v-model="addMsg.Is_Anonymity" active-color="#409EFF" :active-value="1" :inactive-value="2">
</el-switch>
......@@ -123,6 +139,7 @@
CommentImgList: [],
Is_Show: 2,
Is_Anonymity: 2,
LabelIds:'',
},
msg: {
pageIndex: 1,
......@@ -136,15 +153,17 @@
tableData: [],
templateList: [],
platList: [],
LabelIdList:[],
changeState: false,
imgType: 1,
multipleSelection: [], //多选
};
},
created() {
this.getTemplate();
this.getList();
this.getplat();
this.GetCommentLabel();
},
methods: {
SelectId(msg) {
......@@ -165,6 +184,9 @@
this.imgType = num;
},
Save() {
if(this.multipleSelection){
this.addMsg.LabelIds=this.multipleSelection.join(',')
}
this.apipost("/api/order/SetGoodsCommentInfo", this.addMsg, res => {
if (res.data.resultCode == 1) {
this.CommonJump('evaluationMan')
......@@ -198,7 +220,11 @@
this.templateList = res.data.data;
})
},
GetCommentLabel() {
this.apipost("/api/order/GetCommentLabelList", {}, res => {
this.LabelIdList = res.data.data;
})
},
},
mounted() {
......
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