Browse Source

Merge branch 'master' of http://121.42.41.42:7070/r/epdc-admin-yushan

# Conflicts:
#	src/views/modules/epidemic/echarts.vue
#	src/views/modules/epidemic/epidemicreportuserinfo.vue
#	src/views/modules/vim/vaccinationinfo-add-or-update.vue
origin/feature/monitoring
zhangyuan 4 years ago
parent
commit
eeb1483064
  1. 38
      src/views/modules/epidemic/echarts.vue
  2. 2
      src/views/modules/epidemic/epidemicreportuserinfo-add-or-update.vue
  3. 56
      src/views/modules/epidemic/epidemicreportuserinfo.vue
  4. 4
      src/views/modules/epidemic/epidemicreportuserinfoDetail.vue
  5. 14
      src/views/modules/epidemic/epidemicuserinfo.vue
  6. 14
      src/views/modules/epidemic/regist.vue
  7. 2
      src/views/modules/property/group-detail.vue
  8. 8
      src/views/modules/sys/dept-add-or-update.vue
  9. 6
      src/views/modules/sys/dept.vue
  10. 4
      src/views/modules/sys/reportmacode.vue
  11. 8
      src/views/modules/vim/vaccinationinfo-add-or-update.vue
  12. 2
      src/views/modules/worklog/worklog.vue
  13. 2
      src/views/pages/login.vue

38
src/views/modules/epidemic/echarts.vue

@ -23,28 +23,28 @@
<script>
export default {
name: "hellowEcharts",
data() {
name: 'hellowEcharts',
data () {
return {
title: "平阴县",
outStreet:'',
outStreetArr:[],
barName:'',
peopleNumber : [1,2,3],
orgOptions:{}
title: '平阴县',
outStreet: '',
outStreetArr: [],
barName: '',
peopleNumber: [1, 2, 3],
orgOptions: {}
}
},
created: function () {
this.getDailyTypeArrInfo()
this.getPeopleNumber("");
this.getPeopleNumber('')
},
mounted() {
mounted () {
// this.drawLine();
this.orgOptions = {
tooltip: {},
xAxis: {
type: 'category',
data: ["外地人数", "返乡人数", "现住外地人数"]
data: ['外地人数', '返乡人数', '现住外地人数']
},
yAxis: {
type: 'value'
@ -52,28 +52,28 @@ export default {
series: [{
data: [0, 0, 0],
type: 'bar',
name:"人员情况",
name: '人员情况',
label: {
show: true,
position: 'top',
color: 'rgba(20, 101, 230, 1)'
},
}
}]
}
},
methods: {
// (4)
getDailyTypeArrInfo () {
this.$http.get(`/sys/epidemicreportuserinfo/selectStreet/4`).then(({ data: res }) => {
this.$http.get(`sys/epidemicreportuserinfo/selectStreet/4`).then(({ data: res }) => {
this.outStreetArr = res
}).catch(() => {})
},
//
selectModel (event) {
if (event == ''){
if (event === '') {
this.title = '平阴县'
this.barName = '平阴县'
this.getPeopleNumber(event);
this.getPeopleNumber(event)
}
this.outStreetArr.find((item) => {
if (item.dictValue === event) {
@ -84,11 +84,11 @@ export default {
}
})
},
getPeopleNumber(item){
if (item == ""){
getPeopleNumber (item) {
if (item === '') {
item = 0
}
this.$http.get(`/sys/select/getPeopleNumber/`+item).then(({ data: res }) => {
this.$http.get(`select/getPeopleNumber/` + item).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}

2
src/views/modules/epidemic/epidemicreportuserinfo-add-or-update.vue

@ -494,7 +494,7 @@ export default {
],
gender: [
{ dictValue: '男', dictName: '男' },
{ dictValue: '女', dictName: '女' },
{ dictValue: '女', dictName: '女' }
],
vueLoading: true
}

56
src/views/modules/epidemic/epidemicreportuserinfo.vue

@ -280,19 +280,19 @@
import mixinViewModule from '@/mixins/view-module'
import AddOrUpdate from './epidemicreportuserinfo-add-or-update'
import InfoDetail from './epidemicreportuserinfoDetail'
import qs from "qs";
import Cookies from "js-cookie";
import qs from 'qs'
import Cookies from 'js-cookie'
export default {
mixins: [mixinViewModule],
data () {
return {
mixinViewModuleOptions: {
getDataListURL: '/sys/epidemicuserinfo/page',
getDataListURL: 'sys/epidemicuserinfo/page',
getDataListIsPage: true,
deleteURL: '/sys/epidemicuserinfo',
deleteURL: 'sys/epidemicuserinfo',
deleteIsBatch: true,
exportURL: '/sys/epidemicuserinfo/export',
exportErrorInfoURL: '/sys/epidemicusererror/export'
exportURL: 'sys/epidemicuserinfo/export',
exportErrorInfoURL: 'sys/epidemicusererror/export'
},
dataForm: {
id: '',
@ -335,20 +335,20 @@ export default {
{ dictValue: 2, dictName: '在外地' }
],
inoculateStateArr: [
{dictValue: '0', dictName: '未接种'},
{dictValue: '10', dictName: '接种中'},
{dictValue: '11', dictName: '接种完成'},
{dictValue: '1', dictName: '第一针'},
{dictValue: '2', dictName: '第二针'}
{ dictValue: '0', dictName: '未接种' },
{ dictValue: '10', dictName: '接种中' },
{ dictValue: '11', dictName: '接种完成' },
{ dictValue: '1', dictName: '第一针' },
{ dictValue: '2', dictName: '第二针' }
],
ageStateArr: [
{dictValue: '0', dictName: '0-18岁'},
{dictValue: '1', dictName: '19-19岁'},
{dictValue: '2', dictName: '20-29岁'},
{dictValue: '3', dictName: '30-39岁'},
{dictValue: '4', dictName: '40-49岁'},
{dictValue: '5', dictName: '50-59岁'},
{dictValue: '6', dictName: '60岁以上'}
{ dictValue: '0', dictName: '0-18岁' },
{ dictValue: '1', dictName: '19-19岁' },
{ dictValue: '2', dictName: '20-29岁' },
{ dictValue: '3', dictName: '30-39岁' },
{ dictValue: '4', dictName: '40-49岁' },
{ dictValue: '5', dictName: '50-59岁' },
{ dictValue: '6', dictName: '60岁以上' }
],
companyStateArr: [],
exportTemplate: false,
@ -402,13 +402,13 @@ export default {
},
// (4)
getDailyTypeArrInfo () {
this.$http.get(`/sys/epidemicreportuserinfo/selectStreet/4`).then(({ data: res }) => {
this.$http.get(`sys/epidemicreportuserinfo/selectStreet/4`).then(({ data: res }) => {
this.outStreetArr = res
}).catch(() => { })
},
getcompantyOptions () {
this.$http
.get(`/sys/vaccinecompany/getCompantyList`)
.get(`sys/vaccinecompany/getCompantyList`)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
@ -428,7 +428,7 @@ export default {
},
getOptions () {
this.$http
.get(`/sys/select/getSysArea`)
.get(`sys/select/getSysArea`)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
@ -475,13 +475,13 @@ export default {
this.$message({
type: 'success',
message: '下载成功'
});
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消下载'
});
});
})
})
} else {
this.$message.error(response.msg)
}
@ -507,14 +507,14 @@ export default {
}
},
showRegistFormat (row, column) {
if (row.isInoculate == 0) {
if (row.isInoculate === 0) {
return '否'
} else {
return '是'
}
},
returnriskGradeFormat (row, column) {
//1:23
// 1:23
if (row.riskGrade === 1 || row.riskGrade === '1') {
return '低风险'
} else if (row.returnState === 2 || row.returnState === '2') {
@ -525,9 +525,9 @@ export default {
return ''
}
},
//
//
exports () {
this.dialogVisibleExcel = true;
this.dialogVisibleExcel = true
}
}
}

4
src/views/modules/epidemic/epidemicreportuserinfoDetail.vue

@ -493,7 +493,7 @@ export default {
],
gender: [
{ dictValue: '男', dictName: '男' },
{ dictValue: '女', dictName: '女' },
{ dictValue: '女', dictName: '女' }
],
vueLoading: true
}
@ -520,7 +520,7 @@ export default {
this.dataForm.destinationAddressCodes = []
// this.getOptions()
this.getLiveOptions()
this.vueLoading=false
this.vueLoading = false
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
if (this.dataForm.id) {

14
src/views/modules/epidemic/epidemicuserinfo.vue

@ -202,7 +202,7 @@
import mixinViewModule from '@/mixins/view-module'
import AddOrUpdate from './regist'
import InfoDetail from './epidemicreportuserinfoDetail'
import Cookies from "js-cookie";
import Cookies from 'js-cookie'
export default {
mixins: [mixinViewModule],
@ -356,13 +356,13 @@ export default {
this.$message({
type: 'success',
message: '下载成功'
});
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消下载'
});
});
})
})
} else {
this.$message.error(response.msg)
}
@ -388,7 +388,7 @@ export default {
}
},
returnriskGradeFormat (row, column) {
//1:23
// 1:23
if (row.riskGrade === 1 || row.riskGrade === '1') {
return '低风险'
} else if (row.returnState === 2 || row.returnState === '2') {
@ -399,9 +399,9 @@ export default {
return ''
}
},
//
//
exports () {
this.dialogVisibleExcel = true;
this.dialogVisibleExcel = true
}
}
}

14
src/views/modules/epidemic/regist.vue

@ -172,16 +172,16 @@ export default {
companyOptions: [],
siteOptions: [],
vaccinationStateOptions: [
{value: 0, label: '未接种'},
{value: 1, label: '接种中'},
{value: 2, label: '接种完成'},
{ value: 0, label: '未接种' },
{ value: 1, label: '接种中' },
{ value: 2, label: '接种完成' }
],
isAble: false,
showFlagIn: true,
showFlagOut: true,
gender: [
{ dictValue: '男', dictName: '男' },
{ dictValue: '女', dictName: '女' },
{ dictValue: '女', dictName: '女' }
],
vueLoading: true,
id: ''
@ -278,9 +278,9 @@ export default {
}).catch(() => { })
if (this.dataForm.companyId !== this.historyCompanyId) {
this.dataForm.vaccinationState = 1
return this.$message.warning("与上次接种疫苗厂家不同")
return this.$message.warning('与上次接种疫苗厂家不同')
} else {
if (this.dataForm.dose === this.maxDose){
if (this.dataForm.dose === this.maxDose) {
this.dataForm.vaccinationState = 2
} else {
this.dataForm.vaccinationState = 1
@ -289,7 +289,7 @@ export default {
},
doseChange (event) {
// if (this.dataForm.distinctNum < 2){
if (event === this.maxDose && (this.dataForm.companyId === this.historyCompanyId || this.historyCompanyId === 0)){
if (event === this.maxDose && (this.dataForm.companyId === this.historyCompanyId || this.historyCompanyId === 0)) {
// if (event === this.maxDose && this.dataForm.vaccinationNum + 1 === event && this.dataForm.companyId === this.historyCompanyId){
this.dataForm.vaccinationState = 2
} else {

2
src/views/modules/property/group-detail.vue

@ -178,7 +178,7 @@ export default {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
if (res.data.resultCode == 1) {
if (res.data.resultCode === 1) {
this.$confirm(res.data.resultMessage, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',

8
src/views/modules/sys/dept-add-or-update.vue

@ -103,7 +103,7 @@ export default {
label: 'name',
children: 'children'
},
areaCodeOptions:[],
areaCodeOptions: [],
secondOrgDictList: []
}
},
@ -166,7 +166,7 @@ export default {
},
//
getAreaCodeOption () {
return this.$http.get('/sys/dept/getEpmetAreaCode',{ params: { rootAreaCode: '370124', rootAreaLevel: 'district' }}).then(({ data: res }) => {
return this.$http.get('/sys/dept/getEpmetAreaCode', { params: { rootAreaCode: '370124', rootAreaLevel: 'district' } }).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
@ -216,8 +216,8 @@ export default {
if (!valid) {
return false
}
this.dataForm.areaCode = this.dataForm.allAreaCode[this.dataForm.allAreaCode.length - 1];
this.dataForm.allAreaCode = this.dataForm.allAreaCode.toString();
this.dataForm.areaCode = this.dataForm.allAreaCode[this.dataForm.allAreaCode.length - 1]
this.dataForm.allAreaCode = this.dataForm.allAreaCode.toString()
this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/dept', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)

6
src/views/modules/sys/dept.vue

@ -51,20 +51,20 @@ export default {
label: 'name',
children: 'children'
},
areaCodeOptions:[]
areaCodeOptions: []
}
},
components: {
TableTreeColumn,
AddOrUpdate
},
mounted() {
mounted () {
this.getAreaCodeOption()
},
methods: {
//
getAreaCodeOption () {
return this.$http.get('/sys/dept/getEpmetAreaCode',{ params: { rootAreaCode: '370124', rootAreaLevel: 'district' }}).then(({ data: res }) => {
return this.$http.get('/sys/dept/getEpmetAreaCode', { params: { rootAreaCode: '370124', rootAreaLevel: 'district' } }).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}

4
src/views/modules/sys/reportmacode.vue

@ -120,7 +120,7 @@ export default {
communityList: [],
gridList: [],
maCodeCategorys: [
{ id: '0', name: '群众注册码' },
{ id: '0', name: '群众注册码' }
]
}
},
@ -228,7 +228,7 @@ export default {
})
})
.catch(() => {
loading.close()
// loading.close()
})
},
clearDataForm () {

8
src/views/modules/vim/vaccinationinfo-add-or-update.vue

@ -114,7 +114,7 @@ export default {
},
//
getInfo () {
this.$http.get(`/sys/vaccinationinfo/${this.dataForm.id}`).then(({ data: res }) => {
this.$http.get(`sys/vaccinationinfo/${this.dataForm.id}`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
@ -129,7 +129,7 @@ export default {
},
getSiteOptions () {
this.$http
.get(`/sys/vaccinationsite/getSiteList`)
.get(`sys/vaccinationsite/getSiteList`)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
@ -143,7 +143,7 @@ export default {
},
getCompantyOptions () {
this.$http
.get(`/sys/vaccinecompany/getCompantyList`)
.get(`sys/vaccinecompany/getCompantyList`)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
@ -161,7 +161,7 @@ export default {
if (!valid) {
return false
}
this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/vaccinationinfo/', this.dataForm).then(({ data: res }) => {
this.$http[!this.dataForm.id ? 'post' : 'put']('sys/vaccinationinfo/', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}

2
src/views/modules/worklog/worklog.vue

@ -7,7 +7,7 @@
<script>
import Cookies from 'js-cookie'
export default {
data() {
data () {
return {
url: ''
}

2
src/views/pages/login.vue

@ -156,7 +156,7 @@ export default {
if (res.data.code !== 0) {
return this.$message.error(res.data.msg)
}
Cookies.set('customerId',res.data.data)
Cookies.set('customerId', res.data.data)
})
.catch((err) => {
console.log(err)

Loading…
Cancel
Save