Browse Source

feat: 填写用户信息调接口

develop
song 4 years ago
parent
commit
a8f826772a
  1. 3
      CHANGELOG.md
  2. 280
      src/components/ConfigInfo/components/Info.vue
  3. 91
      src/components/ConfigInfo/components/config.js
  4. 8
      src/pagesUser/phone-bind/phone-bind.vue
  5. 209
      src/pagesYanyuan/add-info/add-info.vue

3
CHANGELOG.md

@ -1,4 +1,4 @@
# 0.1.0 (2021-11-10)
# 0.1.0 (2021-11-11)
### 🌟 新功能
范围|描述|commitId
@ -229,6 +229,7 @@
- | 组件文件夹新建 | [17bb8c9](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/17bb8c9)
- | 组件文件夹新建 | [1421504](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/1421504)
- | 角色栏文字颜色修改 | [215c6b3](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/215c6b3)
- | 解决error | [1a6e513](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/1a6e513)
- | 解决警告 | [c932b09](https://dd.tall.wiki/gitea/binbin0314/yanyuan_js/commits/c932b09)

280
src/components/ConfigInfo/components/Info.vue

@ -22,6 +22,13 @@
{{ radioItem }}
</u-radio>
</u-radio-group>
<u-input
v-if="colItem.showOther"
:placeholder="`请输入其他${colItem.name}`"
v-model="colItem.otherValue"
:clearable="false"
@blur="change(colItem.otherValue, index, itemIndex, 99)"
/>
</view>
<!-- 多选 -->
<view v-if="colItem.type === 5">
@ -36,9 +43,36 @@
>{{ checkboxItem.name }}
</u-checkbox>
</u-checkbox-group>
<u-input
v-if="colItem.showOther"
:placeholder="`请输入其他${colItem.name}`"
v-model="colItem.otherValue"
:clearable="false"
@blur="change(colItem.otherValue, index, itemIndex, 99)"
/>
</view>
<!-- 吸烟 -->
<!-- 失眠 -->
<view v-if="colItem.type === 10">
<u-radio-group v-model="colItem.value" class="flex flex-col" @change="change($event, index, itemIndex, colItem.type)">
<u-radio class="flex mb-1" :name="0"></u-radio>
<u-radio class="flex mb-1" :name="1">
<view class="flex flex-nowrap items-center">
每天能睡
<input
class="mx-1 w-12 h-6 text-center border-b"
placeholder="0"
v-model="colItem.value1"
:clearable="false"
type="number"
@change="changeInput(colItem.value1, index, itemIndex, 'value1')"
/>
小时
</view>
</u-radio>
</u-radio-group>
</view>
<!-- 吸烟 -->
<view v-if="colItem.type === 11">
<u-radio-group v-model="colItem.value" class="flex flex-col" @change="change($event, index, itemIndex, colItem.type)">
<u-radio class="flex mb-1 w-full" :name="0"></u-radio>
<u-radio class="flex mb-1" :name="1">
@ -50,7 +84,7 @@
v-model="colItem.value1"
:clearable="false"
type="number"
@change="change($event, index, itemIndex, colItem.type)"
@change="changeInput(colItem.value1, index, itemIndex, 'value1')"
/>
</view>
@ -64,7 +98,7 @@
v-model="colItem.value2"
:clearable="false"
type="number"
@change="change($event, index, itemIndex, colItem.type)"
@change="changeInput(colItem.value2, index, itemIndex, 'value2')"
/>
每天
<input
@ -73,14 +107,14 @@
:border="true"
v-model="colItem.value3"
type="number"
@change="change($event, index, itemIndex, colItem.type)"
@change="changeInput(colItem.value3, index, itemIndex, 'value3')"
/>
</view>
</u-radio>
</u-radio-group>
</view>
<!-- 饮酒 -->
<view v-if="colItem.type === 11">
<view v-if="colItem.type === 12">
<u-radio-group v-model="colItem.value" class="flex flex-col" @change="change($event, index, itemIndex, colItem.type)">
<u-radio class="flex mb-1" :name="0"></u-radio>
<u-radio class="flex mb-1" :name="1">
@ -88,19 +122,42 @@
曾经是但已经戒酒已戒
<input
class="mx-1 w-12 h-6 text-center border-b"
placeholder="0"
placeholder=" "
v-model="colItem.value1"
:clearable="false"
type="number"
@change="change($event, index, itemIndex, colItem.type)"
@change="changeInput(colItem.value1, index, itemIndex, 'value1')"
/>
</view>
</u-radio>
<u-radio class="flex mb-1" :name="2"></u-radio>
</u-radio-group>
<!-- 饮酒种类 -->
<view class="mt-2 flex flex-col" v-if="colItem.showClasses">
<view>饮酒种类</view>
<u-radio-group v-model="colItem.classesValue" class="my-2">
<u-radio
class="mb-2"
@change="changeInput($event, index, itemIndex, 'classesValue')"
v-for="(radioItem, classRadioIndex) in colItem.radioList"
:key="classRadioIndex"
:name="radioItem"
>
{{ radioItem }}
</u-radio>
</u-radio-group>
<u-input
v-if="colItem.showOther"
placeholder="请输入其他种类"
v-model="colItem.otherValue"
:clearable="false"
@blur="changeInput(colItem.otherValue, index, itemIndex, 'otherValue')"
/>
</view>
</view>
<!-- 饮茶 -->
<view v-if="colItem.type === 12">
<view v-if="colItem.type === 13">
<u-radio-group v-model="colItem.value" class="flex flex-col" @change="change($event, index, itemIndex, colItem.type)">
<u-radio class="flex mb-1" :name="0"></u-radio>
<u-radio class="flex mb-1" :name="1">
@ -112,7 +169,7 @@
v-model="colItem.value1"
:clearable="false"
type="number"
@change="change($event, index, itemIndex, colItem.type)"
@change="changeInput(colItem.value1, index, itemIndex, 'value1')"
/>
</view>
@ -126,12 +183,39 @@
v-model="colItem.value2"
:clearable="false"
type="number"
@change="change($event, index, itemIndex, colItem.type)"
@change="changeInput(colItem.value2, index, itemIndex, 'value2')"
/>
</view>
</u-radio>
</u-radio-group>
<!-- 饮茶种类 -->
<view class="mt-2 flex flex-col" v-if="colItem.showClasses">
<view>饮茶种类</view>
<u-radio-group v-model="colItem.classesValue" class="my-2">
<u-radio
class="mb-2"
@change="changeInput($event, index, itemIndex, 'classesValue')"
v-for="(radioItem, classIndex) in colItem.classesList"
:key="classIndex"
:name="radioItem"
>
{{ radioItem }}
</u-radio>
</u-radio-group>
<view>饮茶频率</view>
<u-radio-group v-model="colItem.frequencyValue" class="my-2">
<u-radio
class="mb-2"
@change="changeInput($event, index, itemIndex, 'frequencyValue')"
v-for="(radioItem, frequencyIndex) in colItem.frequencyList"
:key="frequencyIndex"
:name="radioItem"
>
{{ radioItem }}
</u-radio>
</u-radio-group>
</view>
</view>
</view>
</view>
@ -148,11 +232,19 @@
v-model="colItem.show"
mode="time"
:params="paramsDay"
:title="colItem.name"
></u-picker>
</view>
<!-- 数字输入框 -->
<view v-if="colItem.type === 3" class="pr-7">
<u-input placeholder="请输入" v-model="colItem.value" :clearable="false" type="number" input-align="right" />
<u-input
placeholder="请输入"
v-model="colItem.value"
:clearable="false"
type="number"
input-align="right"
@blur="change(colItem.value, index, itemIndex, colItem.type)"
/>
</view>
<!-- 单列下拉选框 -->
<view v-if="colItem.type === 4">
@ -165,7 +257,8 @@
mode="single-column"
:list="colItem.radioList"
@confirm="change($event, index, itemIndex, colItem.type)"
:default-value="[14]"
:default-value="[0]"
:title="colItem.name"
></u-select>
</view>
<!-- 日期: 年月日时 -->
@ -179,6 +272,7 @@
v-model="colItem.show"
mode="time"
:params="paramsHour"
:title="colItem.name"
></u-picker>
</view>
<!-- 多列下拉选框 -->
@ -211,6 +305,7 @@
mode="region"
v-model="colItem.show"
:params="paramsArea"
:title="colItem.name"
></u-picker>
</view>
</view>
@ -261,45 +356,146 @@ export default {
methods: {
changeShow(index, itemIndex) {
console.log('index, itemIndex: ', index, itemIndex);
this.infoList[index][itemIndex].show = !this.infoList[index][itemIndex].show;
},
change(e, index, itemIndex, type) {
console.log('e, index, itemIndex, type: ', e, index, itemIndex, type);
if (type === 2) {
// ()
const value = e.year + '-' + e.month + '-' + e.day;
this.infoList[index][itemIndex].value = value;
} else if (type === 4) {
//
this.infoList[index][itemIndex].value = e[0].value;
} else if (type === 5) {
//
let checkerList = this.infoList[index][itemIndex].value;
if (checkerList.length) {
const i = checkerList.findIndex(item => item === e.name);
if (i < 0) {
const info = this.infoList[index][itemIndex];
switch (type) {
case 2: {
// ()
const valueDay = e.year + '-' + e.month + '-' + e.day;
info.value = valueDay;
break;
}
case 4: {
//
info.value = e[0].value;
break;
}
case 5: {
//
let checkerList = info.value;
if (checkerList.length) {
const i = checkerList.findIndex(item => item === e.name);
if (i < 0) {
checkerList.push(e.name);
} else {
checkerList.splice(i, 1);
}
} else {
checkerList.push(e.name);
}
info.value = checkerList;
const otherIndex = checkerList.findIndex(checker => checker === '其他');
if (otherIndex !== -1) {
info.showOther = true;
} else {
checkerList.splice(i, 1);
info.showOther = false;
}
break;
}
case 6: {
// ()
const valueHour = e.year + '-' + e.month + '-' + e.day + '-' + e.hour;
info.value = valueHour;
break;
}
case 7: {
//
info.value = e[0].value + '/' + e[1].value;
break;
}
case 9: {
//
info.value = e.province.label + e.city.label;
info.hospitalCityId = e.city.value;
info.hospitalProvinceId = e.province.value;
break;
}
case 99: {
//
info.otherValue = e;
break;
}
default: {
info.value = e;
if (e === '否' || e === '未知' || e === '素菜') {
info.value = 0;
}
if (e === '是' || e === '男' || e === '荤菜') {
info.value = 1;
}
if (e === '女' || e === '不知道') {
info.value = 2;
}
if (type === 1) {
if (e === '其他') {
info.showOther = true;
} else {
info.showOther = false;
}
}
//
this.setEmpty(e, info, index, itemIndex);
if (type === 12 || type === 13) {
if (e === 2) {
info.showClasses = true;
} else {
info.showClasses = false;
}
}
break;
}
}
this.$emit('saveInfo', info);
},
changeInput(e, index, itemIndex, type) {
const info = this.infoList[index][itemIndex];
if (type === 'classesValue') {
if (e === '其他') {
info.showOther = true;
} else {
checkerList.push(e.name);
info.showOther = false;
}
}
info[type] = e;
this.$emit('saveInfo', info);
},
//
setEmpty(e, info, index, itemIndex) {
if (e === 0) {
if (info.value1) {
info.value1 = null;
this.changeInput('', index, itemIndex, 'value1');
}
if (info.value2) {
info.value2 = null;
this.changeInput('', index, itemIndex, 'value2');
}
if (info.value3) {
info.value3 = null;
this.changeInput('', index, itemIndex, 'value3');
}
}
if (e === 1) {
if (info.value2) {
info.value2 = null;
this.changeInput('', index, itemIndex, 'value2');
}
if (info.value3) {
info.value3 = null;
this.changeInput('', index, itemIndex, 'value3');
}
}
if (e === 2) {
if (info.value1) {
info.value1 = null;
this.changeInput('', index, itemIndex, 'value1');
}
this.infoList[index][itemIndex].value = checkerList;
} else if (type === 6) {
// ()
const value = e.year + '-' + e.month + '-' + e.day + '-' + e.hour;
this.infoList[index][itemIndex].value = value;
} else if (type === 7) {
//
this.infoList[index][itemIndex].value = e[0].value + '/' + e[1].value;
} else if (type === 9) {
//
this.infoList[index][itemIndex].value = e.province.label + e.city.label;
} else {
this.infoList[index][itemIndex].value = e;
}
},
},

91
src/components/ConfigInfo/components/config.js

@ -14,20 +14,22 @@ const bloodPressure = () => {
/**
* 基本信息
* 展示类型: showType: 1 标题+折叠, 2 直接展示
* 试题类型, type:1 单选,2 日期(年月日),3 数字输入框,4 单列下拉框,5 多选,6 日期(年月日时),7 多列下拉选框, 8 文本输入框 9 多列地区选择 11 吸烟 12 饮酒 13 饮茶
* 试题类型, type:1 单选,2 日期(年月日),3 数字输入框,4 单列下拉框,5 多选,6 日期(年月日时),7 多列下拉选框, 8 文本输入框, 9 多列地区选择, 11 吸烟11 饮酒12 饮茶, 13 失眠, 99 其他
*/
export const infoList = [
[
{
name: '性别',
label: 'sex',
showType: 1,
type: 1,
radioList: ['男', '女'],
radioList: ['男', '女', '未知'],
value: null,
show: false,
},
{
name: '出生日期',
label: 'birthDate',
showType: 2,
type: 2,
value: null,
@ -35,6 +37,7 @@ export const infoList = [
},
{
name: '身高(cm)',
label: 'height',
showType: 2,
type: 3,
value: null,
@ -42,6 +45,7 @@ export const infoList = [
},
{
name: '体重(kg)',
label: 'weight',
showType: 2,
type: 3,
value: null,
@ -49,22 +53,29 @@ export const infoList = [
},
{
name: '职业',
label: 'jobTitle',
showType: 1,
type: 1,
radioList: ['干部', '军人', '技术人员', '农民', '工人', '运动员', '个体商业人员', '其他'],
value: null,
show: false,
showOther: false,
otherValue: null,
},
{
name: '受教育程度',
label: 'educateStatus',
showType: 1,
type: 1,
radioList: ['文盲', '小学', '初中', '高中或中专', '大学或大专', '大学以上', '其他'],
value: null,
show: false,
showOther: false,
otherValue: null,
},
{
name: '受教育年限(年)',
label: 'educateDate',
showType: 2,
type: 4,
radioList: [
@ -102,10 +113,20 @@ export const infoList = [
value: null,
show: false,
},
{
name: '长期居住地',
label: 'abodePlace',
showType: 1,
type: 1,
radioList: ['城市', '农村', '郊区'],
value: null,
show: false,
},
],
[
{
name: '出现认知障碍时间',
label: 'appearTime',
showType: 2,
type: 6,
value: null,
@ -113,6 +134,7 @@ export const infoList = [
},
{
name: '首次诊断痴呆时间',
label: 'diagnoseTime',
showType: 2,
type: 6,
value: null,
@ -120,16 +142,20 @@ export const infoList = [
},
{
name: '诊断',
label: 'diagnoseResult',
showType: 1,
type: 1,
radioList: ['阿尔茨海默病', '路易体痴呆', '额颞痴呆', '血管性痴呆', '混合性痴呆', '其他'],
value: null,
show: false,
showOther: false,
otherValue: null,
},
],
[
{
name: '血压(mmHg)',
label: 'BloodPressure',
showType: 2,
type: 7,
value: null,
@ -138,6 +164,7 @@ export const infoList = [
},
{
name: '血脂(低密度脂蛋白)',
label: 'bloodFat',
showType: 2,
type: 3,
value: null,
@ -147,6 +174,7 @@ export const infoList = [
[
{
name: '体力活动',
label: 'physicalAct',
showType: 1,
type: 1,
radioList: ['强', '中', '低'],
@ -155,16 +183,18 @@ export const infoList = [
},
{
name: 'APOE基因',
label: 'apoeGene',
showType: 1,
type: 1,
radioList: ['是', '否', '不知道'],
value: null,
value: '否',
show: false,
},
],
[
{
name: '疾病史',
label: 'diseasesRecord',
showType: 1,
type: 5,
checkList: [
@ -183,9 +213,12 @@ export const infoList = [
],
value: [],
show: false,
showOther: false,
otherValue: null,
},
{
name: '亲属疾病史(祖父母;外祖父母;父母)',
label: 'relativeDiseasesRecord',
showType: 1,
type: 5,
checkList: [
@ -204,22 +237,26 @@ export const infoList = [
],
value: [],
show: false,
showOther: false,
otherValue: null,
},
],
[
{
name: '失眠',
label: 'isInsomnic',
showType: 1,
type: 1,
radioList: ['是', '否'],
value: null,
type: 10,
value: 0,
value1: null,
show: false,
},
{
name: '吸烟',
label: 'isSmoke',
showType: 1,
type: 10,
value: null,
type: 11,
value: 0,
value1: null,
value2: null,
value3: null,
@ -227,46 +264,65 @@ export const infoList = [
},
{
name: '饮酒',
label: 'isDrink',
showType: 1,
type: 11,
value: null,
type: 12,
value: 0,
value1: null,
show: false,
showClasses: false,
classesValue: null,
radioList: ['白酒', '啤酒', '红酒', '其他'],
showOther: false,
otherValue: null,
},
{
name: '饮茶',
label: 'isTea',
showType: 1,
type: 12,
value: null,
type: 13,
value: 0,
value1: null,
value2: null,
show: false,
showClasses: false,
classesValue: null,
classesList: ['绿茶', '红茶', '不定'],
frequencyValue: null,
frequencyList: ['偶尔', '每日', '每周1~2次', '每周3~4次', '每周5次'],
},
{
name: '饮食是否重口',
label: 'isStrongFlavour',
showType: 1,
type: 1,
radioList: ['是', '否'],
value: null,
value: '否',
show: false,
},
{
name: '饮食喜好',
label: 'isLikeMeat',
showType: 1,
type: 1,
radioList: ['荤菜', '素菜'],
radioList: ['素菜', '荤菜'],
value: null,
show: false,
},
{
name: '炒菜放油多少',
label: 'isMoreOil',
showType: 1,
type: 1,
radioList: ['是', '否'],
value: null,
value: '否',
show: false,
},
],
[
{
name: '就诊医院',
label: 'clinicHospital',
showType: 2,
type: 8,
value: null,
@ -274,6 +330,7 @@ export const infoList = [
},
{
name: '就诊医生',
label: 'clinicDoctor',
showType: 2,
type: 8,
value: null,
@ -281,13 +338,17 @@ export const infoList = [
},
{
name: '医院地址',
label: 'hospitalAddress',
showType: 2,
type: 9,
value: null,
show: false,
hospitalCityId: null,
hospitalProvinceId: null,
},
{
name: '就诊科室',
label: 'clinicOffice',
showType: 2,
type: 4,
radioList: [

8
src/pagesUser/phone-bind/phone-bind.vue

@ -48,6 +48,7 @@
<script>
import UserAuthMixin from '@/mixins/userAuth';
import { mapMutations } from 'vuex';
export default {
mixins: [UserAuthMixin],
@ -104,6 +105,8 @@ export default {
this.$refs.uForm.setRules(this.rules);
},
methods: {
...mapMutations('user', ['setToken', 'setUser']),
submit() {
this.$refs.uForm.validate(async valid => {
if (valid) {
@ -213,13 +216,14 @@ export default {
async isMerge(merge) {
try {
const data = await this.$u.api.phoneMerge(this.model.phone, merge);
console.log(data);
this.setUser(data);
this.setToken(data.token);
this.$refs.uTips.show({
title: '手机号合并成功, 即将跳转上一页',
type: 'success',
duration: '3000',
});
setTimeout(() => uni.navigateBack(), 2000);
setTimeout(() => uni.redirectTo({ url: '/pages/index/index' }), 2000);
} catch (error) {
this.$refs.uTips.show({
title: error.msg || '手机号合并失败',

209
src/pagesYanyuan/add-info/add-info.vue

@ -1,17 +1,220 @@
<template>
<view>
<Info class="bg-white" />
<u-top-tips ref="uTips" type="success"></u-top-tips>
<Info class="bg-white" @saveInfo="saveInfo" />
<view class="p-4 bg">
<u-button type="primary" class="w-full" @click="submit">完成</u-button>
</view>
<EndLine />
</view>
</template>
<script>
import Info from 'components/ConfigInfo/components/Info';
export default { components: { Info } };
import { infoList } from 'components/ConfigInfo/components/config';
export default {
components: { Info },
data() {
return { params: {}, infoList };
},
methods: {
//
saveInfo(info) {
this.params[info.label] = info.value;
//
if (info.value === '其他' && info.showOther && info.otherValue) {
this.params[info.label] = info.otherValue;
}
//
if (info.showType === 1 && info.type === 5) {
let arrValue = '';
if (info.showOther && info.otherValue) {
const index = info.value.indexOf('其他');
info.value.splice(index, 1, '其他:' + info.otherValue);
}
arrValue = info.value.toString();
this.params[info.label] = arrValue;
}
//
if (info.label === 'BloodPressure') {
const arr = info.value.split('/');
this.params.minBloodPressure = arr[0];
this.params.maxBloodPressure = arr[1];
}
//
if (info.type === 9) {
this.params.hospitalCityId = info.hospitalCityId;
this.params.hospitalProvinceId = info.hospitalProvinceId;
}
//
if (info.type === 10) {
this.params.insomnicPeriod = info.value1;
}
//
if (info.type === 11) {
this.params.quitPeriod = info.value1;
this.params.sustainPeriod = info.value2;
this.params.averageNum = info.value3;
}
//
if (info.type === 12) {
this.params.abstinencePeriod = info.value1;
if (info.classesValue) {
this.params.drinkType = info.classesValue;
if (info.classesValue === '其他' && info.showOther && info.otherValue) {
this.params.drinkType = info.otherValue;
}
}
}
//
if (info.type === 13) {
this.params.quitTea = info.value1;
this.params.continuePeriod = info.value2;
this.params.teaType = info.classesValue;
this.params.teaPeriod = info.frequencyValue;
}
},
/**
* 提交用户信息
* @param { object } params
*/
async submit() {
try {
const params = this.params;
if (!this.validationRequired(params)) return;
await this.$u.api.addTrainee(params);
this.$refs.uTips.show({
title: '用户信息添加成功, 即将跳转日历页',
type: 'success',
duration: '2000',
});
setTimeout(() => {
uni.redirectTo({ url: '/pages/index/index' });
this.setEmptyInfo();
}, 2000);
} catch (error) {
console.error('error: ', error);
}
},
//
validationRequired() {
let isComplete = true;
for (let i = 0; i < this.infoList.length; i++) {
const info = this.infoList[i];
for (let j = 0; j < info.length; j++) {
const item = info[j];
if (item.type !== 5) {
if (item.value === null) {
this.$t.ui.showToast(`请填写${item.name}`);
isComplete = false;
break;
}
if (item.showOther && !item.otherValue) {
this.$t.ui.showToast(`请填写${item.name}`);
isComplete = false;
break;
}
if (item.type === 10 || item.type === 11 || item.type === 12 || item.type === 13) {
if (item.value === 1 && !item.value1) {
this.$t.ui.showToast(`请填写${item.name}`);
isComplete = false;
break;
}
}
if (item.showClasses && !item.classesValue) {
this.$t.ui.showToast(`请填写${item.name}种类`);
isComplete = false;
break;
}
if (item.type === 13) {
if (item.showClasses && !item.frequencyValue) {
this.$t.ui.showToast(`请填写${item.name}频率`);
isComplete = false;
break;
}
}
if (item.type === 11) {
if (item.value === 2) {
if (!item.value2) {
this.$t.ui.showToast(`请填写烟龄`);
isComplete = false;
break;
}
if (!item.value3) {
this.$t.ui.showToast(`请填写每天抽烟数量`);
isComplete = false;
break;
}
}
}
if (item.type === 13) {
if (item.value === 2 && !item.value2) {
this.$t.ui.showToast(`请填写持续喝茶时长`);
isComplete = false;
break;
}
}
} else {
if (item.value.length === 0) {
this.$t.ui.showToast(`请填写${item.name}`);
isComplete = false;
break;
}
if (item.showOther && !item.otherValue) {
this.$t.ui.showToast(`请填写其他${item.name}`);
isComplete = false;
break;
}
}
}
if (!isComplete) {
break;
}
}
if (isComplete) return true;
},
//
setEmptyInfo() {
this.infoList.forEach(info => {
info.forEach(item => {
item.value = null;
if (item.show) {
item.show = false;
}
if (item.otherValue) {
item.otherValue = null;
}
if (item.value1) {
item.value1 = null;
}
if (item.value2) {
item.value2 = null;
}
if (item.value3) {
item.value3 = null;
}
if (item.classesValue) {
item.classesValue = null;
}
if (item.frequencyValue) {
item.frequencyValue = null;
}
});
});
},
},
};
</script>
<style lang="scss" scoped>
page {
.bg {
background-color: $uni-bg-color-grey;
}
</style>

Loading…
Cancel
Save