diff --git a/public/index.html b/public/index.html
index a678c03..41d6e00 100644
--- a/public/index.html
+++ b/public/index.html
@@ -36,7 +36,7 @@
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<% } %>
diff --git a/src/views/modules/epidemic/epidemicreportuserinfo.vue b/src/views/modules/epidemic/epidemicreportuserinfo.vue
index 316500e..261d9bd 100644
--- a/src/views/modules/epidemic/epidemicreportuserinfo.vue
+++ b/src/views/modules/epidemic/epidemicreportuserinfo.vue
@@ -4,7 +4,7 @@
+ @keyup.enter.native="beforeGetDataList()">
@@ -295,10 +295,10 @@
+ @refreshDataList="beforeGetDataList()">
+ @refreshDataList="beforeGetDataList()">
@@ -422,6 +422,7 @@ export default {
} else {
this.dataForm.company = ''
}
+ this.page = 1
this.getDataList()
},
// 查看
diff --git a/src/views/modules/epidemic/epidemicuserinfo.vue b/src/views/modules/epidemic/epidemicuserinfo.vue
index 68ddcf0..2029524 100644
--- a/src/views/modules/epidemic/epidemicuserinfo.vue
+++ b/src/views/modules/epidemic/epidemicuserinfo.vue
@@ -4,7 +4,7 @@
+ @keyup.enter.native="beforeGetDataList()">
@@ -37,7 +37,7 @@
{{ $t('query') }}
+ @click="beforeGetDataListSearch()">{{ $t('query') }}
+ @refreshDataList="beforeGetDataList()">
@@ -315,6 +315,10 @@ export default {
}
},
methods: {
+ beforeGetDataListSearch () {
+ this.page = 1
+ this.getDataList()
+ },
// 查看
lookHandle (id) {
this.detailVisible = true
diff --git a/src/views/modules/sys/dept-add-or-update.vue b/src/views/modules/sys/dept-add-or-update.vue
index ed03bf0..f3e89d6 100644
--- a/src/views/modules/sys/dept-add-or-update.vue
+++ b/src/views/modules/sys/dept-add-or-update.vue
@@ -7,21 +7,17 @@
:rules="dataRule"
ref="dataForm"
@keyup.enter.native="dataFormSubmitHandle()"
- label-width="120px">
+ label-width="100px">
-
-
-
-
-
-
@@ -39,7 +35,7 @@
@current-change="deptListTreeCurrentChangeHandle">
-
@@ -50,6 +46,7 @@
+
+
+
+
+
+
+
+
+
+ 机构类型为街道或社区时,请选择行政区划中的组织机构,若没用对应选项点击下方红色文字链接新增行政区划;
机构类型为其他类型时,选择其上级行政区划。
+
+
+
+ 如果没有匹配的行政区划,请点击此处新增
+
+
{ })
},
- // 获取区域编码
- getAreaCodeOption () {
- return this.$http.get('/sys/dept/getEpmetAreaCode', { params: { rootAreaCode: '370124', rootAreaLevel: 'district' } }).then(({ data: res }) => {
+ // 获取部门区域编码列表
+ getAreaCodeDeptList () {
+ return this.$http.get('/sys/dept/getDeptCode').then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
- this.areaCodeOptions = res.data
+ this.areaCodeList = res.data.options
}).catch(() => { })
},
// 获取二级党委字典列表
@@ -192,11 +205,11 @@ export default {
...this.dataForm,
...res.data
}
- this.dataForm.allAreaCode = res.data.allAreaCode.split(',')
if (this.dataForm.pid === '0') {
return this.deptListTreeSetDefaultHandle()
}
this.$refs.deptListTree.setCurrentKey(this.dataForm.pid)
+ this.$refs.areaCodeListTree.setCurrentKey(this.dataForm.areaCode)
}).catch(() => { })
},
// 上级部门树, 设置默认值
@@ -210,14 +223,40 @@ export default {
this.dataForm.parentName = data.name
this.deptListVisible = false
},
+ // 上级部门区域编码树, 选中
+ areaCodeListTreeCurrentChangeHandle (data) {
+ this.dataForm.areaCode = data.code
+ this.dataForm.parentAreaCode = data.parentCode
+ this.areaCodeListVisible = false
+ },
+ addAreaCode () {
+ if (this.dataForm.name === null || this.dataForm.name === '' || this.dataForm.name.trim() === '') {
+ return this.$message.error('请填写机构名称')
+ }
+ if (this.dataForm.pid === null || this.dataForm.pid === '' || this.dataForm.pid.trim() === '' || this.dataForm.pid.trim() === '0') {
+ return this.$message.error('请选择上级部门')
+ }
+ this.$http['post']('/sys/dept/addAreaCode', this.dataForm).then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ this.$message({
+ message: this.$t('prompt.success'),
+ type: 'success',
+ duration: 500,
+ onClose: () => {
+ this.dataForm.areaCode = res.data.areaCode
+ this.getAreaCodeDeptList()
+ }
+ })
+ }).catch(() => { })
+ },
// 表单提交
dataFormSubmitHandle: debounce(function () {
this.$refs['dataForm'].validate((valid) => {
if (!valid) {
return false
}
- 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)
@@ -247,4 +286,14 @@ export default {
}
}
}
+.el-popover {
+ height: 320px;
+ overflow-y: scroll;
+}
+.el-dialog__footer {
+ margin-top: 100px;
+}
+.input-width-jg {
+ width: 93%;
+}
diff --git a/src/views/modules/vim/vaccinationinfo.vue b/src/views/modules/vim/vaccinationinfo.vue
index aeefee5..1025bb1 100644
--- a/src/views/modules/vim/vaccinationinfo.vue
+++ b/src/views/modules/vim/vaccinationinfo.vue
@@ -4,7 +4,7 @@
+ @keyup.enter.native="beforeGetDataList()">
+ @refreshDataList="beforeGetDataList()">
@@ -275,6 +275,7 @@ export default {
} else if (this.dataForm.vaccNo > 0 && (!this.dataForm.vaccTime || this.dataForm.vaccTime === 0)) {
return this.$message.error('请填写已接种满时日')
}
+ this.page = 1
this.getDataList()
},
getOptions () {
diff --git a/src/views/modules/vim/vaccinationrole.vue b/src/views/modules/vim/vaccinationrole.vue
index 5a3caea..0c745a2 100644
--- a/src/views/modules/vim/vaccinationrole.vue
+++ b/src/views/modules/vim/vaccinationrole.vue
@@ -1,14 +1,14 @@
-
+
- {{ $t('query') }}
+ {{ $t('query') }}
{{ $t('add') }}
@@ -41,7 +41,7 @@
@current-change="pageCurrentChangeHandle">
-
+
@@ -66,6 +66,12 @@ export default {
},
components: {
AddOrUpdate
+ },
+ methods: {
+ beforeGetDataList () {
+ this.page = 1
+ this.getDataList()
+ }
}
}
diff --git a/src/views/modules/vim/vaccinationsite.vue b/src/views/modules/vim/vaccinationsite.vue
index 7e733b8..917a8e0 100644
--- a/src/views/modules/vim/vaccinationsite.vue
+++ b/src/views/modules/vim/vaccinationsite.vue
@@ -4,14 +4,14 @@
+ @keyup.enter.native="beforeGetDataList()">
- {{ $t('query') }}
+ {{ $t('query') }}
+ @refreshDataList="beforeGetDataList()">
@@ -91,6 +91,12 @@ export default {
},
components: {
AddOrUpdate
+ },
+ methods: {
+ beforeGetDataList () {
+ this.page = 1
+ this.getDataList()
+ }
}
}
diff --git a/src/views/modules/vim/vaccinationuserrole.vue b/src/views/modules/vim/vaccinationuserrole.vue
index b4ce130..de9cc5f 100644
--- a/src/views/modules/vim/vaccinationuserrole.vue
+++ b/src/views/modules/vim/vaccinationuserrole.vue
@@ -126,6 +126,10 @@ export default {
this.getVimUserList();
},
methods: {
+ beforeGetDataList () {
+ this.page = 1
+ this.getDataList()
+ },
getVimUserList() {
this.$http
.get(`/sys/user/vaccination/userList`)
diff --git a/src/views/modules/vim/vaccinecompany.vue b/src/views/modules/vim/vaccinecompany.vue
index dbc4d8e..0c0418d 100644
--- a/src/views/modules/vim/vaccinecompany.vue
+++ b/src/views/modules/vim/vaccinecompany.vue
@@ -4,14 +4,14 @@
+ @keyup.enter.native="beforeGetDataList()">
- {{ $t('query') }}
+ {{ $t('query') }}
+ @refreshDataList="beforeGetDataList()">
@@ -95,6 +95,12 @@ export default {
},
components: {
AddOrUpdate
+ },
+ methods: {
+ beforeGetDataList () {
+ this.page = 1
+ this.getDataList()
+ }
}
}
diff --git a/src/views/modules/vim/vaccinetype.vue b/src/views/modules/vim/vaccinetype.vue
index 527bcc8..a52ec98 100644
--- a/src/views/modules/vim/vaccinetype.vue
+++ b/src/views/modules/vim/vaccinetype.vue
@@ -4,14 +4,14 @@
+ @keyup.enter.native="beforeGetDataList()">
- {{ $t('query') }}
+ {{ $t('query') }}
+ @refreshDataList="beforeGetDataList()">
@@ -91,6 +91,12 @@ export default {
},
components: {
AddOrUpdate
+ },
+ methods: {
+ beforeGetDataList () {
+ this.page = 1
+ this.getDataList()
+ }
}
}