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. 22
      src/views/modules/epidemic/echarts.vue
  2. 2
      src/views/modules/epidemic/epidemicreportuserinfo-add-or-update.vue
  3. 28
      src/views/modules/epidemic/epidemicreportuserinfo.vue
  4. 2
      src/views/modules/epidemic/epidemicreportuserinfoDetail.vue
  5. 10
      src/views/modules/epidemic/epidemicuserinfo.vue
  6. 6
      src/views/modules/epidemic/regist.vue
  7. 2
      src/views/modules/property/group-detail.vue
  8. 4
      src/views/modules/sys/dept-add-or-update.vue
  9. 4
      src/views/modules/sys/reportmacode.vue
  10. 8
      src/views/modules/vim/vaccinationinfo-add-or-update.vue

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

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

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

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

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

@ -280,19 +280,19 @@
import mixinViewModule from '@/mixins/view-module' import mixinViewModule from '@/mixins/view-module'
import AddOrUpdate from './epidemicreportuserinfo-add-or-update' import AddOrUpdate from './epidemicreportuserinfo-add-or-update'
import InfoDetail from './epidemicreportuserinfoDetail' import InfoDetail from './epidemicreportuserinfoDetail'
import qs from "qs"; import qs from 'qs'
import Cookies from "js-cookie"; import Cookies from 'js-cookie'
export default { export default {
mixins: [mixinViewModule], mixins: [mixinViewModule],
data () { data () {
return { return {
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/sys/epidemicuserinfo/page', getDataListURL: 'sys/epidemicuserinfo/page',
getDataListIsPage: true, getDataListIsPage: true,
deleteURL: '/sys/epidemicuserinfo', deleteURL: 'sys/epidemicuserinfo',
deleteIsBatch: true, deleteIsBatch: true,
exportURL: '/sys/epidemicuserinfo/export', exportURL: 'sys/epidemicuserinfo/export',
exportErrorInfoURL: '/sys/epidemicusererror/export' exportErrorInfoURL: 'sys/epidemicusererror/export'
}, },
dataForm: { dataForm: {
id: '', id: '',
@ -402,13 +402,13 @@ export default {
}, },
// (4) // (4)
getDailyTypeArrInfo () { getDailyTypeArrInfo () {
this.$http.get(`/sys/epidemicreportuserinfo/selectStreet/4`).then(({ data: res }) => { this.$http.get(`sys/epidemicreportuserinfo/selectStreet/4`).then(({ data: res }) => {
this.outStreetArr = res this.outStreetArr = res
}).catch(() => { }) }).catch(() => { })
}, },
getcompantyOptions () { getcompantyOptions () {
this.$http this.$http
.get(`/sys/vaccinecompany/getCompantyList`) .get(`sys/vaccinecompany/getCompantyList`)
.then(({ data: res }) => { .then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
@ -428,7 +428,7 @@ export default {
}, },
getOptions () { getOptions () {
this.$http this.$http
.get(`/sys/select/getSysArea`) .get(`sys/select/getSysArea`)
.then(({ data: res }) => { .then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
@ -475,13 +475,13 @@ export default {
this.$message({ this.$message({
type: 'success', type: 'success',
message: '下载成功' message: '下载成功'
}); })
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '已取消下载' message: '已取消下载'
}); })
}); })
} else { } else {
this.$message.error(response.msg) this.$message.error(response.msg)
} }
@ -507,7 +507,7 @@ export default {
} }
}, },
showRegistFormat (row, column) { showRegistFormat (row, column) {
if (row.isInoculate == 0) { if (row.isInoculate === 0) {
return '否' return '否'
} else { } else {
return '是' return '是'
@ -527,7 +527,7 @@ export default {
}, },
// //
exports () { exports () {
this.dialogVisibleExcel = true; this.dialogVisibleExcel = true
} }
} }
} }

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

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

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

@ -202,7 +202,7 @@
import mixinViewModule from '@/mixins/view-module' import mixinViewModule from '@/mixins/view-module'
import AddOrUpdate from './regist' import AddOrUpdate from './regist'
import InfoDetail from './epidemicreportuserinfoDetail' import InfoDetail from './epidemicreportuserinfoDetail'
import Cookies from "js-cookie"; import Cookies from 'js-cookie'
export default { export default {
mixins: [mixinViewModule], mixins: [mixinViewModule],
@ -356,13 +356,13 @@ export default {
this.$message({ this.$message({
type: 'success', type: 'success',
message: '下载成功' message: '下载成功'
}); })
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
type: 'info', type: 'info',
message: '已取消下载' message: '已取消下载'
}); })
}); })
} else { } else {
this.$message.error(response.msg) this.$message.error(response.msg)
} }
@ -401,7 +401,7 @@ export default {
}, },
// //
exports () { exports () {
this.dialogVisibleExcel = true; this.dialogVisibleExcel = true
} }
} }
} }

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

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

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

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

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

@ -216,8 +216,8 @@ export default {
if (!valid) { if (!valid) {
return false return false
} }
this.dataForm.areaCode = this.dataForm.allAreaCode[this.dataForm.allAreaCode.length - 1]; this.dataForm.areaCode = this.dataForm.allAreaCode[this.dataForm.allAreaCode.length - 1]
this.dataForm.allAreaCode = this.dataForm.allAreaCode.toString(); this.dataForm.allAreaCode = this.dataForm.allAreaCode.toString()
this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/dept', this.dataForm).then(({ data: res }) => { this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/dept', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)

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

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

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

@ -114,7 +114,7 @@ export default {
}, },
// //
getInfo () { 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) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
@ -129,7 +129,7 @@ export default {
}, },
getSiteOptions () { getSiteOptions () {
this.$http this.$http
.get(`/sys/vaccinationsite/getSiteList`) .get(`sys/vaccinationsite/getSiteList`)
.then(({ data: res }) => { .then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
@ -143,7 +143,7 @@ export default {
}, },
getCompantyOptions () { getCompantyOptions () {
this.$http this.$http
.get(`/sys/vaccinecompany/getCompantyList`) .get(`sys/vaccinecompany/getCompantyList`)
.then(({ data: res }) => { .then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
@ -161,7 +161,7 @@ export default {
if (!valid) { if (!valid) {
return false 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) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }

Loading…
Cancel
Save