机构加所在地区

This commit is contained in:
dengbw
2022-10-11 15:29:00 +08:00
parent f3ad3e2188
commit 8b4f546d01
2 changed files with 15 additions and 3 deletions
+4 -1
View File
@@ -223,7 +223,7 @@
};
},
created() {
this.organizationQuery();
//this.organizationQuery();
},
methods: {
/* 查询机构 */
@@ -245,6 +245,9 @@
},
/* 表格数据源 */
datasource({ page, limit, where, order }) {
if (page == 1) {
this.organizationQuery();
}
return pageActivity({ ...where, ...order, page, limit });
},
/* 刷新表格 */
@@ -34,6 +34,13 @@
placeholder="请输入机构全称"
/>
</el-form-item>
<el-form-item label="所在地区:">
<regions-select
v-model="form.city"
placeholder="请选择省市区"
class="ele-fluid"
/>
</el-form-item>
</el-col>
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
<el-form-item label="机构类型:" prop="organizationType">
@@ -73,13 +80,14 @@
<script>
import OrgSelect from './org-select.vue';
import OrgTypeSelect from './org-type-select.vue';
import RegionsSelect from '@/components/RegionsSelect/index.vue';
import {
addOrganization,
updateOrganization
} from '@/api/sylive/organization';
export default {
components: { OrgSelect, OrgTypeSelect },
components: { OrgSelect, OrgTypeSelect, RegionsSelect },
props: {
// 弹窗是否打开
visible: Boolean,
@@ -98,7 +106,8 @@
organizationFullName: '',
organizationType: null,
sortNumber: null,
comments: ''
comments: '',
city: []
};
return {
defaultForm,