Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # src/apps/AppWalkask/AppWalkask.vue
This commit is contained in:
@@ -207,9 +207,9 @@ export default {
|
|||||||
if (this.showStartTime == true) {
|
if (this.showStartTime == true) {
|
||||||
var nowTime = new Date().getTime() * 1
|
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 = ''
|
this.forms.beginTime = ''
|
||||||
return this.$u.toast('开始时间应大于当前时间')
|
return this.$u.toast('开始时间应大于当前时间')
|
||||||
} else {
|
} else {
|
||||||
@@ -217,15 +217,18 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.showEndTime == true) {
|
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) {
|
if (endTimes > beginTimes && endTimes != beginTimes) {
|
||||||
this.forms.endTime = ''
|
|
||||||
return this.$u.toast('结束时间应大于当前时间')
|
|
||||||
} else {
|
|
||||||
this.forms.endTime = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00'
|
this.forms.endTime = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + '00'
|
||||||
|
} else {
|
||||||
|
this.forms.endTime = ''
|
||||||
|
return this.$u.toast('结束时间应大于开始时间')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -165,6 +165,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
change(index) {
|
change(index) {
|
||||||
|
this.data = []
|
||||||
this.areaId = this.user.areaId
|
this.areaId = this.user.areaId
|
||||||
this.keyword = ''
|
this.keyword = ''
|
||||||
this.currentTabs = index
|
this.currentTabs = index
|
||||||
|
|||||||
@@ -24,17 +24,18 @@
|
|||||||
|
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
|
|
||||||
<u-form-item label="入户走访事项" prop="title" required label-position="top">
|
<u-form-item label="入户走访事项" prop="title" required label-position="top" :border-bottom="false">
|
||||||
<u-input v-model="forms.title" placeholder="请输入入户走访事项(30字以内)" type="textarea" auto-height height="60" maxlength="30" />
|
<u-input v-model="forms.title" placeholder="请输入入户走访事项(30字以内)" type="textarea" auto-height height="60" :maxlength="30" />
|
||||||
<div>{{ forms.title.length }}/30</div>
|
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
<div class="hint">{{ forms.title.length }}/30</div>
|
||||||
|
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
|
|
||||||
<u-form-item label="入户走访内容" prop="description" label-position="top">
|
<u-form-item label="入户走访内容" prop="description" label-position="top" :border-bottom="false">
|
||||||
<u-input v-model="forms.description" placeholder="请输入入户走访事项(500字以内)" type="textarea" auto-height height="60" maxlength="500" />
|
<u-input v-model="forms.description" placeholder="请输入入户走访事项(500字以内)" type="textarea" auto-height height="60" :maxlength="500" />
|
||||||
<div>{{ forms.description.length }}/500</div>
|
<!-- <div>{{ forms.description.length }}/500</div> -->
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
<div class="hint">{{ forms.description.length }}/500</div>
|
||||||
|
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
|
|
||||||
@@ -105,7 +106,6 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
uni.$on('goBack', (data) => {
|
uni.$on('goBack', (data) => {
|
||||||
console.log(data)
|
|
||||||
this.forms.menuLevel3Name = data.applicationName
|
this.forms.menuLevel3Name = data.applicationName
|
||||||
this.forms.applicationId = data.applicationId
|
this.forms.applicationId = data.applicationId
|
||||||
this.forms.name = data.selectUser.name
|
this.forms.name = data.selectUser.name
|
||||||
@@ -195,7 +195,6 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
areaSelect(e) {
|
areaSelect(e) {
|
||||||
console.log(e)
|
|
||||||
this.forms.areaId = e
|
this.forms.areaId = e
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -213,11 +212,6 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
toWalkObject() {
|
toWalkObject() {
|
||||||
console.log(1);
|
|
||||||
// if (this.id) return
|
|
||||||
// this.addList = false
|
|
||||||
// this.comp = 'selectType'
|
|
||||||
// this.paramss = 111
|
|
||||||
uni.navigateTo({ url: `./selectType` })
|
uni.navigateTo({ url: `./selectType` })
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -287,6 +281,12 @@ export default {
|
|||||||
background: #f3f6f9;
|
background: #f3f6f9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hint {
|
||||||
|
padding: 4px 32px 8px 0;
|
||||||
|
text-align: right;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
.avatars {
|
.avatars {
|
||||||
.u-form-item__body {
|
.u-form-item__body {
|
||||||
.default {
|
.default {
|
||||||
|
|||||||
@@ -40,8 +40,7 @@
|
|||||||
|
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div class="applicationNames">{{ e.name }}</div>
|
<div class="applicationNames">{{ e.name }}</div>
|
||||||
|
<div class="idNumbers">{{ e.idNumber && e.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1******$2') }}</div>
|
||||||
<!-- <img src="./img/2.png" alt="" class="imgs" /> -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -107,7 +106,12 @@ export default {
|
|||||||
|
|
||||||
getUser(data) {
|
getUser(data) {
|
||||||
this.applicationId = data.id
|
this.applicationId = data.id
|
||||||
this.$http.post(`/app/appapplicationinfo/list?appId=${data.id}¤t=${this.current}&size=${999}`, { searchParam: this.keyword }).then((res) => {
|
this.appId = data.id
|
||||||
|
this.getUsers()
|
||||||
|
},
|
||||||
|
|
||||||
|
getUsers() {
|
||||||
|
this.$http.post(`/app/appapplicationinfo/list?appId=${this.appId}¤t=${this.current}&size=${999}`, { searchParam: this.keyword }).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
res.data.records.map((item) => {
|
res.data.records.map((item) => {
|
||||||
item.isChecked = false
|
item.isChecked = false
|
||||||
@@ -118,9 +122,12 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
submit() {
|
submit() {
|
||||||
uni.$emit('goBack', { selectUser: this.selectUser, applicationName: this.applicationName, applicationId: this.applicationId })
|
if (this.selectUser.length > 0) {
|
||||||
uni.navigateBack()
|
uni.$emit('goBack', { selectUser: this.selectUser, applicationName: this.applicationName, applicationId: this.applicationId })
|
||||||
// uni.navigateTo({ url: `./add` })
|
uni.navigateBack()
|
||||||
|
} else {
|
||||||
|
return this.$u.toast('请选择人员')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
toUserSelect(item) {
|
toUserSelect(item) {
|
||||||
@@ -139,17 +146,18 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
handerSearch(e) {
|
handerSearch(e) {
|
||||||
if (this.showType) {
|
if (!this.showType) {
|
||||||
this.keyword = e
|
this.keyword = e
|
||||||
this.current = 1
|
this.current = 1
|
||||||
this.getUser()
|
// this.getUser()
|
||||||
|
this.getUsers()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
handerClear() {
|
handerClear() {
|
||||||
this.keyword = ''
|
this.keyword = ''
|
||||||
this.current = 1
|
this.current = 1
|
||||||
this.getUser()
|
this.getUsers()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -247,14 +255,14 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
margin-left: 32px;
|
margin-left: 32px;
|
||||||
border-bottom: 1px solid #e4e5e6;
|
border-bottom: 1px solid #e4e5e6;
|
||||||
|
padding-right: 20px;
|
||||||
.applicationNames {
|
.applicationNames {
|
||||||
font-size: 36px;
|
font-size: 36px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
.imgs {
|
.idNumbers {
|
||||||
width: 40px;
|
color: #666;
|
||||||
height: 40px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user