From ab5a0f0ec35a02ad32b610c595699da26a137444 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Thu, 09 May 2024 17:40:12 +0800
Subject: [PATCH] 防诈宣传添加类型
---
subPackage/counterfraud/add.vue | 69 ++++++++++++++++++++++
pages/home/index.vue | 105 +++++++++++++++++------------------
2 files changed, 119 insertions(+), 55 deletions(-)
diff --git a/pages/home/index.vue b/pages/home/index.vue
index bbe0e28..ba6afcf 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -251,7 +251,7 @@
</u-grid-item>
<!-- <block v-if="curSelectSite.categoryList[0].parentNo == 1601"> -->
- <u-grid-item @click="navToSchoolClockIn()" v-if="roleName == 'xyty'">
+ <!-- <u-grid-item @click="navToSchoolClockIn()" v-if="roleName == 'xyty'">
<view class="nav-item flex f-d-c a-i-c">
<u-icon name="/static/icon/nav-29.png" width="80rpx" height="80rpx"></u-icon>
<text class="nav-item-text f-26 mt-10">护学打卡</text>
@@ -271,23 +271,22 @@
height="80rpx"></u-icon>
<text class="nav-item-text f-26 mt-10">纠纷矛盾排查</text>
</view>
- </u-grid-item>
- <u-grid-item @click="navigatorPage('/subPackage/school/securityRecord')">
- <view class="nav-item flex f-d-c a-i-c">
- <u-icon name="/static/icon/nav-29.png" width="80rpx"
- height="80rpx"></u-icon>
- <text class="nav-item-text f-26 mt-10">校园安保检查</text>
- </view>
- </u-grid-item>
-
- </block>
- <u-grid-item v-if="roleName == 'xyzt'"
- @click="navigatorPage('/subPackage/school/troubleTaskList')">
+ </u-grid-item> -->
+ <u-grid-item @click="navigatorPage('/subPackage/school/securityRecord')">
<view class="nav-item flex f-d-c a-i-c">
<u-icon name="/static/icon/nav-29.png" width="80rpx" height="80rpx"></u-icon>
- <text class="nav-item-text f-26 mt-10">校园任务</text>
+ <text class="nav-item-text f-26 mt-10">校园安保检查</text>
</view>
</u-grid-item>
+
+ </block>
+ <u-grid-item v-if="roleName == 'xyzt'"
+ @click="navigatorPage('/subPackage/school/troubleTaskList')">
+ <view class="nav-item flex f-d-c a-i-c">
+ <u-icon name="/static/icon/nav-29.png" width="80rpx" height="80rpx"></u-icon>
+ <text class="nav-item-text f-26 mt-10">校园任务</text>
+ </view>
+ </u-grid-item>
</block>
</u-grid>
</view>
@@ -488,6 +487,33 @@
],
tabs: [{
+ name: '智慧物业',
+ list: [{
+ text: "选举调查",
+ icon: "/static/icon/nav-14.png",
+ path: "/subPackage/article/communityList?type=1"
+
+ },
+ {
+ text: "公益报名",
+ icon: "/static/icon/nav-13.png",
+ path: "/subPackage/article/signUpList?type=0"
+
+ },
+ {
+ text: "公共收益",
+ icon: "/static/icon/nav-15.png",
+ path: "/subPackage/article/list?type=1"
+
+ },
+ {
+ text: "反诈宣传",
+ icon: "/static/icon/nav-18.png",
+ path: "/subPackage/article/list?type=6"
+
+ }
+ ]
+ }, {
name: '公众服务',
list: [
// {
@@ -542,9 +568,10 @@
]
},
+ ],
- {
- name: '社区服务',
+ tabs2: [{
+ name: '智慧物业',
list: [{
text: "选举调查",
icon: "/static/icon/nav-14.png",
@@ -570,10 +597,7 @@
}
]
- }
- ],
-
- tabs2: [{
+ }, {
name: '公众服务',
list: [{
icon: "/static/icon/nav-20.png",
@@ -624,8 +648,12 @@
}
]
},
- {
- name: '社区服务',
+
+ ],
+
+
+ tabs3: [{
+ name: '智慧物业',
list: [{
text: "选举调查",
icon: "/static/icon/nav-14.png",
@@ -651,11 +679,7 @@
}
]
- }
- ],
-
-
- tabs3: [{
+ }, {
name: '公众服务',
list: [{
icon: "/static/icon/nav-20.png",
@@ -697,34 +721,7 @@
icon: "/static/icon/nav-13.png"
}]
},
- {
- name: '社区服务',
- list: [{
- text: "选举调查",
- icon: "/static/icon/nav-14.png",
- path: "/subPackage/article/communityList?type=1"
- },
- {
- text: "公益报名",
- icon: "/static/icon/nav-13.png",
- path: "/subPackage/article/signUpList?type=0"
-
- },
- {
- text: "公共收益",
- icon: "/static/icon/nav-15.png",
- path: "/subPackage/article/list?type=1"
-
- },
- {
- text: "反诈宣传",
- icon: "/static/icon/nav-18.png",
- path: "/subPackage/article/list?type=6"
-
- }
- ]
- }
],
diff --git a/subPackage/counterfraud/add.vue b/subPackage/counterfraud/add.vue
index 717a3f2..bb2e6db 100644
--- a/subPackage/counterfraud/add.vue
+++ b/subPackage/counterfraud/add.vue
@@ -43,7 +43,6 @@
:label="item.name" :name="item.id">
</u-radio>
</u-radio-group>
-
</u-form-item>
<u-form-item label="是否打开预警功能" labelWidth="120" prop="isOpenAlarm">
<u-radio-group v-model="info.isOpenAlarm">
@@ -52,6 +51,33 @@
</u-radio>
</u-radio-group>
</u-form-item>
+
+ <u-form-item label="是否接受过其他反诈宣防内容" labelWidth="120" prop="isOther">
+ <u-radio-group v-model="info.isOther">
+ <u-radio @change="radioChange" :customStyle="{marginBottom: '8px'}"
+ v-for="(item, index) in statusList" :key="index" :label="item.name" :name="item.id">
+ </u-radio>
+ </u-radio-group>
+ </u-form-item>
+
+ <u-form-item v-if="isShowOtherId" class="form-item" labelWidth="100" label="反诈宣防类别:"
+ :required="isRequired" :disabled="isDisabled" prop="otherId">
+ <view class="flex j-c-s-b a-i-c" v-if="!currentId" @click="showNotSwindleTypePicker= true">
+ <u-input border="none" v-model="notSwindleValue" disabled disabledColor="#ffffff"
+ placeholder="请选择">
+ </u-input>
+ <u-icon slot="right" name="arrow-right"></u-icon>
+ </view>
+ <view class="f-30" v-if="currentId">
+ {{notSwindleValue}}
+ </view>
+ </u-form-item>
+
+ <u-picker :defaultIndex="notSwindleTypeIndex" :closeOnClickOverlay="true"
+ :show="showNotSwindleTypePicker" :columns="[notSwindleTypeList]"
+ @close="showNotSwindleTypePicker = false" @cancel="showNotSwindleTypePicker = false" keyName="name"
+ @confirm="confirmNotSwindleType"></u-picker>
+
</view>
<view class="upload bgc-ff">
<view class="f-28">宣防佐证照片</view>
@@ -210,6 +236,12 @@
form: {
images: []
},
+ currentId: "",
+ showNotSwindleTypePicker: false,
+ notSwindleValue: '',
+ isDisabled: false,
+ isShowOtherId: false,
+ notSwindleTypeList: [],
info: {
// name: "",
// phone: "",
@@ -282,6 +314,8 @@
this.getDetail(option.id)
}, 200)
}
+ //反诈类别
+ this.getAllBizDict();
},
onReady() {
@@ -290,6 +324,39 @@
},
methods: {
+ radioChange(n) {
+ if (n == 2) {
+ this.isShowOtherId = true
+ } else {
+ this.isShowOtherId = false
+ }
+ console.log('radioChange', n);
+ },
+ async getAllBizDict() {
+ //反诈类别
+ await this.getBizDict('antiFraud', this.notSwindleTypeList);
+ },
+ // 获取业务字典
+ async getBizDict(code, list) {
+ const param = {
+ code: code
+ }
+ const res = await bizDictionary(param)
+ res.data.forEach(e => {
+ list.push({
+ name: e.dictValue,
+ value: Number(e.dictKey)
+ })
+ })
+ },
+
+ //选择无诈类别
+ confirmNotSwindleType(e) {
+ // this.info.otherId = e.indexs;
+ this.notSwindleValue = e.value[0].name;
+ this.info.otherId = e.value[0].value;
+ this.showNotSwindleTypePicker = false;
+ },
getLocation() {
uni.chooseLocation({
--
Gitblit v1.9.3