新增
This commit is contained in:
@@ -130,6 +130,39 @@ export default {
|
|||||||
selectName: '',
|
selectName: '',
|
||||||
tableIndex: 0,
|
tableIndex: 0,
|
||||||
tableData: [
|
tableData: [
|
||||||
|
{
|
||||||
|
list: [ // 残疾人
|
||||||
|
{
|
||||||
|
label: '家庭年收入(万)',
|
||||||
|
type: 'input',
|
||||||
|
formDbName: 'income'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '婚姻情况',
|
||||||
|
type: 'select',
|
||||||
|
dict: 'appSpecialMarriage',
|
||||||
|
formDbName: 'marriage'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '身体状况',
|
||||||
|
type: 'select',
|
||||||
|
dict: 'appSpecialHealth',
|
||||||
|
formDbName: 'health'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '残疾类型',
|
||||||
|
type: 'select',
|
||||||
|
dict: 'appSpecialDisableType',
|
||||||
|
formDbName: 'type'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '残疾级别',
|
||||||
|
type: 'select',
|
||||||
|
dict: 'appSpecialDisableLevel',
|
||||||
|
formDbName: 'level'
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
list: [ // 精神病人
|
list: [ // 精神病人
|
||||||
{
|
{
|
||||||
@@ -166,39 +199,6 @@ export default {
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
list: [ // 残疾人
|
|
||||||
{
|
|
||||||
label: '家庭年收入(万)',
|
|
||||||
type: 'input',
|
|
||||||
formDbName: 'income'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '婚姻情况',
|
|
||||||
type: 'select',
|
|
||||||
dict: 'appSpecialMarriage',
|
|
||||||
formDbName: 'marriage'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '身体状况',
|
|
||||||
type: 'select',
|
|
||||||
dict: 'appSpecialHealth',
|
|
||||||
formDbName: 'health'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '残疾类型',
|
|
||||||
type: 'select',
|
|
||||||
dict: 'appSpecialDisableType',
|
|
||||||
formDbName: 'type'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '残疾级别',
|
|
||||||
type: 'select',
|
|
||||||
dict: 'appSpecialDisableLevel',
|
|
||||||
formDbName: 'level'
|
|
||||||
},
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
list: [ // 社区矫正人群
|
list: [ // 社区矫正人群
|
||||||
{
|
{
|
||||||
@@ -345,7 +345,8 @@ export default {
|
|||||||
this.$dict.load('appSpecialSituation', 'appSpecialPlacement', 'appSpecialDenger', 'appSpecialCrime',
|
this.$dict.load('appSpecialSituation', 'appSpecialPlacement', 'appSpecialDenger', 'appSpecialCrime',
|
||||||
'appSpecialControl', 'appSpecialDebug', 'appSpecialDrug', 'appSpecialChangeType','appSpecialCure','appSpecialDengerLevel',
|
'appSpecialControl', 'appSpecialDebug', 'appSpecialDrug', 'appSpecialChangeType','appSpecialCure','appSpecialDengerLevel',
|
||||||
'appSpecialDisableLevel','appSpecialDisableType','appSpecialHealth','appSpecialMarriage','appSpecialTypeFive').then(() => {
|
'appSpecialDisableLevel','appSpecialDisableType','appSpecialHealth','appSpecialMarriage','appSpecialTypeFive').then(() => {
|
||||||
})
|
}),
|
||||||
|
this.gridName()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '新增人员'
|
document.title = '新增人员'
|
||||||
@@ -363,10 +364,18 @@ export default {
|
|||||||
return this.$u.toast('请输入正确的身份证号码')
|
return this.$u.toast('请输入正确的身份证号码')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
gridName() {
|
||||||
|
this.$http.post('app/appgirdmemberinfo/queryMyGirdListByLevel2AndUser').then(res => {
|
||||||
|
console.log(res);
|
||||||
|
// if(res.code == 0 ){
|
||||||
|
// }
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
submit() {
|
submit() {
|
||||||
if(this.userType === ''){
|
if(this.form.userType === ''){
|
||||||
return this.$u.toast('请选择类型')
|
return this.$u.toast('请选择类型')
|
||||||
}
|
}
|
||||||
if(!this.form.name){
|
if(!this.form.name){
|
||||||
@@ -388,10 +397,10 @@ export default {
|
|||||||
return this.$u.toast('请选择网格')
|
return this.$u.toast('请选择网格')
|
||||||
}
|
}
|
||||||
|
|
||||||
var urlList = ['app/appspecialmental/addOrUpdate', 'app/appspecialdisabled/addOrUpdate', 'app/appspecialdisabled/addOrUpdate',
|
var urlList = ['app/appspecialdisabled/addOrUpdate','app/appspecialmental/addOrUpdate', 'app/appspecialadjustment/addOrUpdate',
|
||||||
'app/appspecialdisabled/addOrUpdate', 'app/appspecialdisabled/addOrUpdate']
|
'app/appspecialdrug/addOrUpdate', 'app/appspecialprison/addOrUpdate']
|
||||||
|
|
||||||
this.$http.post(urlList[this.form.userType], this.form).then(res => {
|
this.$http.post(urlList[this.form.userType], {...this.form}).then(res => {
|
||||||
if(res.code == 0) {
|
if(res.code == 0) {
|
||||||
this.$u.toast('提交成功')
|
this.$u.toast('提交成功')
|
||||||
uni.$emit('specialPeopleList')
|
uni.$emit('specialPeopleList')
|
||||||
|
|||||||
@@ -26,7 +26,10 @@
|
|||||||
<div class="title">特殊人群</div>
|
<div class="title">特殊人群</div>
|
||||||
<div class="num-content">
|
<div class="num-content">
|
||||||
<div class="num-item" v-for="(item, index) in statisticsList" :key="index">
|
<div class="num-item" v-for="(item, index) in statisticsList" :key="index">
|
||||||
<h3>{{item.value}}</h3>
|
<h3>
|
||||||
|
<!-- {{item.value}} -->
|
||||||
|
{{ $dict.getLabel('appSpecialTypeFive', item.value) }}
|
||||||
|
</h3>
|
||||||
<p>{{item.label}}</p>
|
<p>{{item.label}}</p>
|
||||||
</div>
|
</div>
|
||||||
<AiEmpty v-if="!statisticsList.length"/>
|
<AiEmpty v-if="!statisticsList.length"/>
|
||||||
@@ -123,7 +126,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getStatistic() {
|
getStatistic() {
|
||||||
this.statisticsList = []
|
this.statisticsList = []
|
||||||
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.code == 0) {
|
// if (res.code == 0) {
|
||||||
// for(let i in res.data){
|
// for(let i in res.data){
|
||||||
// var obj = {
|
// var obj = {
|
||||||
@@ -151,17 +154,17 @@ export default {
|
|||||||
},
|
},
|
||||||
getUserList() {
|
getUserList() {
|
||||||
this.userList = []
|
this.userList = []
|
||||||
this.$http.post(`/app/appspecialadjustment/allList?type=0&name=${this.name}`).then((res) => {
|
this.$http.post('app/appspecialadjustment/allList',{type: '', name: this.name}).then((res) => {
|
||||||
// if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
// for(let i in res.data){
|
for(let i in res.data){
|
||||||
// var obj = {
|
var obj = {
|
||||||
// label: i,
|
label: i,
|
||||||
// value: res.data[i],
|
value: res.data[i],
|
||||||
// check: false
|
check: false
|
||||||
// }
|
}
|
||||||
// this.userList.push(obj)
|
this.userList.push(obj)
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
toAdd() {
|
toAdd() {
|
||||||
@@ -190,17 +193,22 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
toEdit(row) {
|
toEdit(row) {
|
||||||
// uni.navigateTo({url: './add'})
|
uni.navigateTo({url: `./add?id=${row.id}`})
|
||||||
},
|
},
|
||||||
del(row) {
|
del(row) {
|
||||||
|
var delUrl = ['app/appspecialdisabled/delete','app/appspecialmental/delete',
|
||||||
|
'app/appspecialadjustment/delete','app/appspecialdrug/delete','app/appspecialprison/delete'
|
||||||
|
]
|
||||||
this.$confirm('确定删除该数据?').then(() => {
|
this.$confirm('确定删除该数据?').then(() => {
|
||||||
// this.$http.post(`/app/appzyvideobroadcast/getBroadcastRecall?broadcastId=${id}`).then((res) => {
|
uni.showLoading()
|
||||||
// if (res.code == 0) {
|
this.$http.post(delUrl[row.userType],{id: row.id}).then((res) => {
|
||||||
// this.$u.toast('撤回成功!')
|
if (res.code == 0) {
|
||||||
// this.getList()
|
this.$u.toast('删除成功!')
|
||||||
// }
|
this.getUserList()
|
||||||
// })
|
}
|
||||||
|
uni.hideLoading()
|
||||||
})
|
})
|
||||||
|
}).catch(() => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user