Browse Source

Merge branch 'master' into feature/smsCode

origin/feature/monitoring
YUJT 4 years ago
parent
commit
9fb44fa06e
  1. 10
      public/index.html
  2. 76
      src/views/modules/epidemic/epidemicreportuserinfo.vue
  3. 46
      src/views/modules/sys/user-add-or-update.vue
  4. 6
      src/views/modules/vim/vaccinationrole-add-or-update.vue
  5. 3
      src/views/modules/vim/vaccinationrole.vue
  6. 2
      src/views/modules/vim/vaccinationuserrole-add-or-update.vue

10
public/index.html

@ -35,23 +35,23 @@
<!-- 开发环境 --> <!-- 开发环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %> <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<script> <script>
window.SITE_CONFIG['apiURL'] = 'http://localhost:9094/epdc-api' // window.SITE_CONFIG['apiURL'] = 'http://localhost:9094/epdc-api'
// window.SITE_CONFIG['apiURL'] = 'https://epdc-api-test.elinkservice.cn/epdc-api' window.SITE_CONFIG['apiURL'] = 'https://epmet-ext9.elinkservice.cn/epdc-api'
window.SITE_CONFIG['workLogURL'] = 'https://epmet-ext1-py.elinkservice.cn/plugin-wrf' //工作日志引用外链地址 window.SITE_CONFIG['workLogURL'] = 'https://epmet-ext1.pingyin.gov.cn/plugin-wrf' //工作日志引用外链地址
</script> </script>
<% } %> <% } %>
<!-- 集成测试环境 --> <!-- 集成测试环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'prod:sit') { %> <% if (process.env.VUE_APP_NODE_ENV === 'prod:sit') { %>
<script> <script>
window.SITE_CONFIG['apiURL'] = 'http://219.146.91.110:9094/epdc-api' window.SITE_CONFIG['apiURL'] = 'http://219.146.91.110:9094/epdc-api'
window.SITE_CONFIG['workLogURL'] = 'https://epmet-ext1-py.elinkservice.cn/plugin-wrf' //工作日志引用外链地址 window.SITE_CONFIG['workLogURL'] = 'https://epmet-ext1.pingyin.gov.cn/plugin-wrf' //工作日志引用外链地址
</script> </script>
<% } %> <% } %>
<!-- 验收测试环境 --> <!-- 验收测试环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'prod:uat') { %> <% if (process.env.VUE_APP_NODE_ENV === 'prod:uat') { %>
<script> <script>
window.SITE_CONFIG['apiURL'] = 'http://115.28.104.30:17020/epdc-api' window.SITE_CONFIG['apiURL'] = 'http://115.28.104.30:17020/epdc-api'
window.SITE_CONFIG['workLogURL'] = 'https://epmet-ext1-py.elinkservice.cn/plugin-wrf' //工作日志引用外链地址 window.SITE_CONFIG['workLogURL'] = 'https://epmet-ext1.pingyin.gov.cn/plugin-wrf' //工作日志引用外链地址
</script> </script>
<% } %> <% } %>
<!-- 生产环境 --> <!-- 生产环境 -->

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

@ -339,16 +339,8 @@ export default {
idCard: '', idCard: '',
username: '', username: '',
mobile: '', mobile: '',
outCode: '', isInoculate: ''
outStreet: '',
returnState: '',
startTime: '',
endTime: '',
isInoculate: '',
age: '',
company: ''
}, },
ageArr: [],
companyArr: [], companyArr: [],
publicPath: process.env.BASE_URL, publicPath: process.env.BASE_URL,
pickerBeginDateBefore: { pickerBeginDateBefore: {
@ -367,13 +359,7 @@ export default {
} }
} }
}, },
ids: [],
options: [], options: [],
outStreetArr: [],
returnStateArr: [
{ dictValue: 1, dictName: '在本地' },
{ dictValue: 2, dictName: '在外地' }
],
inoculateStateArr: [ inoculateStateArr: [
{ dictValue: '0', dictName: '未接种' }, { dictValue: '0', dictName: '未接种' },
{ dictValue: '10', dictName: '接种中' }, { dictValue: '10', dictName: '接种中' },
@ -382,17 +368,6 @@ export default {
{ dictValue: '1', dictName: '第一针' }, { dictValue: '1', dictName: '第一针' },
{ dictValue: '2', 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-69岁' },
{ dictValue: '7', dictName: '70-79岁' },
{ dictValue: '8', dictName: '80岁以上' }
],
companyStateArr: [], companyStateArr: [],
exportTemplate: false, exportTemplate: false,
uploeadLoeading: false, uploeadLoeading: false,
@ -411,22 +386,8 @@ export default {
AddOrUpdate, AddOrUpdate,
InfoDetail InfoDetail
}, },
watch: {
ids: function (val) {
if (val.length === 0) {
this.dataForm.outCode = ''
} else {
this.dataForm.outCode = this.ids[val.length - 1]
}
}
},
methods: { methods: {
beforeGetDataListSearch () { beforeGetDataListSearch () {
if (this.ageArr.length > 0) {
this.dataForm.age = this.ageArr.toString()
} else {
this.dataForm.age = ''
}
if (this.companyArr.length > 0) { if (this.companyArr.length > 0) {
this.dataForm.company = this.companyArr.toString() this.dataForm.company = this.companyArr.toString()
} else { } else {
@ -442,12 +403,6 @@ export default {
this.$refs.infoDetail.init() this.$refs.infoDetail.init()
}) })
}, },
// (4)
getDailyTypeArrInfo () {
this.$http.get(`/sys/epidemicreportuserinfo/selectStreet/4`).then(({ data: res }) => {
this.outStreetArr = res
}).catch(() => { })
},
getcompantyOptions () { getcompantyOptions () {
this.$http this.$http
.get(`/sys/vaccinecompany/getCompantyList`) .get(`/sys/vaccinecompany/getCompantyList`)
@ -486,14 +441,6 @@ export default {
} }
}).catch(() => { }) }).catch(() => { })
}, },
//
selectModel (event) {
this.outStreetArr.find((item) => {
if (item.dictValue === event) {
this.dataForm.outStreet = item.dictValue
}
})
},
getOptions () { getOptions () {
this.$http this.$http
.get(`/sys/select/getSysArea`) .get(`/sys/select/getSysArea`)
@ -565,15 +512,6 @@ export default {
} }
}) })
}, },
returnStateFormat (row, column) {
if (row.returnState === 1 || row.returnState === '1') {
return '在本地'
} else if (row.returnState === 2 || row.returnState === '2') {
return '在外地'
} else {
return ''
}
},
showRegistFormat (row, column) { showRegistFormat (row, column) {
if (row.isInoculate === 0) { if (row.isInoculate === 0) {
return '否' return '否'
@ -581,18 +519,6 @@ export default {
return '是' return '是'
} }
}, },
returnriskGradeFormat (row, column) {
// 1:23
if (row.riskGrade === 1 || row.riskGrade === '1') {
return '低风险'
} else if (row.returnState === 2 || row.returnState === '2') {
return '中风险'
} else if (row.returnState === 3 || row.returnState === '3') {
return '高风险'
} else {
return ''
}
},
// //
exports () { exports () {
this.dialogVisibleExcel = true this.dialogVisibleExcel = true

46
src/views/modules/sys/user-add-or-update.vue

@ -103,6 +103,25 @@
<el-radio :label="1">{{ $t('user.status1') }}</el-radio> <el-radio :label="1">{{ $t('user.status1') }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item prop="verifyFlag"
label="短信验证登陆"
size="mini">
<el-radio-group v-model="dataForm.verifyFlag" @change="verifyFlagChange">
<el-radio :label="'0'">停用</el-radio>
<el-radio :label="'1'">本人验证</el-radio>
<el-radio :label="'2'">领导验证</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="登录验证手机" v-if="dataForm.verifyFlag !== '0'"
prop="verifyMobile">
<el-autocomplete
class="inline-input" :disabled="dataForm.verifyFlag === '1'"
v-model="dataForm.verifyMobile"
:fetch-suggestions="querySearch"
placeholder="请输入内容"
@select="handleSelect"
></el-autocomplete>
</el-form-item>
</el-form> </el-form>
<template slot="footer"> <template slot="footer">
<el-button @click="visible = false">{{ $t('cancel') }}</el-button> <el-button @click="visible = false">{{ $t('cancel') }}</el-button>
@ -136,8 +155,11 @@ export default {
mobile: '', mobile: '',
roleIdList: [], roleIdList: [],
status: 1, status: 1,
verifyFlag: '0',
verifyMobile: '',
userTagKey: '' userTagKey: ''
}, },
verifyMobileList: [],
userTagDictList: [] userTagDictList: []
} }
}, },
@ -272,12 +294,36 @@ export default {
this.dataForm.deptName = data.name this.dataForm.deptName = data.name
this.deptListVisible = false this.deptListVisible = false
}, },
handleSelect (item) {
console.log(item)
},
verifyFlagChange (e) {
if (e === '2') {
this.$http.get(`/sys/user/getLeaderPhone/${this.dataForm.deptId}`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.verifyMobileList = res.data
}).catch(() => { })
} else {
this.verifyMobileList = []
this.dataForm.verifyMobile = this.dataForm.mobile
}
},
querySearch (queryString, cb) {
let results = this.verifyMobileList
// callback
cb(results)
},
// //
dataFormSubmitHandle: debounce(function () { dataFormSubmitHandle: debounce(function () {
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
if (!valid) { if (!valid) {
return false return false
} }
if (this.dataForm.verifyFlag === '0') {
this.dataForm.verifyMobile = ''
}
this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/user', { this.$http[!this.dataForm.id ? 'post' : 'put']('/sys/user', {
...this.dataForm, ...this.dataForm,
roleIdList: [ roleIdList: [

6
src/views/modules/vim/vaccinationrole-add-or-update.vue

@ -4,13 +4,13 @@
<el-form-item label="角色名称" prop="roleName"> <el-form-item label="角色名称" prop="roleName">
<el-input v-model="dataForm.roleName" placeholder="角色名称"></el-input> <el-input v-model="dataForm.roleName" placeholder="角色名称"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="街道/乡镇关键词" prop="streetKeywords"> <el-form-item label="乡镇/街道权限" prop="streetKeywords">
<el-input v-model="dataForm.streetKeywords" type="textarea" placeholder="街道/乡镇关键词,关键词以逗号间隔"></el-input> <el-input v-model="dataForm.streetKeywords" type="textarea" placeholder="街道/乡镇关键词,关键词以逗号间隔"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="社区/村关键词" prop="communityKeywords"> <el-form-item label="村/社区权限" prop="communityKeywords">
<el-input v-model="dataForm.communityKeywords" type="textarea" placeholder="社区/村关键词,关键词以逗号间隔"></el-input> <el-input v-model="dataForm.communityKeywords" type="textarea" placeholder="社区/村关键词,关键词以逗号间隔"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="网格关键词" prop="gridKeywords"> <el-form-item label="网格权限" prop="gridKeywords">
<el-input v-model="dataForm.gridKeywords" type="textarea" placeholder="网格关键词,关键词以逗号间隔"></el-input> <el-input v-model="dataForm.gridKeywords" type="textarea" placeholder="网格关键词,关键词以逗号间隔"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remark"> <el-form-item label="备注" prop="remark">

3
src/views/modules/vim/vaccinationrole.vue

@ -20,6 +20,9 @@
<el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" style="width: 100%;"> <el-table v-loading="dataListLoading" :data="dataList" border @selection-change="dataListSelectionChangeHandle" style="width: 100%;">
<el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column> <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>
<el-table-column prop="roleName" label="角色名称" header-align="center" align="center"></el-table-column> <el-table-column prop="roleName" label="角色名称" header-align="center" align="center"></el-table-column>
<el-table-column prop="streetKeywords" label="乡镇/街道权限" header-align="center" align="center"></el-table-column>
<el-table-column prop="communityKeywords" label="村/社区权限" header-align="center" align="center"></el-table-column>
<el-table-column prop="gridKeywords" label="网格权限" header-align="center" align="center"></el-table-column>
<el-table-column prop="remark" label="备注" header-align="center" align="center"></el-table-column> <el-table-column prop="remark" label="备注" header-align="center" align="center"></el-table-column>
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150">
<template slot-scope="scope"> <template slot-scope="scope">

2
src/views/modules/vim/vaccinationuserrole-add-or-update.vue

@ -71,7 +71,7 @@ export default {
}, },
getUserOptions () { getUserOptions () {
this.$http this.$http
.get(`/sys/user/userList`) .get(`/sys/user/vaccination/userList`)
.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)

Loading…
Cancel
Save