@@ -48,6 +40,7 @@ import {mapState} from 'vuex'
export default {
name: "chooseUser",
+ appName: "条件选择",
data() {
return {
value: '',
@@ -62,12 +55,16 @@ export default {
},
computed: {
...mapState(['user']),
- moreText() {
- if (this.userList.length) return '已选择'
- },
- moreTextDept() {
- if (this.deptList.length) return '已选择'
- },
+ deptUserList: {
+ set(v) {
+ this.userList = v.filter(e => e.kind == 'user')
+ this.deptList = v.filter(e => e.kind == 'dept')
+ },
+ get() {
+ let {userList, deptList} = this
+ return [userList, deptList].flat()
+ }
+ }
},
methods: {
getTagList() {
@@ -75,10 +72,7 @@ export default {
if (res?.code == 0) {
res.data.records.map((item) => {
item.tagList.map((items) => {
- items.isCheck = false
- if (this.tagIdList.includes(items.id)) {
- items.isCheck = true
- }
+ items.isCheck = this.tagIdList.includes(items.id);
})
})
this.tagList = res.data.records
@@ -281,5 +275,8 @@ export default {
font-size: 28px !important;
}
+ .right {
+ float: right;
+ }
}
diff --git a/src/project/police/AppMessageNotification/components/img/gird--select-icon.png b/src/project/police/AppMessageNotification/components/img/gird--select-icon.png
new file mode 100644
index 00000000..205144d2
Binary files /dev/null and b/src/project/police/AppMessageNotification/components/img/gird--select-icon.png differ
diff --git a/src/project/police/AppMessageNotification/components/img/tx@2x.png b/src/project/police/AppMessageNotification/components/img/tx@2x.png
new file mode 100644
index 00000000..d9620e08
Binary files /dev/null and b/src/project/police/AppMessageNotification/components/img/tx@2x.png differ
diff --git a/src/project/police/AppMessageNotification/selectDeptUser.vue b/src/project/police/AppMessageNotification/selectDeptUser.vue
new file mode 100644
index 00000000..288cedfe
--- /dev/null
+++ b/src/project/police/AppMessageNotification/selectDeptUser.vue
@@ -0,0 +1,281 @@
+
+
+
+
+
+
+