Merge branch 'dev' of http://git.sinoecare.com/sinoecare/digital_village_v2/dvcp_v2_wxcp_app into dev
This commit is contained in:
@@ -165,14 +165,14 @@ export default {
|
|||||||
},
|
},
|
||||||
getDetail() {
|
getDetail() {
|
||||||
let {id} = this.$route.query
|
let {id} = this.$route.query
|
||||||
id && this.$http.post(`app/appcommunityhouseinfo/queryDetailById?id=${id}`).then(res => {
|
id && this.$http.post(`/app/appcommunityhouseinfo/queryDetailById?id=${id}`).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.houseInfo = res.data
|
this.houseInfo = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
this.$http.post(`app/appcommunityhouseinfo/update`, this.houseInfo).then(res => {
|
this.$http.post(`/app/appcommunityhouseinfo/update`, this.houseInfo).then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.$u.toast('提交成功')
|
this.$u.toast('提交成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ export default {
|
|||||||
getStatistics() {
|
getStatistics() {
|
||||||
//获取楼栋统计信息
|
//获取楼栋统计信息
|
||||||
let {id} = this.detail
|
let {id} = this.detail
|
||||||
this.$http.post(`app/appcommunitybuildinginfo/statistics`, null, {
|
this.$http.post(`/app/appcommunitybuildinginfo/statistics`, null, {
|
||||||
params: {id, unitNum: this.eachUnitNumber}
|
params: {id, unitNum: this.eachUnitNumber}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
@@ -220,7 +220,7 @@ export default {
|
|||||||
getList() {
|
getList() {
|
||||||
//获取房间列表
|
//获取房间列表
|
||||||
let {id: buildingId} = this.detail
|
let {id: buildingId} = this.detail
|
||||||
this.$http.post(`app/appcommunityhouseinfo/list`, null, {
|
this.$http.post(`/app/appcommunityhouseinfo/list`, null, {
|
||||||
params: {size: 10000, buildingId, unitNumber: this.eachUnitNumber}
|
params: {size: 10000, buildingId, unitNumber: this.eachUnitNumber}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
@@ -230,7 +230,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getHouseDetail(id) {
|
getHouseDetail(id) {
|
||||||
this.houseId = id
|
this.houseId = id
|
||||||
this.$http.post(`app/appcommunityhouseinfo/queryDetailById?id=${id}`).then(res => {
|
this.$http.post(`/app/appcommunityhouseinfo/queryDetailById?id=${id}`).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.houseInfo = res.data
|
this.houseInfo = res.data
|
||||||
this.show = true
|
this.show = true
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ export default {
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
this.$http.post('app/appvillagercircleinfo/list',null,{
|
this.$http.post('/app/appvillagercircleinfo/list',null,{
|
||||||
params: {
|
params: {
|
||||||
current: this.current,
|
current: this.current,
|
||||||
auditType: this.tabIndex == 0 ? '': this.tabIndex == 1 ? 0 : 1,
|
auditType: this.tabIndex == 0 ? '': this.tabIndex == 1 ? 0 : 1,
|
||||||
|
|||||||
@@ -165,14 +165,14 @@ export default {
|
|||||||
},
|
},
|
||||||
getDetail() {
|
getDetail() {
|
||||||
let {id} = this.$route.query
|
let {id} = this.$route.query
|
||||||
id && this.$http.post(`app/appcommunityhouseinfo/queryDetailById?id=${id}`).then(res => {
|
id && this.$http.post(`/app/appcommunityhouseinfo/queryDetailById?id=${id}`).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.houseInfo = res.data
|
this.houseInfo = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
this.$http.post(`app/appcommunityhouseinfo/update`, this.houseInfo).then(res => {
|
this.$http.post(`/app/appcommunityhouseinfo/update`, this.houseInfo).then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.$u.toast('提交成功')
|
this.$u.toast('提交成功')
|
||||||
uni.$emit('changeHouseInfo')
|
uni.$emit('changeHouseInfo')
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ export default {
|
|||||||
getStatistic() {
|
getStatistic() {
|
||||||
this.statisticsList = []
|
this.statisticsList = []
|
||||||
this.statisticsListMon = []
|
this.statisticsListMon = []
|
||||||
this.$http.post(`app/appspecialadjustment/statistic?type=0&range=0`).then((res) => {
|
this.$http.post(`/app/appspecialadjustment/statistic?type=0&range=0`).then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
for (let i in res.data.map) {
|
for (let i in res.data.map) {
|
||||||
var obj = {
|
var obj = {
|
||||||
@@ -151,7 +151,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getUserList() {
|
getUserList() {
|
||||||
this.userList = []
|
this.userList = []
|
||||||
this.$http.post(`app/appspecialadjustment/allList?size=20¤t=${this.current}`, {type: this.type, name: this.name}).then((res) => {
|
this.$http.post(`/app/appspecialadjustment/allList?size=20¤t=${this.current}`, {type: this.type, name: this.name}).then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
if (this.current > res.data.total) {
|
if (this.current > res.data.total) {
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -464,8 +464,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var urlList = ['app/appspecialdisabled/addOrUpdate', 'app/appspecialmental/addOrUpdate', 'app/appspecialadjustment/addOrUpdate',
|
var urlList = ['/app/appspecialdisabled/addOrUpdate', '/app/appspecialmental/addOrUpdate', '/app/appspecialadjustment/addOrUpdate',
|
||||||
'app/appspecialdrug/addOrUpdate', 'app/appspecialprison/addOrUpdate']
|
'/app/appspecialdrug/addOrUpdate', '/app/appspecialprison/addOrUpdate']
|
||||||
|
|
||||||
this.$http.post(urlList[this.form.userType], {
|
this.$http.post(urlList[this.form.userType], {
|
||||||
...this.form,
|
...this.form,
|
||||||
|
|||||||
Reference in New Issue
Block a user