diff --git a/project/pingchang/apps/AppWishfulThinking/components/Add.vue b/project/pingchang/apps/AppWishfulThinking/components/Add.vue index 3132a8ee..1e3cd257 100644 --- a/project/pingchang/apps/AppWishfulThinking/components/Add.vue +++ b/project/pingchang/apps/AppWishfulThinking/components/Add.vue @@ -7,10 +7,10 @@ - + @@ -175,11 +146,9 @@ export default { return { forwardForm: { content: '', - girdId: '', - girdName: '', - girdMemberId: '', - girdMemberName: '', - name: '' + user: [], + name: '', + files: [] }, isLoading: true, name: '', @@ -190,9 +159,6 @@ export default { userList: [], processList: [], dictList: [], - defaultProps: { - label: 'girdName' - }, isShowForward: false, tree: [], gridInfo: {}, @@ -203,7 +169,7 @@ export default { content: [], eventStatus: '2' }, - evaluation: {} + evaluation: {}, } }, @@ -225,7 +191,7 @@ export default { methods: { getDetail() { - this.instance.post('/app/appclapeventinfo/queryDetailById', null, { + this.instance.post('/app/appclapeventinfopingchang/queryDetailById', null, { params: {id: this.$route.query.id} }).then(res => { if (res?.data) { @@ -242,56 +208,27 @@ export default { this.isLoading = false }) }, - - getGirdList() { - return this.instance.post(`/app/appgirdinfo/listAllByTop`).then(res => { - if (res?.data) { - return this.tree = this.formatList([res.data]) - } - }) + onChooseUser(v) { + console.log(v) + this.forwardForm.user = v + this.forwardForm.name = v[0].name }, - onClose() { this.form.files = [] this.form.groupId = '' this.form.groupName = '' this.form.content = '' this.form.eventStatus = '' + this.forwardForm.content = '' - this.forwardForm.girdId = '' - this.forwardForm.girdName = '' - this.forwardForm.girdMemberId = '' - this.forwardForm.girdMemberName = '' + this.forwardForm.user = [] + this.forwardForm.files = [] this.forwardForm.name = '' }, - - formatList(list) { - for (let item of list) { - item.children = [item.girdList, item.girdMemberList?.map(e => ({ - ...e, isUser: true, girdName: item.girdName, - girdId: item.id - })) || []].flat() - if (item.girdList?.length > 0) { - this.formatList(item.girdList) - } - } - return list - }, - - filterNode(value, data) { - if (!value) return true - - return (data.girdName && data.girdName.indexOf(value) !== -1) || (data.name && data.name.indexOf(value) !== -1) || (data.name && data.phone.indexOf(value) !== -1) - }, - - onTreeChange(e) { - this.gridInfo = e - }, - onForwardConfirm() { this.$refs.forwardForm.validate(v => { if (v) { - this.instance.post('/app/appclapeventinfo/transferByManager', { + this.instance.post('/app/appclapeventinfopingchang/transfer', { ...this.forwardForm, id: this.$route.query.id }).then(res => { @@ -304,22 +241,8 @@ export default { } }) }, - - onConfirm() { - if (this.gridInfo.userId) { - this.forwardForm.girdId = this.gridInfo.girdId - this.forwardForm.girdName = this.gridInfo.girdName - this.forwardForm.girdMemberId = this.gridInfo.id - this.forwardForm.girdMemberName = this.gridInfo.name - } else { - this.forwardForm.girdId = this.gridInfo.id - } - this.forwardForm.girdName = this.gridInfo.girdName - this.forwardForm.name = `${this.gridInfo.girdName}${this.gridInfo.name ? '-' + this.gridInfo.name : ''}` - this.isShowUser = false - }, getDict() { - this.instance.post(`/app/appclapeventgroup/list?current=1&size=100000`).then(res => { + this.instance.post(`/app/appclapeventgrouppingchang/list?current=1&size=100000`).then(res => { if (res.code == 0) { this.dictList = res.data.records.map(v => { return { @@ -330,25 +253,12 @@ export default { } }) }, - - close() { - this.$confirm('确定关闭该事件?').then(() => { - this.instance.post(`/app/appmininotice/delete?ids=${this.$route.query.id}`).then(res => { - if (res.code == 0) { - this.$message.success('删除成功!') - this.getList() - } - }) - }) - }, - cancel(isRefresh) { this.$emit('change', { type: 'list', isRefresh: !!isRefresh }) }, - onChange(e) { this.instance.post(`/app/appvillagerintegralrule/list?size=1000&classification=${e}&ruleStatus=1`).then(res => { if (res.code === 0) { @@ -357,12 +267,11 @@ export default { } }) }, - initMap() { let {lng, lat} = this.detail let center = [lng, lat] AMapLoader.load({ - key: 'b553334ba34f7ac3cd09df9bc8b539dc', + key: '54a02a43d9828a8f9cd4f26fe281e74e', version: '2.0' }).then(AMap => { let map = new AMap.Map('map', { @@ -376,7 +285,6 @@ export default { map.add(marker) }) }, - handleEvent() { this.$refs.form.validate(v => { if (v) { @@ -587,5 +495,86 @@ export default { } } } + .AppAnnounceDetail-select { + display: flex; + align-items: center; + min-height: 32px; + line-height: 1; + background: #F5F5F5; + border-radius: 4px; + border: 1px solid #D0D4DC; + cursor: pointer; + overflow: hidden; + transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); + + &:hover { + border-color: #26f; + } + + & > i { + flex: 1; + height: 100%; + line-height: 32px; + padding: 0 12px; + color: #888888; + font-size: 14px; + font-style: normal; + border-right: 1px solid #D0D4DC; + background: #fff; + } + + .AppAnnounceDetail-select__input { + position: absolute; + left: 0; + top: 0; + z-index: -1; + opacity: 0; + height: 100%; + } + + .select-right { + height: 100%; + padding: 0 12px; + color: #222222; + font-size: 12px; + cursor: pointer; + transition: all ease 0.3s; + + &:hover { + opacity: 0.5; + } + } + + .select-left { + display: flex; + flex-wrap: wrap; + flex: 1; + padding: 5px 0 0px 12px; + border-right: 1px solid #D0D4DC; + border-radius: 4px 0 0 4px; + background: #fff; + + em { + height: 22px; + line-height: 22px; + margin: 0 4px 5px 0; + color: #222222; + font-size: 12px; + font-style: normal; + } + + span { + height: 22px; + line-height: 22px; + margin: 0 4px 5px 0; + padding: 0 8px; + font-size: 12px; + color: #222222; + background: #F3F4F7; + border-radius: 2px; + border: 1px solid #D0D4DC; + } + } + } } diff --git a/project/pingchang/apps/AppWishfulThinking/components/List.vue b/project/pingchang/apps/AppWishfulThinking/components/List.vue index bea26d9e..80204796 100644 --- a/project/pingchang/apps/AppWishfulThinking/components/List.vue +++ b/project/pingchang/apps/AppWishfulThinking/components/List.vue @@ -11,7 +11,7 @@ 添加 - 导入 @@ -84,7 +84,7 @@ export default { return [ {prop: 'content', label: '内容描述', width: '300px'}, {prop: 'groupName', label: '事件类型', align: 'center'}, - {prop: 'girdName', label: '所属网格', align: 'center'}, + {prop: 'areaName', label: '所属地区', align: 'center'}, {prop: 'createTime', label: '上报时间', align: 'center'}, {prop: 'name', label: '上报居民', align: 'center'}, {prop: 'phone', label: '联系方式', align: 'center'}, @@ -107,7 +107,7 @@ export default { methods: { getList() { - this.instance.post(`/app/appclapeventinfo/list`, null, { + this.instance.post(`/app/appclapeventinfopingchang/list`, null, { params: { ...this.search } @@ -144,7 +144,7 @@ export default { }, handleDelete(ids) { this.$confirm("是否要进行删除?").then(() => { - this.instance.post("/app/appclapeventinfo/delete", null, { + this.instance.post("/app/appclapeventinfopingchang/delete", null, { params: {ids} }).then(res => { if (res?.code == 0) {