Browse Source

新增操作放在标题栏

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

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

@ -45,6 +45,13 @@
style="width: 100%"> style="width: 100%">
<el-table-column prop="agencyName" label="组织名字" width="260"></el-table-column> <el-table-column prop="agencyName" label="组织名字" width="260"></el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <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"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
@ -61,16 +68,16 @@
<el-table height="250" <el-table height="250"
:data="communityData" :data="communityData"
style="width: 100%"> 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"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot="header" slot-scope="scope">
<el-button v-if="communityOpen" <el-button size="mini"
size="mini"
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@click="addCommunity(scope.row)" @click="addCommunity(scope.row)"
>新增</el-button> >新增</el-button>
</template>
<template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
type="warning" type="warning"
@ -87,14 +94,14 @@
style="width: 100%"> style="width: 100%">
<el-table-column prop="gridName" label="网格名字" width="260"></el-table-column> <el-table-column prop="gridName" label="网格名字" width="260"></el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot="header" slot-scope="scope">
<el-button v-if="gridOpen" <el-button size="mini"
size="mini"
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@click="addGrid(scope.row)" @click="addGrid(scope.row)"
>新增</el-button> >新增</el-button>
</template>
<template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
type="warning" type="warning"

Loading…
Cancel
Save