Browse Source

新增操作放在标题栏

shibei_master
YUJT 3 years ago
parent
commit
9ba1c4e47f
  1. 61
      src/views/modules/base/organization/organization.vue

61
src/views/modules/base/organization/organization.vue

@ -45,6 +45,13 @@
style="width: 100%">
<el-table-column prop="agencyName" label="组织名字" width="260"></el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot="header" slot-scope="scope">
<el-button size="mini"
type="primary"
icon="el-icon-plus"
@click="addCommunity(scope.row)"
>新增</el-button>
</template>
<template slot-scope="scope">
<el-button
size="mini"
@ -61,22 +68,22 @@
<el-table height="250"
:data="communityData"
style="width: 100%">
<el-table-column prop="departmentName" label="社区名字" width="260"></el-table-column>
<el-table-column prop="departmentName" label="下级机关单位/基层科室" width="260"></el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot="header" slot-scope="scope">
<el-button size="mini"
type="primary"
icon="el-icon-plus"
@click="addCommunity(scope.row)"
>新增</el-button>
</template>
<template slot-scope="scope">
<el-button v-if="communityOpen"
size="mini"
type="primary"
icon="el-icon-plus"
@click="addCommunity(scope.row)"
>新增</el-button>
<el-button
size="mini"
type="warning"
icon="el-icon-plus"
@click="entryCommunity(scope.row)"
>进入</el-button>
<el-button
size="mini"
type="warning"
icon="el-icon-plus"
@click="entryCommunity(scope.row)"
>进入</el-button>
</template>
</el-table-column>
</el-table>
@ -87,20 +94,20 @@
style="width: 100%">
<el-table-column prop="gridName" label="网格名字" width="260"></el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot="header" slot-scope="scope">
<el-button size="mini"
type="primary"
icon="el-icon-plus"
@click="addGrid(scope.row)"
>新增</el-button>
</template>
<template slot-scope="scope">
<el-button v-if="gridOpen"
size="mini"
type="primary"
icon="el-icon-plus"
@click="addGrid(scope.row)"
>新增</el-button>
<el-button
size="mini"
type="warning"
icon="el-icon-plus"
@click="entryGrid(scope.row)"
>进入</el-button>
<el-button
size="mini"
type="warning"
icon="el-icon-plus"
@click="entryGrid(scope.row)"
>进入</el-button>
</template>
</el-table-column>
</el-table>

Loading…
Cancel
Save