权限控制
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| <template> | <template> | ||||||
|   <div class="AppMarketingActivity"> |   <div class="AppMarketingActivity"> | ||||||
|     <keep-alive :include="['List']"> |     <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> |     </keep-alive> | ||||||
|   </div> |   </div> | ||||||
| </template> | </template> | ||||||
| @@ -18,7 +18,8 @@ | |||||||
|  |  | ||||||
|     props: { |     props: { | ||||||
|       instance: Function, |       instance: Function, | ||||||
|       dict: Object |       dict: Object, | ||||||
|  |       permissions: Function | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     data () { |     data () { | ||||||
|   | |||||||
| @@ -21,7 +21,7 @@ | |||||||
|         <el-table-column slot="options" width="120px" fixed="right" label="操作" align="center"> |         <el-table-column slot="options" width="120px" fixed="right" label="操作" align="center"> | ||||||
|           <template slot-scope="{ row }"> |           <template slot-scope="{ row }"> | ||||||
|             <div class="table-options"> |             <div class="table-options"> | ||||||
|               <el-button type="text" @click="show(row.id, row.isShow)">{{ row.isShow === '1' ? '隐藏' : '显示' }}</el-button> |               <el-button type="text" v-if="permissions('app_appcoursecomment_config')" @click="show(row.id, row.isShow)">{{ row.isShow === '1' ? '隐藏' : '显示' }}</el-button> | ||||||
|             </div> |             </div> | ||||||
|           </template> |           </template> | ||||||
|         </el-table-column> |         </el-table-column> | ||||||
|   | |||||||
| @@ -13,7 +13,7 @@ | |||||||
|             :selectList="dict.getDict('qjExamineStatus')" |             :selectList="dict.getDict('qjExamineStatus')" | ||||||
|             @change="search.current = 1, getList()"> |             @change="search.current = 1, getList()"> | ||||||
|           </ai-select> |           </ai-select> | ||||||
|           <el-button size="small" type="primary" icon="iconfont iconAdd" @click="toAdd('')">添加</el-button> |           <el-button size="small" type="primary" icon="iconfont iconAdd" @click="toAdd('')" v-if="permissions('app_appcourseinfo_edit')">添加</el-button> | ||||||
|         </template> |         </template> | ||||||
|         <template #right> |         <template #right> | ||||||
|           <el-input |           <el-input | ||||||
| @@ -46,10 +46,10 @@ | |||||||
|         <el-table-column slot="options" width="160px" fixed="right" label="操作" align="center"> |         <el-table-column slot="options" width="160px" fixed="right" label="操作" align="center"> | ||||||
|           <template slot-scope="{ row }"> |           <template slot-scope="{ row }"> | ||||||
|             <div class="table-options"> |             <div class="table-options"> | ||||||
|               <el-button type="text" v-if="row.examineStatus === '0'" @click="id = row.id, isShow = true">审核</el-button> |               <el-button type="text" v-if="row.examineStatus === '0' && permissions('app_appcourseinfo_audit')" @click="id = row.id, isShow = true">审核</el-button> | ||||||
|               <el-button type="text" @click="toAdd(row.id)">编辑</el-button> |               <el-button type="text" @click="toAdd(row.id)" v-if="permissions('app_appcourseinfo_edit')">编辑</el-button> | ||||||
|               <el-button type="text" @click="toDetail(row.id)">详情</el-button> |               <el-button type="text" @click="toDetail(row.id)" v-if="permissions('app_appquestionbank_detail')">详情</el-button> | ||||||
|               <el-button type="text" v-if="row.examineStatus === '1'" @click="unshelf(row.id)">下架</el-button> |               <el-button type="text" v-if="row.examineStatus === '1' && permissions('app_appcourseinfo_audit')" @click="unshelf(row.id)">下架</el-button> | ||||||
|             </div> |             </div> | ||||||
|           </template> |           </template> | ||||||
|         </el-table-column> |         </el-table-column> | ||||||
| @@ -79,7 +79,8 @@ | |||||||
|  |  | ||||||
|     props: { |     props: { | ||||||
|       instance: Function, |       instance: Function, | ||||||
|       dict: Object |       dict: Object, | ||||||
|  |       permissions: Function | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     data () { |     data () { | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| <template> | <template> | ||||||
|   <div class="AppExaminationManage"> |   <div class="AppExaminationManage"> | ||||||
|     <keep-alive :include="['List']"> |     <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> |     </keep-alive> | ||||||
|   </div> |   </div> | ||||||
| </template> | </template> | ||||||
| @@ -17,7 +17,8 @@ | |||||||
|  |  | ||||||
|     props: { |     props: { | ||||||
|       instance: Function, |       instance: Function, | ||||||
|       dict: Object |       dict: Object, | ||||||
|  |       permissions: Function | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     data () { |     data () { | ||||||
|   | |||||||
| @@ -13,7 +13,7 @@ | |||||||
|             :selectList="dict.getDict('qjEIStatus')" |             :selectList="dict.getDict('qjEIStatus')" | ||||||
|             @change="search.current = 1, getList()"> |             @change="search.current = 1, getList()"> | ||||||
|           </ai-select> |           </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> | ||||||
|         <template #right> |         <template #right> | ||||||
|           <el-input |           <el-input | ||||||
| @@ -39,10 +39,10 @@ | |||||||
|         <el-table-column slot="options" width="160px" fixed="right" label="操作" align="center"> |         <el-table-column slot="options" width="160px" fixed="right" label="操作" align="center"> | ||||||
|           <template slot-scope="{ row }"> |           <template slot-scope="{ row }"> | ||||||
|             <div class="table-options"> |             <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" 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)">编辑</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)">详情</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'" @click="unshelf(row.id)">下架</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> --> |               <!-- <el-button type="text" @click="remove(row.id)">删除</el-button> --> | ||||||
|             </div> |             </div> | ||||||
|           </template> |           </template> | ||||||
| @@ -76,7 +76,8 @@ | |||||||
|  |  | ||||||
|     props: { |     props: { | ||||||
|       instance: Function, |       instance: Function, | ||||||
|       dict: Object |       dict: Object, | ||||||
|  |       permissions: Function | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     data () { |     data () { | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| <template> | <template> | ||||||
|   <div class="AppQuestionBank"> |   <div class="AppQuestionBank"> | ||||||
|     <keep-alive :include="['List']"> |     <keep-alive :include="['List']"> | ||||||
|       <component ref="component" :is="component" @change="onChange" :params="params" :instance="instance" :dict="dict"></component> |       <component ref="component" :is="component" @change="onChange" :params="params" :permissions="permissions" :instance="instance" :dict="dict"></component> | ||||||
|     </keep-alive> |     </keep-alive> | ||||||
|   </div> |   </div> | ||||||
| </template> | </template> | ||||||
| @@ -17,7 +17,8 @@ | |||||||
|  |  | ||||||
|     props: { |     props: { | ||||||
|       instance: Function, |       instance: Function, | ||||||
|       dict: Object |       dict: Object, | ||||||
|  |       permissions: Function | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     data () { |     data () { | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ | |||||||
|     <template slot="content"> |     <template slot="content"> | ||||||
|       <ai-search-bar class="search-bar"> |       <ai-search-bar class="search-bar"> | ||||||
|         <template #left> |         <template #left> | ||||||
|           <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_appquestionbank_edit')" @click="toAdd('')">添加</el-button> | ||||||
|         </template> |         </template> | ||||||
|         <template #right> |         <template #right> | ||||||
|           <el-input |           <el-input | ||||||
| @@ -32,9 +32,9 @@ | |||||||
|         <el-table-column slot="options" width="160px" fixed="right" label="操作" align="center"> |         <el-table-column slot="options" width="160px" fixed="right" label="操作" align="center"> | ||||||
|           <template slot-scope="{ row }"> |           <template slot-scope="{ row }"> | ||||||
|             <div class="table-options"> |             <div class="table-options"> | ||||||
|               <el-button type="text" @click="toAdd(row.id)">编辑</el-button> |               <el-button type="text" @click="toAdd(row.id)" v-if="permissions('app_appquestionbank_edit')">编辑</el-button> | ||||||
|               <el-button type="text" @click="toDetail(row.id)">详情</el-button> |               <el-button type="text" @click="toDetail(row.id)" v-if="permissions('app_appquestionbank_detail')">详情</el-button> | ||||||
|               <el-button type="text" @click="remove(row.id)">删除</el-button> |               <el-button type="text" @click="remove(row.id)" v-if="permissions('app_appquestionbank_del')">删除</el-button> | ||||||
|             </div> |             </div> | ||||||
|           </template> |           </template> | ||||||
|         </el-table-column> |         </el-table-column> | ||||||
| @@ -49,7 +49,8 @@ | |||||||
|  |  | ||||||
|     props: { |     props: { | ||||||
|       instance: Function, |       instance: Function, | ||||||
|       dict: Object |       dict: Object, | ||||||
|  |       permissions: Function | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     data () { |     data () { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user