|
@@ -8,41 +8,41 @@
|
|
|
<span class="c-text-color c-text-14">{{ equipmentName }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <van-cell center :title="checked ? $t('DIYFlower.openStatus') : $t('DIYFlower.closeStatus')" size="large"
|
|
|
- title-style="color: #404d74;">
|
|
|
- <template #right-icon>
|
|
|
- <van-switch :model-value="checked" @update:model-value="updateStatus" size="24" />
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-collapse v-if="checked" v-model="activeNames">
|
|
|
- <van-collapse-item :title="$t('DIYFlower.shape')" name="1" size="large" title-style="color: #404d74;">
|
|
|
- <van-row class="goods">
|
|
|
- <van-col v-for="(item, index) in shapeData" :key="index" class="goodsCon o-mlr-5 o-mb-20" span="11">
|
|
|
- <div class="l-flex-RC">
|
|
|
- <van-image width="50" height="50" fit="contain" :src="showSugerPhoto(item)" />
|
|
|
- <span class="o-ml-10" style="color: #000;word-wrap: break-word; width: 50px;">{{ item.name }}</span>
|
|
|
- <van-checkbox class="o-ml-10" shape="square" v-model="shapeStates[index]" @change="shapeChange(index)" />
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- </van-row>
|
|
|
- </van-collapse-item>
|
|
|
- <van-collapse-item :title="$t('DIYFlower.sugar')" name="2" size="large" title-style="color: #404d74;">
|
|
|
- <van-row class="goods">
|
|
|
- <van-col v-for="(item, index) in sugarData" :key="index" class="goodsCon o-mlr-5 o-mb-20" span="11">
|
|
|
- <div class="l-flex-RC">
|
|
|
- <van-image width="50" height="50" fit="contain" :src="showSugerPhoto(item)" />
|
|
|
- <span class="o-ml-10" style="color: #000;word-wrap: break-word; width: 50px;">{{ item.name }}</span>
|
|
|
- <van-checkbox class="o-ml-10" shape="square" v-model="sugarStates[index]" @change="sugarChange(index)" />
|
|
|
- </div>
|
|
|
- </van-col>
|
|
|
- </van-row>
|
|
|
- </van-collapse-item>
|
|
|
- </van-collapse>
|
|
|
- <div class="l-flex-center" v-if="checked" style="margin: 16px">
|
|
|
- <van-button round block class="Btn" type="primary" native-type="submit" @click="updateShowGoods()">
|
|
|
- {{ $t('device.submitAndPushDeviceUpdates') }}
|
|
|
- </van-button>
|
|
|
+ <van-cell center :title="checked ? $t('DIYFlower.openStatus') : $t('DIYFlower.closeStatus')" size="large"
|
|
|
+ title-style="color: #404d74;">
|
|
|
+ <template #right-icon>
|
|
|
+ <van-switch :model-value="checked" @update:model-value="updateStatus" size="24" />
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ <van-collapse v-if="checked" v-model="activeNames">
|
|
|
+ <van-collapse-item :title="$t('DIYFlower.shape')" name="1" size="large" title-style="color: #404d74;">
|
|
|
+ <van-row class="goods">
|
|
|
+ <van-col v-for="(item, index) in shapeData" :key="index" class="goodsCon o-mlr-5 o-mb-20" span="11">
|
|
|
+ <div class="l-flex-RC">
|
|
|
+ <van-image width="50" height="50" fit="contain" :src="showSugerPhoto(item)" />
|
|
|
+ <span class="o-ml-10" style="color: #000;word-wrap: break-word; width: 50px;">{{ item.name }}</span>
|
|
|
+ <van-checkbox class="o-ml-10" shape="square" v-model="shapeStates[index]" @change="shapeChange(index)" />
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ </van-row>
|
|
|
+ </van-collapse-item>
|
|
|
+ <van-collapse-item :title="$t('DIYFlower.sugar')" name="2" size="large" title-style="color: #404d74;">
|
|
|
+ <van-row class="goods">
|
|
|
+ <van-col v-for="(item, index) in sugarData" :key="index" class="goodsCon o-mlr-5 o-mb-20" span="11">
|
|
|
+ <div class="l-flex-RC">
|
|
|
+ <van-image width="50" height="50" fit="contain" :src="showSugerPhoto(item)" />
|
|
|
+ <span class="o-ml-10" style="color: #000;word-wrap: break-word; width: 50px;">{{ item.name }}</span>
|
|
|
+ <van-checkbox class="o-ml-10" shape="square" v-model="sugarStates[index]" @change="sugarChange(index)" />
|
|
|
+ </div>
|
|
|
+ </van-col>
|
|
|
+ </van-row>
|
|
|
+ </van-collapse-item>
|
|
|
+ </van-collapse>
|
|
|
+ <div class="l-flex-center" v-if="checked" style="margin: 16px">
|
|
|
+ <van-button round block class="Btn" type="primary" native-type="submit" @click="updateShowGoods()">
|
|
|
+ {{ $t('device.submitAndPushDeviceUpdates') }}
|
|
|
+ </van-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -85,9 +85,9 @@ export default {
|
|
|
const name = route.query.name || "";
|
|
|
const diyFlowerStatus = route.query.diyFlowerStatus || "";
|
|
|
|
|
|
+ cofficentForm.equipmentId = id;
|
|
|
if (diyFlowerStatus == "1") {
|
|
|
checked.value = true;
|
|
|
- cofficentForm.equipmentId = id;
|
|
|
getList();
|
|
|
}
|
|
|
if (id) {
|