Browse Source

Merge branch 'dev_shequzhili' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev_shequzhili

shibei_master
jiangyy 3 years ago
parent
commit
e3f24dde99
  1. 47
      src/views/modules/communityService/sqzzz/cpts/edit.vue
  2. 4
      src/views/modules/shequzhili/xiangmu/cpts/project-info.vue
  3. 2
      src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue

47
src/views/modules/communityService/sqzzz/cpts/edit.vue

@ -30,12 +30,17 @@
label-width="150px" label-width="150px"
style="display: block" style="display: block"
> >
<el-select v-model="dataForm.categoryCode" placeholder="请选择" clearable> <el-select
v-model="dataForm.categoryCode"
placeholder="请选择"
clearable
>
<el-option <el-option
v-for="item in categoryList" v-for="item in categoryList"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"> :value="item.value"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -259,7 +264,7 @@ export default {
orgId: "", orgId: "",
dataForm: { dataForm: {
organizationName: "", organizationName: "",
categoryCode: '', categoryCode: "",
serviceItem: "", serviceItem: "",
organizationPersonCount: "", organizationPersonCount: "",
principalName: "", principalName: "",
@ -271,8 +276,8 @@ export default {
latitude: "", latitude: "",
organizationPersonnel: [], organizationPersonnel: [],
}, },
categoryList: [] categoryList: [],
} };
}, },
components: {}, components: {},
computed: { computed: {
@ -312,23 +317,23 @@ export default {
watch: {}, watch: {},
async created() { async created() {
this.getCategoryList() this.getCategoryList();
}, },
async mounted() { async mounted() {
this.initMap() this.initMap();
}, },
methods: { methods: {
async getCategoryList() { async getCategoryList() {
const url = '/sys/dict/data/dictlist' const url = "/sys/dict/data/dictlist";
const params = { const params = {
dictType: 'self_org_category' dictType: "self_org_category",
} };
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params);
if (code === 0) { if (code === 0) {
this.categoryList = data this.categoryList = data;
} else { } else {
this.$message.error(msg) this.$message.error(msg);
} }
}, },
handleAddStaff() { handleAddStaff() {
@ -449,6 +454,22 @@ export default {
message: "手机号格式有误", message: "手机号格式有误",
}); });
} }
const {
dataForm: { organizationPersonnel },
} = this;
let vlt = organizationPersonnel.every((item) => {
return (
item.personName &&
item.personPhone &&
formVltHelper.userOrMobile(item.personPhone)
);
});
if (!vlt) {
return this.$message({
type: "error",
message: "成员姓名/手机号为空或格式有误",
});
}
this.submit(); this.submit();
} }
}); });

4
src/views/modules/shequzhili/xiangmu/cpts/project-info.vue

@ -113,7 +113,7 @@
<el-popover <el-popover
v-if="projectInfo.projectStatus == 'pending'" v-if="projectInfo.projectStatus == 'pending'"
placement="bottom" placement="bottom"
width="400" width="450"
height="400" height="400"
v-model="visibleTagPanel" v-model="visibleTagPanel"
> >
@ -126,6 +126,8 @@
filterable filterable
placeholder="请选择" placeholder="请选择"
@change="handleTagChange" @change="handleTagChange"
size="medium"
style="width: 350px;"
> >
<el-option-group label="自定义标签"> <el-option-group label="自定义标签">
<el-option <el-option

2
src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue

@ -104,6 +104,8 @@
</div> </div>
<event-info v-if="showProject" <event-info v-if="showProject"
:eventId="eventId" :eventId="eventId"
:orgId="tableOrgId ? tableOrgId : orgId"
:orgType="tableOrgType ? tableOrgType : orgType"
@close="showProject = false" /> @close="showProject = false" />
</cpt-card> </cpt-card>
</template> </template>

Loading…
Cancel
Save