Commit 7141158e authored by 黄奎's avatar 黄奎

1

parent 0f1a5ca5
......@@ -41,23 +41,23 @@
line-height: 40px;
}
/deep/.guestSign .el-checkbox-group .el-checkbox__inner {
/deep/.guestSign .el-checkbox .el-checkbox__inner {
width: 40px;
height: 40px;
line-height: 40px;
}
/deep/.guestSign .el-checkbox-group .el-checkbox__input {
/deep/.guestSign .el-checkbox .el-checkbox__inner {
line-height: 3;
}
/* 调整checkbox的选择框大小 */
/deep/.guestSign .el-checkbox-group .el-checkbox__inner::after {
/deep/.guestSign .el-checkbox .el-checkbox__inner::after {
width: 40px;
height: 40px;
}
/deep/.guestSign .el-checkbox-group .el-checkbox__label {
/deep/.guestSign .el-checkbox .el-checkbox__label {
font-size: 36px;
}
......@@ -104,10 +104,11 @@
</el-radio-group>
</template>
<template v-if="item.SurveyType === 3">
<el-checkbox-group v-model="item.SurveyOptionsList">
<el-checkbox v-for="(radio, rIndex) in item.SurveyOptionsList" :label="radio.ID" :key="rIndex">
{{radio.OptionsName}}</el-checkbox>
</el-checkbox-group>
<el-checkbox v-for="(radio, rIndex) in item.SurveyOptionsList" v-model="radio.IsCheckS" :label="radio.ID"
:key="rIndex">
{{radio.OptionsName}}</el-checkbox>
</template>
<template v-if="item.SurveyType === 4">
<el-input type="textarea" :rows="2" :placeholder="$t('fnc.qsrneirong')" v-model="item.TextContent">
......@@ -221,8 +222,18 @@
item.OrderID = this.qMsg.OrderId;
if (item.SurveyType === 2 || item.SurveyType === 3) {
item.SurveyOptionsList.forEach(y => {
if (item.ScoreNum == y.ID) {
y.IsCheck = "1";
//单选
if (item.SurveyType == 2) {
if (item.ScoreNum == y.ID) {
y.IsCheck = "1";
}
}
//多选
if (item.SurveyType == 3) {
y.IsCheck = "0";
if (y.IsCheckS) {
y.IsCheck = "1";
}
}
})
item.ScoreNum = 0;
......
......@@ -21,7 +21,7 @@
postMsg: {
type: 1, //1-手机号码验证登录,2-护照号码验证登录
//E75385750 13970261014
guestMobile: "13970261014", //1-为手机号码,2-护照号码
guestMobile: "13088987863", //1-为手机号码,2-护照号码
TCID: 21633
},
qMsg: {
......@@ -29,7 +29,7 @@
GuestId: 0,
SurName: "", //中文姓
Sex: 0, //性别 1-男 2-女
OrderId:0
OrderId: 0
}
};
},
......@@ -53,20 +53,22 @@
if (res.data.resultCode == 1) {
var tempData = res.data.data;
console.log(tempData);
this.qMsg.GuestId = tempData[0].Id;
this.qMsg.SurName = tempData[0].SurName;
this.qMsg.Sex = tempData[0].Sex;
this.qMsg.OrderId=tempData[0].OrderId;
this.$router.push({
name: "guestSign",
query: {
TCID: this.qMsg.TCID,
GuestId: this.qMsg.GuestId,
SurName: this.qMsg.SurName,
Sex: this.qMsg.Sex,
OrderId:this.qMsg.OrderId
}
})
if (tempData && tempData.length > 0) {
this.qMsg.GuestId = tempData[0].Id;
this.qMsg.SurName = tempData[0].SurName;
this.qMsg.Sex = tempData[0].Sex;
this.qMsg.OrderId = tempData[0].OrderId;
this.$router.push({
name: "guestSign",
query: {
TCID: this.qMsg.TCID,
GuestId: this.qMsg.GuestId,
SurName: this.qMsg.SurName,
Sex: this.qMsg.Sex,
OrderId: this.qMsg.OrderId
}
})
}
}
},
err => {}
......
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