diff --git a/src/apps/AppAskForm/AddForm.vue b/src/apps/AppAskForm/AddForm.vue index de5d7352..d6528359 100644 --- a/src/apps/AppAskForm/AddForm.vue +++ b/src/apps/AppAskForm/AddForm.vue @@ -192,11 +192,6 @@ export default { } }) }, - - onShow () { - localStorage.removeItem("toFiledConfig") - }, - methods: { toSetting() { let {formConfig} = this diff --git a/src/apps/AppAskForm/FiledConfig.vue b/src/apps/AppAskForm/FiledConfig.vue index d16fddfe..69a31bed 100644 --- a/src/apps/AppAskForm/FiledConfig.vue +++ b/src/apps/AppAskForm/FiledConfig.vue @@ -146,9 +146,12 @@ import {components} from './components/config' export default { data() { - let params = localStorage.getItem("toFiledConfig") - params && (params = JSON.parse(params)) - params.config = params.index > -1 ? params.filed : components.filter(v => v.type === params.filedType)[0] + let params = localStorage.getItem("toFiledConfig") || {} + if (params) { + params = JSON.parse(params) + params.config = params.index > -1 ? params.filed : JSON.parse(JSON.stringify(components.filter(v => v.type === params.filedType)[0])) + localStorage.removeItem("toFiledConfig") + } return { ...params, isShowType: false, @@ -250,7 +253,7 @@ export default { this.config.options.splice(index, 1) }, - back() { + back() { uni.navigateBack({}) }, diff --git a/src/apps/AppResidentActivitie/Add.vue b/src/apps/AppResidentActivitie/Add.vue index 79f41a26..0c8302cf 100644 --- a/src/apps/AppResidentActivitie/Add.vue +++ b/src/apps/AppResidentActivitie/Add.vue @@ -207,9 +207,9 @@ export default { if (this.showStartTime == true) { var nowTime = new Date().getTime() * 1 - var historyTime = new Date(e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00').getTime() * 1 + var beginTimes = new Date(e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00').getTime() * 1 - if (nowTime > historyTime) { + if (nowTime > beginTimes) { this.forms.beginTime = '' return this.$u.toast('开始时间应大于当前时间') } else { @@ -217,15 +217,18 @@ export default { } } if (this.showEndTime == true) { - var nowTime = new Date().getTime() * 1 + if (!this.forms.beginTime) { + return this.$u.toast('请先选择开始时间') + } + var beginTimes = new Date(this.forms.beginTime).getTime() * 1 - var historyTime = new Date(e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00').getTime() * 1 + var endTimes = new Date(e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00').getTime() * 1 - if (nowTime > historyTime) { - this.forms.endTime = '' - return this.$u.toast('结束时间应大于当前时间') - } else { + if (endTimes > beginTimes && endTimes != beginTimes) { this.forms.endTime = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00' + } else { + this.forms.endTime = '' + return this.$u.toast('结束时间应大于开始时间') } } }, diff --git a/src/apps/AppUniMsg/AppUniMsg.vue b/src/apps/AppUniMsg/AppUniMsg.vue index 1bd7805c..f27cbe6e 100644 --- a/src/apps/AppUniMsg/AppUniMsg.vue +++ b/src/apps/AppUniMsg/AppUniMsg.vue @@ -85,7 +85,7 @@ export default { }) }, onShow() { - document.title = '通知公告' + document.title = '通知公告' }, methods: { getList() { @@ -172,7 +172,7 @@ uni-page-body { height: 100%; ::v-deep .AiCard { - background: #f3f6f9; + background: #f5f5f5; .start { background: #fff; @@ -220,7 +220,7 @@ uni-page-body { } .u-load-more-wrap { - background: #f3f6f9 !important; + background: #f5f5f5 !important; margin: 0 !important; padding: 34px 0; } diff --git a/src/apps/AppWalkask/AppWalkask.vue b/src/apps/AppWalkask/AppWalkask.vue index 9b2c106a..42990358 100644 --- a/src/apps/AppWalkask/AppWalkask.vue +++ b/src/apps/AppWalkask/AppWalkask.vue @@ -9,11 +9,11 @@
- - + + {{ areaName }} 请选择 - +
@@ -21,12 +21,12 @@
@@ -152,11 +152,13 @@ export default { }, areaSelect(e) { + this.data = [] this.areaId = e this.getList() }, change(index) { + this.data = [] this.areaId = this.user.areaId this.keyword = '' this.currentTabs = index @@ -164,9 +166,18 @@ export default { }, goDetail(item, hint) { + if (item?.id) { + this.$refs?.[item.id]?.[0]?.handleClose() + } if (hint == 1) { uni.navigateTo({ url: `./detail?id=${item.id}` }) } + }, + + toAdd(item, hint) { + if (item?.id) { + this.$refs?.[item.id]?.[0]?.handleClose() + } if (hint == 2) { uni.navigateTo({ url: `./add?id=${item.id}` }) } else { @@ -177,6 +188,7 @@ export default { toDetele(item) { this.deletShow = true this.deletId = item.id + this.$refs?.[item.id]?.[0]?.handleClose() }, delet() { @@ -219,6 +231,7 @@ uni-page-body { height: 100%; background: #fff; } + .AppWalkask { height: 100%; diff --git a/src/apps/AppWalkask/add.vue b/src/apps/AppWalkask/add.vue index 3a48b124..35dbdef3 100644 --- a/src/apps/AppWalkask/add.vue +++ b/src/apps/AppWalkask/add.vue @@ -24,17 +24,18 @@
- - -
{{ forms.title.length }}/30
+ + +
{{ forms.title.length }}/30
- - -
{{ forms.description.length }}/500
+ + + +
{{ forms.description.length }}/500
@@ -75,6 +76,7 @@ export default { reality: '', realityValue: '', menuLevel3Name: '', + applicationId: '', title: '', description: '', images: [], @@ -104,8 +106,8 @@ export default { }) uni.$on('goBack', (data) => { - console.log(data) this.forms.menuLevel3Name = data.applicationName + this.forms.applicationId = data.applicationId this.forms.name = data.selectUser.name this.forms.optionId = data.selectUser.id }) @@ -165,7 +167,8 @@ export default { applicationId: this.forms.applicationId, name: this.forms.name, optionId: this.forms.optionId, - menuLevel3Name: this.forms.menuLevel3Name, + // menuLevel3Name: this.forms.menuLevel3Name, + applicationId: this.forms.applicationId, reality: this.forms.realityValue ? this.forms.realityValue : this.forms.reality, title: this.forms.title, @@ -192,7 +195,6 @@ export default { }, areaSelect(e) { - console.log(e) this.forms.areaId = e }, @@ -210,10 +212,6 @@ export default { }, toWalkObject() { - if (this.id) return - // this.addList = false - // this.comp = 'selectType' - // this.paramss = 111 uni.navigateTo({ url: `./selectType` }) }, }, @@ -283,6 +281,12 @@ export default { background: #f3f6f9; } + .hint { + padding: 4px 32px 8px 0; + text-align: right; + color: #999; + } + .avatars { .u-form-item__body { .default { diff --git a/src/apps/AppWalkask/selectType.vue b/src/apps/AppWalkask/selectType.vue index 0539617b..0ee707fc 100644 --- a/src/apps/AppWalkask/selectType.vue +++ b/src/apps/AppWalkask/selectType.vue @@ -17,7 +17,7 @@
-
+
{{ item.applicationName }}
@@ -38,10 +38,9 @@
-
+
{{ e.name }}
- - +
{{ e.idNumber && e.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1******$2') }}
@@ -71,6 +70,7 @@ export default { current: 1, showType: true, applicationName: '', + applicationId: '', selectUser: {}, } }, @@ -104,9 +104,22 @@ export default { }) }, - getUser(data) { - this.$http.post(`/app/appapplicationinfo/list?appId=${data.id}¤t=${this.current}&size=${999}`, { searchParam: this.keyword }).then((res) => { + // getUser(data) { + // this.applicationId = data.id + // this.appId = data.id + // this.getUsers() + // }, + + getUsers() { + uni.showLoading({ + title: '加载中', + }) + this.$http.post(`/app/appapplicationinfo/list?appId=${this.appId}¤t=${this.current}&size=${999}`, { searchParam: this.keyword }).then((res) => { if (res.code == 0) { + uni.showToast({ + title: '加载完毕', + icon: 'none', + }) res.data.records.map((item) => { item.isChecked = false }) @@ -116,15 +129,21 @@ export default { }, submit() { - uni.$emit('goBack', { selectUser: this.selectUser, applicationName: this.applicationName }) - uni.navigateBack() - // uni.navigateTo({ url: `./add` }) + if (this.selectUser.id != null) { + uni.$emit('goBack', { selectUser: this.selectUser, applicationName: this.applicationName, applicationId: this.applicationId }) + uni.navigateBack() + } else { + return this.$u.toast('请选择人员') + } }, toUserSelect(item) { this.applicationName = item.applicationName + this.applicationId = item.id + this.appId = item.id + this.getUsers() + this.showType = false - this.getUser(item) }, back() { @@ -137,17 +156,18 @@ export default { }, handerSearch(e) { - if (this.showType) { + if (!this.showType) { this.keyword = e this.current = 1 - this.getUser() + // this.getUser() + this.getUsers() } }, handerClear() { this.keyword = '' this.current = 1 - this.getUser() + this.getUsers() }, }, } @@ -163,6 +183,7 @@ export default { } .header-middle { + padding-bottom: 140px; .hint { padding: 0 20px 0 32px; height: 112px; @@ -191,7 +212,7 @@ export default { height: 74px; border-radius: 8px; } - .right { + .rightes { width: 100%; display: flex; justify-content: space-between; @@ -238,21 +259,21 @@ export default { } } - .right { + .rights { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-left: 32px; border-bottom: 1px solid #e4e5e6; + padding-right: 40px; .applicationNames { font-size: 36px; font-weight: 500; color: #333333; } - .imgs { - width: 40px; - height: 40px; + .idNumbers { + color: #666; } } } diff --git a/src/sass/AppAskForm/AddForm.vue b/src/sass/AppAskForm/AddForm.vue index de5d7352..d6528359 100644 --- a/src/sass/AppAskForm/AddForm.vue +++ b/src/sass/AppAskForm/AddForm.vue @@ -192,11 +192,6 @@ export default { } }) }, - - onShow () { - localStorage.removeItem("toFiledConfig") - }, - methods: { toSetting() { let {formConfig} = this diff --git a/src/sass/AppAskForm/FiledConfig.vue b/src/sass/AppAskForm/FiledConfig.vue index d16fddfe..69a31bed 100644 --- a/src/sass/AppAskForm/FiledConfig.vue +++ b/src/sass/AppAskForm/FiledConfig.vue @@ -146,9 +146,12 @@ import {components} from './components/config' export default { data() { - let params = localStorage.getItem("toFiledConfig") - params && (params = JSON.parse(params)) - params.config = params.index > -1 ? params.filed : components.filter(v => v.type === params.filedType)[0] + let params = localStorage.getItem("toFiledConfig") || {} + if (params) { + params = JSON.parse(params) + params.config = params.index > -1 ? params.filed : JSON.parse(JSON.stringify(components.filter(v => v.type === params.filedType)[0])) + localStorage.removeItem("toFiledConfig") + } return { ...params, isShowType: false, @@ -250,7 +253,7 @@ export default { this.config.options.splice(index, 1) }, - back() { + back() { uni.navigateBack({}) },