diff --git a/src/views/modules/communityService/policy/addPolicy.vue b/src/views/modules/communityService/policy/addPolicy.vue
index 6a72359a2..34f44ef42 100644
--- a/src/views/modules/communityService/policy/addPolicy.vue
+++ b/src/views/modules/communityService/policy/addPolicy.vue
@@ -8,25 +8,56 @@
:rules="dataRule"
:disabled="formType==='detail'"
class="div_form">
+
+
+
+
+
+
+
-
-
-
-
-
-
+ style="display: block">
+
+
-
@@ -47,14 +78,21 @@
-
-
-
+ prop="policyLevel">
+
+
+
+
+
-
@@ -101,15 +139,15 @@
:index="index">
-
+ -->
-
+
-
@@ -119,7 +157,7 @@
:options="demandOptions"
:props="optionProps"
@change="handleCateSlect">
-
+ -->
{
+ if (res.code !== 0) {
+ return this.$message.error(res.msg);
+ } else {
+ this.serviceTypesLevel1 = res.data;
+ }
+ })
+ .catch(() => {
+ return this.$message.error("网络错误");
+ });
},
@@ -656,6 +713,8 @@ export default {
resetData () {
this.ruleList = []
this.formData = {
+ serviceTypeLevel1Id:'',
+ serviceTypeLevel2Id:'',
policyLevel: '',//政府级别
startDate: '',//起始时间yyyy-MM-dd
endDate: '',//截止时间yyyy-MM-dd
@@ -680,6 +739,23 @@ export default {
if (loading) {
loading.close()
}
+ },
+
+ // 服务类型下拉框选中事件
+ handleChangeServiceTypeLevel1() {
+ this.formData.policyTypeLevel2Id = ''
+ this.$http
+ .get("/governance/commonServiceType/selectList/" + this.formData.policyTypeLevel1Id)
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg);
+ } else {
+ this.serviceTypesLevel2 = res.data;
+ }
+ })
+ .catch(() => {
+ return this.$message.error("网络错误");
+ })
}
},
computed: {
@@ -697,7 +773,9 @@ export default {
return {
-
+ serviceType: [
+ { required: true, message: '政策类型不能为空', trigger: 'blur' }
+ ],
policyLevel: [
{ required: true, message: '政策级别不能为空', trigger: 'change' }
],
diff --git a/src/views/modules/communityService/policy/policyList.vue b/src/views/modules/communityService/policy/policyList.vue
index 33f8a5ec3..b892fe562 100644
--- a/src/views/modules/communityService/policy/policyList.vue
+++ b/src/views/modules/communityService/policy/policyList.vue
@@ -401,7 +401,7 @@ export default {
async getTableData () {
this.tableLoading = true
- const url = "/heart/policy/list";
+ const url = "/governance/policy/list";
// const url = "http://yapi.elinkservice.cn/mock/245/heart/icServiceProject/service/recordList";
const { pageSize, pageNo, formData } = this;
const { data, code, msg } = await requestPost(url, {