25799
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<ai-list v-if="!isShowDetail">
|
||||
<template slot="title">
|
||||
<ai-title title="居民活动" :isShowBottomBorder="false" :isShowArea="currIndex === '0'" v-model="areaId" :instance="instance" @change="onAreaChange"></ai-title>
|
||||
<ai-title title="居民活动" :isShowBottomBorder="false" :isShowArea="currIndex === '0'" :fullName.sync="areaName" v-model="areaId" :instance="instance" @change="onAreaChange"></ai-title>
|
||||
</template>
|
||||
<template slot="tabs">
|
||||
<el-tabs v-model="currIndex">
|
||||
@@ -11,7 +11,7 @@
|
||||
</el-tabs>
|
||||
</template>
|
||||
</ai-list>
|
||||
<Add v-else-if="componentName === 'Add'" :params="params" :instance="instance" :dict="dict" :permissions="permissions" @change="onChange"></Add>
|
||||
<Add v-else-if="componentName === 'Add'" :areaName="areaName" :areaId="areaId" :params="params" :instance="instance" :dict="dict" :permissions="permissions" @change="onChange"></Add>
|
||||
<Detail v-else-if="componentName === 'Detail'" :params="params" :instance="instance" :dict="dict" :permissions="permissions" @change="onChange"></Detail>
|
||||
</template>
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
currIndex: '0',
|
||||
componentName: '',
|
||||
params: {},
|
||||
areaName: '',
|
||||
areaId: '',
|
||||
isShowDetail: false
|
||||
}
|
||||
|
||||
@@ -73,7 +73,9 @@
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
params: Object
|
||||
params: Object,
|
||||
areaId: String,
|
||||
areaName: String
|
||||
},
|
||||
|
||||
data () {
|
||||
@@ -100,8 +102,8 @@
|
||||
},
|
||||
|
||||
created () {
|
||||
this.form.areaId = this.user.info.areaId
|
||||
this.form.areaName = this.user.info.areaName
|
||||
this.form.areaId = this.areaId
|
||||
this.form.areaName = this.areaName
|
||||
this.disabledLevel = this.user.info.areaList.length - 1
|
||||
if (this.params && this.params.id) {
|
||||
this.id = this.params.id
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<template slot-scope="{ row }">
|
||||
<div class="table-options">
|
||||
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
|
||||
<el-button type="text" @click="toAdd(row.id)">编辑</el-button>
|
||||
<el-button type="text" @click="toAdd(row.id)" :disabled="row.status === '1' || row.status === '2'">编辑</el-button>
|
||||
<el-button type="text" @click="remove(row.id)">删除</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user