权限
This commit is contained in:
		| @@ -3,7 +3,7 @@ | ||||
|     <ai-card title="走访日志"> | ||||
|       <template #right> | ||||
|         <!-- <ai-select placeholder="档案状态" v-model="search.status" :selectList="dict.getDict('fpPrtpStatus')" @change="page.current=1,getTableData()"/> --> | ||||
|         <el-button type="text" icon="el-icon-plus" @click="dialog=true">添加</el-button> | ||||
|         <el-button type="text" icon="el-icon-plus" @click="dialog=true" v-if="$permissions('app_apppreventionreturntopovertylog_edit')">添加</el-button> | ||||
|       </template> | ||||
|       <template #content> | ||||
|         <div class="logItem" v-for="row in tableData" :key="row.id"> | ||||
| @@ -15,8 +15,8 @@ | ||||
|           <div class="content" v-text="row.detail"/> | ||||
|           <ai-uploader v-model="row.files" disabled/> | ||||
|           <div class="btns"> | ||||
|             <el-button type="text" @click="handleEdit(row)">编辑</el-button> | ||||
|             <el-button type="text" @click="handleDelete(row.id)">删除</el-button> | ||||
|             <el-button type="text" @click="handleEdit(row)" v-if="$permissions('app_apppreventionreturntopovertylog_edit')">编辑</el-button> | ||||
|             <el-button type="text" @click="handleDelete(row.id)" v-if="$permissions('app_apppreventionreturntopovertylog_del')">删除</el-button> | ||||
|           </div> | ||||
|         </div> | ||||
|         <ai-empty v-if="tableData.length==0"/> | ||||
|   | ||||
| @@ -9,7 +9,7 @@ | ||||
|         @onBackClick="back" | ||||
|       > | ||||
|         <template #rightBtn> | ||||
|           <el-button type="primary" icon="iconfont iconEdit" @click="gotoEdit">编辑</el-button> | ||||
|           <el-button type="primary" icon="iconfont iconEdit" @click="gotoEdit" v-if="$permissions('app_apppreventionreturntopoverty_edit')">编辑</el-button> | ||||
|           <template v-if="isGridAdmin"> | ||||
|             <el-button type="primary" @click="applyMonitor('纳入监测', 1)" v-if="detail.status === null">纳入监测</el-button> | ||||
|             <el-button type="primary" @click="examine('纳入监测审批', 2)" v-if="detail.status == 0">纳入监测审批</el-button> | ||||
| @@ -78,7 +78,7 @@ | ||||
|           </template> --> | ||||
|            | ||||
|           <el-button | ||||
|             v-if="/4/g.test(detail.status)" | ||||
|             v-if="$permissions('app_apppreventionreturntopoverty_del') && /4/g.test(detail.status)" | ||||
|             icon="iconfont iconDelete" | ||||
|             @click="handleDelete(detail.id)" | ||||
|           > | ||||
| @@ -309,7 +309,7 @@ | ||||
|                 </ai-card> | ||||
|               </template> | ||||
|             </el-tab-pane> | ||||
|             <el-tab-pane label="走访日志" lazy name="HrLog"> | ||||
|             <el-tab-pane label="走访日志" lazy name="HrLog" v-if="$permissions('app_apppreventionreturntopovertylog_detail')"> | ||||
|               <hr-log | ||||
|                 v-if="currentTab == 'HrLog'" | ||||
|                 :instance="instance" | ||||
|   | ||||
| @@ -4,7 +4,7 @@ | ||||
|       <ai-title slot="title" title="监测对象" isShowBottomBorder isShowArea v-model="search.areaId" :instance="instance" | ||||
|                 @change="page.current=1,getTableData()"> | ||||
|         <template #rightBtn> | ||||
|           <el-button type="primary" icon="iconfont iconSetting" @click="dialog=true">预警规则</el-button> | ||||
|           <el-button type="primary" icon="iconfont iconSetting" @click="dialog=true" v-if="$permissions('app_apppreventionreturntopovertyalarmconfig_edit')">预警规则</el-button> | ||||
|         </template> | ||||
|       </ai-title> | ||||
|       <template #content> | ||||
| @@ -29,8 +29,8 @@ | ||||
|         </ai-search-bar> | ||||
|         <ai-search-bar> | ||||
|           <template #left> | ||||
|             <el-button type="primary" icon="iconfont iconAdd" @click="showEdit()">添加</el-button> | ||||
|             <el-button icon="iconfont iconDelete" :disabled="!ids.length" @click="handleDelete(ids)">删除</el-button> | ||||
|             <el-button type="primary" icon="iconfont iconAdd" @click="showEdit()" v-if="$permissions('app_apppreventionreturntopoverty_edit')">添加</el-button> | ||||
|             <el-button icon="iconfont iconDelete" :disabled="!ids.length" @click="handleDelete(ids)" v-if="$permissions('app_apppreventionreturntopoverty_del')">删除</el-button> | ||||
|           </template> | ||||
|           <template #right> | ||||
|             <ai-import :instance="instance" name="监测对象" title="导入监测对象" | ||||
| @@ -52,8 +52,8 @@ | ||||
|           </el-table-column> | ||||
|           <el-table-column slot="options" label="操作" fixed="right" align="center"> | ||||
|             <template slot-scope="{row}"> | ||||
|               <el-button type="text" @click="showDetail(row.id)">详情</el-button> | ||||
|               <el-button type="text" @click="handleDelete(row.id)">删除</el-button> | ||||
|               <el-button type="text" @click="showDetail(row.id)" v-if="$permissions('app_apppreventionreturntopoverty_detail')">详情</el-button> | ||||
|               <el-button type="text" @click="handleDelete(row.id)" v-if="$permissions('app_apppreventionreturntopoverty_del')">删除</el-button> | ||||
|             </template> | ||||
|           </el-table-column> | ||||
|         </ai-table> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user