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

1

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