社区管理
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="Edit">
|
||||
<div class="header-tips">请确保以下信息全部由本人填写,本人对所填写内容的真实性和完整性负责</div>
|
||||
<div class="form-info">
|
||||
<div class="info mar-b16" v-if="fromType == 2">
|
||||
<div class="info mar-b16" v-if="fromType == 2 || fromType == 0">
|
||||
<div class="title">基本信息</div>
|
||||
<div class="item solid">
|
||||
<div class="label">
|
||||
@@ -170,6 +170,7 @@ export default {
|
||||
travelTypeList: [],
|
||||
travelType: [],
|
||||
fromType: '', //1编辑行程信息 2纳入管理
|
||||
titleList: ['新增待管理', '编辑行程信息', '纳入管理']
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -178,18 +179,21 @@ export default {
|
||||
onLoad(option) {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
this.fromType = option.fromType
|
||||
this.$dict.load('yesOrNo', 'EP_registerPersonType', 'EP_travelType', 'EP_abnormalType', 'epidemicTouchInFourteen',
|
||||
'EP_homeStatus2', 'EP_quarantineStrategy', 'EP_communityHandleType', 'EP_highRiskIndustries', 'EP_controlMethod').then(() => {
|
||||
this.id = option.id
|
||||
this.fromType = option.fromType
|
||||
if(option.id) {
|
||||
this.id = option.id
|
||||
this.getDetail()
|
||||
}
|
||||
this.travelTypeList = this.$dict.getDict('EP_travelType')
|
||||
this.getDetail()
|
||||
this.getCropAreaId()
|
||||
})
|
||||
|
||||
},
|
||||
onShow() {
|
||||
document.title = this.fromType == 2 ? '纳入管理' : '编辑行程信息'
|
||||
console.log(this.fromType)
|
||||
document.title = this.titleList[this.fromType]
|
||||
},
|
||||
methods: {
|
||||
submit() {
|
||||
@@ -224,7 +228,8 @@ export default {
|
||||
this.form.startTime = this.form.startTime + ':00',
|
||||
this.form.arriveTime = this.form.arriveTime + ':00',
|
||||
this.form.travelType = this.travelType.join(',')
|
||||
this.$http.post(`/app/appepidemicpreventionregisterinfo/updateForAdmin`, this.form).then((res) => {
|
||||
var url = this.fromType == 0 ? '/app/appepidemicpreventionregisterinfo/addForCM' : '/app/appepidemicpreventionregisterinfo/updateForAdmin'
|
||||
this.$http.post(url, this.form).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast('提交成功')
|
||||
uni.$emit('updateDetail')
|
||||
|
||||
Reference in New Issue
Block a user