智能排查

main
zhangqun 11 months ago
parent 234f0e6ac4
commit 69cc513417
  1. 2
      pages.json
  2. 12
      pages/index/detail.vue

@ -39,7 +39,7 @@
{ {
"path": "pages/index/detail", "path": "pages/index/detail",
"style": { "style": {
"navigationBarTitleText": "智排查", "navigationBarTitleText": "智排查",
"navigationStyle": "default", "navigationStyle": "default",
"navigationBarBackgroundColor": "#3567c1", "navigationBarBackgroundColor": "#3567c1",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",

@ -93,7 +93,7 @@
> >
</view> </view>
<view <view
v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 0" v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 1"
style="display: flex; flex-wrap: wrap;" style="display: flex; flex-wrap: wrap;"
> >
<u-checkbox-group <u-checkbox-group
@ -114,7 +114,7 @@
</u-checkbox-group> </u-checkbox-group>
</view> </view>
<view <view
v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 1" v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 0"
style="display: flex; flex-wrap: wrap;" style="display: flex; flex-wrap: wrap;"
> >
<view v-for="(item, index) in item.answerOptions" :key="index" <view v-for="(item, index) in item.answerOptions" :key="index"
@ -141,7 +141,7 @@
</view> </view>
<view <view
class="btnBox" class="btnBox"
v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 0" v-if="item.answerOptions && item.answerOptions.length > 0 && item.optionType == 1"
> >
<view class="btn" @click="handleGroup(item)">确认</view> <view class="btn" @click="handleGroup(item)">确认</view>
<view class="btn" @click="handleGroup2(i)">清空</view> <view class="btn" @click="handleGroup2(i)">清空</view>
@ -643,10 +643,10 @@ console.log({
handleGroup(item) { handleGroup(item) {
console.log(item) console.log(item)
let text = ""; let text = "";
if (this.optionType) { if (item.optionType) {
} else {
text = item.checkboxValue1.join(","); text = item.checkboxValue1.join(",");
// text = item; } else {
text = item;
} }
this.handleSend(text); this.handleSend(text);
}, },

Loading…
Cancel
Save