权限控制
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| <template> | ||||
|   <div class="AppExaminationManage"> | ||||
|     <keep-alive :include="['List']"> | ||||
|       <component ref="component" :is="component" @change="onChange" :params="params" :instance="instance" :dict="dict"></component> | ||||
|       <component ref="component" :permissions="permissions" :is="component" @change="onChange" :params="params" :instance="instance" :dict="dict"></component> | ||||
|     </keep-alive> | ||||
|   </div> | ||||
| </template> | ||||
| @@ -17,7 +17,8 @@ | ||||
|  | ||||
|     props: { | ||||
|       instance: Function, | ||||
|       dict: Object | ||||
|       dict: Object, | ||||
|       permissions: Function | ||||
|     }, | ||||
|  | ||||
|     data () { | ||||
|   | ||||
| @@ -13,7 +13,7 @@ | ||||
|             :selectList="dict.getDict('qjEIStatus')" | ||||
|             @change="search.current = 1, getList()"> | ||||
|           </ai-select> | ||||
|           <el-button size="small" type="primary" icon="iconfont iconAdd" @click="toAdd('')">添加</el-button> | ||||
|           <el-button size="small" type="primary" icon="iconfont iconAdd" v-if="permissions('app_appexaminationinfo_edit')" @click="toAdd('')">添加</el-button> | ||||
|         </template> | ||||
|         <template #right> | ||||
|           <el-input | ||||
| @@ -39,10 +39,10 @@ | ||||
|         <el-table-column slot="options" width="160px" fixed="right" label="操作" align="center"> | ||||
|           <template slot-scope="{ row }"> | ||||
|             <div class="table-options"> | ||||
|               <el-button type="text" v-if="row.status === '0'" @click="id = row.id, isShow = true">审核</el-button> | ||||
|               <el-button type="text" @click="toAdd(row.id)">编辑</el-button> | ||||
|               <el-button type="text" @click="toDetail(row.id)">详情</el-button> | ||||
|               <el-button type="text" v-if="row.status === '1'" @click="unshelf(row.id)">下架</el-button> | ||||
|               <el-button type="text" v-if="row.status === '0' && permissions('app_appexaminationinfo_examine')" @click="id = row.id, isShow = true">审核</el-button> | ||||
|               <el-button type="text" @click="toAdd(row.id)" v-if="permissions('app_appexaminationinfo_edit')">编辑</el-button> | ||||
|               <el-button type="text" @click="toDetail(row.id)" v-if="permissions('app_appexaminationinfo_detail')">详情</el-button> | ||||
|               <el-button type="text" v-if="row.status === '1' && permissions('app_appexaminationinfo_examine')" @click="unshelf(row.id)">下架</el-button> | ||||
|               <!-- <el-button type="text" @click="remove(row.id)">删除</el-button> --> | ||||
|             </div> | ||||
|           </template> | ||||
| @@ -76,7 +76,8 @@ | ||||
|  | ||||
|     props: { | ||||
|       instance: Function, | ||||
|       dict: Object | ||||
|       dict: Object, | ||||
|       permissions: Function | ||||
|     }, | ||||
|  | ||||
|     data () { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user