@@ -400,6 +400,7 @@ const request = (data: any, type: any) => { | |||
getUpperWarehouseIdList() | |||
crudRef.value.reset(); | |||
crudRef.value.dialogFormVisible = false; | |||
ElMessage.success('操作成功') | |||
} | |||
}) | |||
} |
@@ -18,7 +18,7 @@ export const getZxqdFindConfig = (route) => ({ | |||
total: 0 | |||
}, | |||
crud: { | |||
add: IsPermission(route, 'ADD_BASE'), | |||
add: IsPermission(route, 'AGE_MAN_ADD'), | |||
edit: false, | |||
delete: false, | |||
derive: false, | |||
@@ -36,9 +36,9 @@ export const getZxqdFindConfig = (route) => ({ | |||
operateFixed: true, //操作栏是否固定(默认false) | |||
operateWidth: "150", //操作栏宽度 | |||
operate: { | |||
edit: IsPermission(route, 'EDIT_LIST'), //是否编辑(默认true) | |||
edit: IsPermission(route, 'AGE_MAN_EDIT'), //是否编辑(默认true) | |||
info: false, | |||
delete: true, //是否删除(默认true) IsPermission(route, 'DEL_LIST') | |||
delete: IsPermission(route, 'AGE_MAN_DEL'), //是否删除(默认true) IsPermission(route, 'DEL_LIST') | |||
announcement: false, // 公告 | |||
remark: false, // 详情 | |||
forbidden: false, // 禁用 |
@@ -11,7 +11,7 @@ | |||
placeholder="请输入渠道名称" /> | |||
</template> | |||
<template #CustomButton> | |||
<el-button type="success" @click="getItmeLiet()"> | |||
<el-button v-if="IsPermission(route, 'AGENCY_MANAGE')" type="success" @click="getItmeLiet()"> | |||
报备部中心渠道管理 | |||
</el-button> | |||
</template> | |||
@@ -25,7 +25,7 @@ | |||
</template> | |||
<template #fieldList> | |||
<div style="padding: 0 0 30px 0;text-align: right;"> | |||
<el-button type="success" icon="Plus" @click="addBtn" style="margin-bottom: 10px;" v-show="typeOption==='edit' || typeOption === 'add'"> | |||
<el-button v-if="IsPermission(route, 'ADD_BASE')" type="success" icon="Plus" @click="addBtn" style="margin-bottom: 10px;" v-show="typeOption==='edit' || typeOption === 'add'"> | |||
添加 | |||
</el-button> | |||
<el-table :data="dataForm.configSetInfos" :border="true" size="small"> | |||
@@ -306,7 +306,7 @@ const field = ref({ | |||
refresh: false, | |||
}, | |||
searchOperation: { | |||
isDownload: true, | |||
isDownload: IsPermission(route, 'DERIVE_BASE'), | |||
isAdd: false, | |||
isTransferMachine: false, | |||
}, |
@@ -19,7 +19,7 @@ export const getZxqdFindConfig = (route) => ({ | |||
total: 0 | |||
}, | |||
crud: { | |||
add: IsPermission(route, 'ADD_BASE'), | |||
add: IsPermission(route, 'AGE_MAN_ADD'), | |||
edit: false, | |||
delete: false, | |||
derive: false, | |||
@@ -37,9 +37,9 @@ export const getZxqdFindConfig = (route) => ({ | |||
operateFixed: true, //操作栏是否固定(默认false) | |||
operateWidth: "200", //操作栏宽度 | |||
operate: { | |||
edit: IsPermission(route, 'EDIT_LIST'), //是否编辑(默认true) | |||
info: IsPermission(route, 'INFO_LIST'), //是否编辑(默认true) | |||
delete: true, //是否删除(默认true) IsPermission(route, 'DEL_LIST') | |||
edit: IsPermission(route, 'AGE_MAN_EDIT'), //是否编辑(默认true) | |||
info: false, //是否编辑(默认true) | |||
delete: IsPermission(route, 'AGE_MAN_DEL'), //是否删除(默认true) | |||
announcement: false, // 公告 | |||
remark: false, // 详情 | |||
forbidden: false, // 禁用 |
@@ -12,16 +12,16 @@ | |||
placeholder="请输入渠道编号" /> | |||
</template> | |||
<template #searchCustomButton> | |||
<el-upload style="display: inline-block; margin: 0 10px" | |||
<el-upload style="display: inline-block; margin: 0 10px" v-if="IsPermission(route, 'BRANCH_IMPORT')" | |||
ref="upload" :data="data" :action="BaseService.getFileUploadUrl()" @success="onSuccess($event)" accept=".xlsx" :limit="1" | |||
:on-exceed="handleExceed" :show-file-list="false" :multiple="false"> | |||
<el-button type="primary" class="btn" icon="Upload">导入网点</el-button> | |||
</el-upload> | |||
<el-button type="warning" icon="Download" @click="handleFileName(1)" class="btn">网点模板下载</el-button> | |||
<el-button type="warning" icon="Download" @click="handleFileName(2)">办理点模板下载</el-button> | |||
<el-button type="warning" v-if="IsPermission(route, 'BRANCH_TMP')" icon="Download" @click="handleFileName(1)" class="btn">网点模板下载</el-button> | |||
<el-button type="warning" v-if="IsPermission(route, 'BLD_TMP')" icon="Download" @click="handleFileName(2)">办理点模板下载</el-button> | |||
</template> | |||
<template #CustomButton> | |||
<el-button type="success" @click="getItmeLiet()"> | |||
<el-button v-if="IsPermission(route, 'AGENCY_MANAGE')" type="success" @click="getItmeLiet()"> | |||
报备部中心网点管理 | |||
</el-button> | |||
<!-- <el-button type="primary" @click="getItmeLiet()">--> | |||
@@ -38,7 +38,7 @@ | |||
<!-- <el-button v-if="IsPermission(route, 'EDIT_LIST')" type="primary" @click="handleImport(scope.row)" size="small"> | |||
导入 | |||
</el-button> --> | |||
<el-upload style="display: inline-block; margin: 0 10px;vertical-align: middle;" ref="upload" :data="data" | |||
<el-upload style="display: inline-block; margin: 0 10px;vertical-align: middle;" ref="upload" :data="data" v-if="IsPermission(route, 'BLD_IMPORT')" | |||
:action="BaseService.getFileUploadUrl()" :on-success="handleAvatarSuccess" accept=".xls, .xlsx" :limit="1" | |||
:on-exceed="handleExceed" :show-file-list="false" :multiple="false"> | |||
<el-button type="primary" class="btn" icon="Upload" @click="handleImport(scope.row)" size="small"> | |||
@@ -49,7 +49,7 @@ | |||
<!-- <el-button v-if="IsPermission(route, 'EDIT_LIST')" type="primary" @click="handleFileName()" size="small">--> | |||
<!-- 下载模板--> | |||
<!-- </el-button>--> | |||
<el-button v-if="IsPermission(route, 'DEL_LIST')" :type="scope.row.state === 'ENABLE' ? 'danger' : 'success'" | |||
<el-button v-if="IsPermission(route, 'STAET_LIST')" :type="scope.row.state === 'ENABLE' ? 'danger' : 'success'" | |||
@click="handleDetele(scope.row)" size="small"> | |||
{{ scope.row.state === 'ENABLE' ? '禁用' : '启用' }} | |||
</el-button> | |||
@@ -531,7 +531,7 @@ let field = ref({ | |||
cancel: false, // 取消订单 | |||
}, | |||
searchOperation: { | |||
isDownload: true, | |||
isDownload: IsPermission(route, 'DERIVE_BASE'), | |||
isAdd: false, | |||
isTransferMachine: false, | |||
isToLead: false, // 导入 |
@@ -20,7 +20,7 @@ | |||
</el-select> | |||
</template> | |||
<template #operation="{ scope }"> | |||
<el-button style="margin-top: 5px" size="small" v-if="IsPermission(route, 'CUSTOMER_MANAGEMENT')" type="primary" | |||
<el-button style="margin-top: 5px" size="small" v-if="IsPermission(route, 'EDIT_LIST')" type="primary" | |||
@click="handleEdit(scope.row)"> | |||
编辑 | |||
</el-button> |
@@ -196,6 +196,7 @@ | |||
iconPath: '', | |||
} | |||
const juStart = ref(false) | |||
const isChiEdit = ref(false) | |||
const uploadImg = ref<UploadInstance>() | |||
const sourceMap = ref([ | |||
{ | |||
@@ -424,8 +425,10 @@ | |||
function handleEdit(row: IObject) { | |||
juStart.value = false | |||
if (row.type) { | |||
isChiEdit.value = true | |||
activeName.value = '2' | |||
} else { | |||
isChiEdit.value = false | |||
activeName.value = '1' | |||
} | |||
crudRef.value.dialogFormVisible = true | |||
@@ -454,6 +457,7 @@ | |||
} | |||
let api = '' | |||
params.menuId = params.pid | |||
// console.log("渠道管理",typeOption.value) | |||
if (typeOption.value === 'add' || typeOption.value === 'addChild') { | |||
delete params.id | |||
api = '/userw/rbac/menuadd' | |||
@@ -461,6 +465,11 @@ | |||
if (activeName.value == '2') { | |||
api = '/userw/rbac/permadd' | |||
} | |||
// if(isChiEdit.value){ | |||
// api = '/userw/rbac/permchange' | |||
// }else { | |||
// | |||
// } | |||
} else if (typeOption.value === 'edit') { | |||
api = '/userw/rbac/menuchange' | |||
if (activeName.value == '2') { |
@@ -24,7 +24,7 @@ | |||
</el-select> | |||
</template> | |||
<template #CustomButton> | |||
<el-button type="primary" icon="Plus" @click="batch"> | |||
<el-button type="primary" icon="Plus" @click="batch" v-if="IsPermission(route, 'AUTHORITY_OF_DISTRIBUTION')"> | |||
批量分配系统权限 | |||
</el-button> | |||
</template> | |||
@@ -46,7 +46,7 @@ | |||
</span> | |||
</template> | |||
<template #operation="{ scope }"> | |||
<el-button type="primary" v-if="scope.row.realNameAuthentication == 1" | |||
<el-button type="primary" v-if="scope.row.realNameAuthentication == 1 && IsPermission(route, 'REAL_NAME_AUTHENTICATION')" | |||
@click="realNameAuthentication(scope.row)" size="small"> | |||
实名认证 | |||
</el-button> | |||
@@ -57,13 +57,13 @@ | |||
<el-button v-if="IsPermission(route, 'EDIT_LIST')" type="primary" @click="handleEdit(scope.row)" size="small"> | |||
修改 | |||
</el-button> | |||
<el-button type="primary" @click="changeRecord(scope.row)" size="small"> | |||
<el-button v-if="IsPermission(route, 'INFO_LIST')" type="primary" @click="changeRecord(scope.row)" size="small"> | |||
变更记录 | |||
</el-button> | |||
<el-button v-if="scope.row.status == 2" type="success" @click="handleStaus(scope, 1)" size="small"> | |||
<el-button v-if="scope.row.status == 2 && IsPermission(route, 'STAET_LIST')" type="success" @click="handleStaus(scope, 1)" size="small"> | |||
启用 | |||
</el-button> | |||
<el-button v-if="scope.row.status == 1" type="danger" @click="handleStaus(scope, 2)" size="small"> | |||
<el-button v-if="scope.row.status == 1 && IsPermission(route, 'STAET_LIST')" type="danger" @click="handleStaus(scope, 2)" size="small"> | |||
停用 | |||
</el-button> | |||
</template> | |||
@@ -222,7 +222,7 @@ | |||
isAdd: false, | |||
isTransferMachine: false, | |||
isToLead: IsPermission(route, 'STAFF_EX'), | |||
isTemplate: true, | |||
isTemplate: IsPermission(route, 'DOWNLOAD_BASE'), | |||
templateUrl: | |||
import.meta.env.VITE_APP_UPLOAD_URL + 'zhywpt-issuer/template/userw/员工账号批量注册导入模板.xlsx', |