修改所有页面站点 使用站点组件

This commit is contained in:
熊丽君
2022-01-18 18:02:56 +08:00
parent 3f52fdaa7b
commit 5cbca31d98
11 changed files with 57 additions and 280 deletions

View File

@ -17,17 +17,7 @@
/>
</el-form-item>
<el-form-item label="所属站点" prop="tenant_id" v-if="is_super">
<el-cascader
size="small"
style="width: 240px"
v-model="queryParams.tenant_id"
clearable
separator="-"
placeholder="请选择,支持搜索"
:options="tenantOptions"
filterable
:props="{ emitPath: false, value: 'id', label: 'name' }"
></el-cascader>
<SiteOptions @handleChange="queryParams.tenant_id = $event" />
</el-form-item>
<el-form-item label="申请人" prop="contact">
<el-input
@ -222,7 +212,6 @@ import {
applyDelete,
applyHandle,
} from "@/api/website/activity";
import { tenantSelect } from "@/api/subPlatform/tenant";
import { areaList, industry, identity } from "@/api/config";
export default {
data() {
@ -230,7 +219,6 @@ export default {
is_super: this.$store.getters.is_super,
loading: true,
showSearch: true,
tenantOptions: [],
queryParams: {
title: undefined,
tenant_id: undefined,
@ -320,14 +308,6 @@ export default {
},
created() {
this.getList();
tenantSelect().then((res) => {
for (const key in res.data) {
if (Object.hasOwnProperty.call(res.data, key)) {
const item = res.data[key];
this.tenantOptions.push(item);
}
}
});
identity().then((res) => {
this.identityList = res.data;
});