|
|
@ -23,7 +23,8 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="场所规模" prop="scaleTotal"> |
|
|
|
<el-input v-model="formData.scaleTotal" class="u-item-width-normal" size="small" clearable placeholder="请输入"></el-input> |
|
|
|
<el-input-number v-model="formData.scaleTotal" class="u-item-width-normal" size="small" clearable placeholder="请输入"> |
|
|
|
</el-input-number> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="所属组织" prop="gridId"> |
|
|
|
<el-select class="u-item-width-normal" v-model="formData.gridId" placeholder="全部" size="small" clearable> |
|
|
@ -74,8 +75,9 @@ |
|
|
|
<el-button @click="handleExport" class="diy-button--white" size="small">导出</el-button> |
|
|
|
</div> |
|
|
|
<el-table :data="tableData" border class="m-table-item" style="width: 100%" @selection-change="handleSelectionChange" :height="maxTableHeight"> |
|
|
|
<el-table-column label="" fixed="left" type="selection" align="center" width="50" /> |
|
|
|
<!-- <el-table-column label="" fixed="left" type="selection" align="center" width="50" /> --> |
|
|
|
<el-table-column label="序号" fixed="left" type="index" align="center" width="50" /> |
|
|
|
<el-table-column prop="gridName" align="center" label="所属组织" :show-overflow-tooltip="true"></el-table-column> |
|
|
|
<el-table-column prop="placeOrgName" align="center" label="场所名称" :show-overflow-tooltip="true"></el-table-column> |
|
|
|
<el-table-column prop="address" label="场所地址" min-width="140" align="center" :show-overflow-tooltip="true" /> |
|
|
|
<el-table-column prop="placeTypeName" label="场所类型" align="center" :show-overflow-tooltip="true"></el-table-column> |
|
|
@ -95,8 +97,24 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button @click="handleAdd(scope.row, 'view')" type="text" size="small">查看</el-button> |
|
|
|
|
|
|
|
<el-button v-if="scope.row.latitude&&agencyId==scope.row.agencyId" style="margin-right: 10px" @click="handleAdd(scope.row, 'edit')" size="small" type="text">编辑</el-button> |
|
|
|
<el-button v-if="!scope.row.latitude&&agencyId==scope.row.agencyId" style="margin-right: 10px" @click="handleAdd(scope.row, 'edit')" size="small" type="text">待完善</el-button> |
|
|
|
<el-button |
|
|
|
v-if="scope.row.latitude && agencyId == scope.row.agencyId" |
|
|
|
style="margin-right: 10px" |
|
|
|
@click="handleAdd(scope.row, 'edit')" |
|
|
|
size="small" |
|
|
|
type="text" |
|
|
|
> |
|
|
|
编辑 |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
v-if="!scope.row.latitude && agencyId == scope.row.agencyId" |
|
|
|
style="margin-right: 10px" |
|
|
|
@click="handleAdd(scope.row, 'edit')" |
|
|
|
size="small" |
|
|
|
type="text" |
|
|
|
> |
|
|
|
待完善 |
|
|
|
</el-button> |
|
|
|
<el-button @click="handleDel(scope.row)" v-if="agencyId == scope.row.agencyId" type="text" size="small" class="">删除</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -117,7 +135,8 @@ |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<addForm |
|
|
|
v-if="dialogVisible" :dialogVisible="dialogVisible" |
|
|
|
v-if="dialogVisible" |
|
|
|
:dialogVisible="dialogVisible" |
|
|
|
:pageType="pageType" |
|
|
|
:disabled="disabled" |
|
|
|
:detailId="detailId" |
|
|
@ -139,7 +158,8 @@ import axios from 'axios'; |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return {dialogVisible: false, |
|
|
|
return { |
|
|
|
dialogVisible: false, |
|
|
|
disabled: false, |
|
|
|
user: '', |
|
|
|
agencyId: '', |
|
|
@ -262,10 +282,8 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleAdd(row, type) { |
|
|
|
|
|
|
|
if (row.enterpriseId) { |
|
|
|
this.detailId = row.enterpriseId; |
|
|
|
|
|
|
|
} |
|
|
|
this.pageType = type; |
|
|
|
if (type == 'view') { |
|
|
@ -275,7 +293,8 @@ export default { |
|
|
|
} |
|
|
|
this.dialogVisible = true; |
|
|
|
}, |
|
|
|
handleClose() {this.dialogVisible = false; |
|
|
|
handleClose() { |
|
|
|
this.dialogVisible = false; |
|
|
|
this.pageType = 'list'; |
|
|
|
this.detailId = ''; |
|
|
|
this.getTableData(); |
|
|
|