Commit 3f5425b3 authored by lrw's avatar lrw

园区

parent 4c98bba5
......@@ -175,6 +175,14 @@
type: 'picker',
opts: []
},
{
label: '园区',
required: true,
value: 'parkId',
titleClass: 'title',
type: 'picker',
opts: []
},
{
label: '所在部门(选填)',
value: 'department',
......@@ -204,7 +212,7 @@
titleClass: 'title',
placeholder: '请输入11位数字手机号',
type: 'input',
controType:'number',
controType: 'number',
validator: validate.isPhone
},
{
......@@ -1359,7 +1367,7 @@
label: '无上述情况'
}
],
noneValue:'g',
noneValue: 'g',
showList: [{
value: 'c',
show: [32, 35, 38, 40, 43, 45, 47]
......@@ -1668,6 +1676,7 @@
onLoad(option) {
this.getOrg()
this.getPark()
this.getInfo()
},
methods: {
......@@ -1703,6 +1712,29 @@
console.log(err)
})
},
getPark() {
const data = {
params: {
pageNum: 1,
pageSize: 1000000
}
}
this.$http.get(`/sict-ncov/park/page`, data).then(res => {
const d = res.data
console.log(d,'d')
if (d.code == 1) {
let list = []
d.object.forEach(item => {
list.push({
label: item.name,
value: item.id })
})
this.list[1].opts = list
}
}).catch(err => {
console.log(err)
})
},
// 获取信息
getInfo() {
this.$http.get(`/sict-ncov/report`, this.form).then(res => {
......@@ -1820,7 +1852,7 @@
let val = evt.value || evt.detail.value;
const showList = item.showList
if (showList && showList.length > 0) {
if(item.noneValue && val[val.length -1] == item.noneValue) {
if (item.noneValue && val[val.length - 1] == item.noneValue) {
val = [item.noneValue]
}
showList.forEach(item => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment