getUpperWarehouseIdList() | getUpperWarehouseIdList() | ||||
crudRef.value.reset(); | crudRef.value.reset(); | ||||
crudRef.value.dialogFormVisible = false; | crudRef.value.dialogFormVisible = false; | ||||
ElMessage.success('操作成功') | |||||
} | } | ||||
}) | }) | ||||
} | } |
total: 0 | total: 0 | ||||
}, | }, | ||||
crud: { | crud: { | ||||
add: IsPermission(route, 'ADD_BASE'), | |||||
add: IsPermission(route, 'AGE_MAN_ADD'), | |||||
edit: false, | edit: false, | ||||
delete: false, | delete: false, | ||||
derive: false, | derive: false, | ||||
operateFixed: true, //操作栏是否固定(默认false) | operateFixed: true, //操作栏是否固定(默认false) | ||||
operateWidth: "150", //操作栏宽度 | operateWidth: "150", //操作栏宽度 | ||||
operate: { | operate: { | ||||
edit: IsPermission(route, 'EDIT_LIST'), //是否编辑(默认true) | |||||
edit: IsPermission(route, 'AGE_MAN_EDIT'), //是否编辑(默认true) | |||||
info: false, | info: false, | ||||
delete: true, //是否删除(默认true) IsPermission(route, 'DEL_LIST') | |||||
delete: IsPermission(route, 'AGE_MAN_DEL'), //是否删除(默认true) IsPermission(route, 'DEL_LIST') | |||||
announcement: false, // 公告 | announcement: false, // 公告 | ||||
remark: false, // 详情 | remark: false, // 详情 | ||||
forbidden: false, // 禁用 | forbidden: false, // 禁用 |
placeholder="请输入渠道名称" /> | placeholder="请输入渠道名称" /> | ||||
</template> | </template> | ||||
<template #CustomButton> | <template #CustomButton> | ||||
<el-button type="success" @click="getItmeLiet()"> | |||||
<el-button v-if="IsPermission(route, 'AGENCY_MANAGE')" type="success" @click="getItmeLiet()"> | |||||
报备部中心渠道管理 | 报备部中心渠道管理 | ||||
</el-button> | </el-button> | ||||
</template> | </template> | ||||
</template> | </template> | ||||
<template #fieldList> | <template #fieldList> | ||||
<div style="padding: 0 0 30px 0;text-align: right;"> | <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-button> | ||||
<el-table :data="dataForm.configSetInfos" :border="true" size="small"> | <el-table :data="dataForm.configSetInfos" :border="true" size="small"> | ||||
refresh: false, | refresh: false, | ||||
}, | }, | ||||
searchOperation: { | searchOperation: { | ||||
isDownload: true, | |||||
isDownload: IsPermission(route, 'DERIVE_BASE'), | |||||
isAdd: false, | isAdd: false, | ||||
isTransferMachine: false, | isTransferMachine: false, | ||||
}, | }, |
total: 0 | total: 0 | ||||
}, | }, | ||||
crud: { | crud: { | ||||
add: IsPermission(route, 'ADD_BASE'), | |||||
add: IsPermission(route, 'AGE_MAN_ADD'), | |||||
edit: false, | edit: false, | ||||
delete: false, | delete: false, | ||||
derive: false, | derive: false, | ||||
operateFixed: true, //操作栏是否固定(默认false) | operateFixed: true, //操作栏是否固定(默认false) | ||||
operateWidth: "200", //操作栏宽度 | operateWidth: "200", //操作栏宽度 | ||||
operate: { | 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, // 公告 | announcement: false, // 公告 | ||||
remark: false, // 详情 | remark: false, // 详情 | ||||
forbidden: false, // 禁用 | forbidden: false, // 禁用 |
placeholder="请输入渠道编号" /> | placeholder="请输入渠道编号" /> | ||||
</template> | </template> | ||||
<template #searchCustomButton> | <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" | ref="upload" :data="data" :action="BaseService.getFileUploadUrl()" @success="onSuccess($event)" accept=".xlsx" :limit="1" | ||||
:on-exceed="handleExceed" :show-file-list="false" :multiple="false"> | :on-exceed="handleExceed" :show-file-list="false" :multiple="false"> | ||||
<el-button type="primary" class="btn" icon="Upload">导入网点</el-button> | <el-button type="primary" class="btn" icon="Upload">导入网点</el-button> | ||||
</el-upload> | </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> | ||||
<template #CustomButton> | <template #CustomButton> | ||||
<el-button type="success" @click="getItmeLiet()"> | |||||
<el-button v-if="IsPermission(route, 'AGENCY_MANAGE')" type="success" @click="getItmeLiet()"> | |||||
报备部中心网点管理 | 报备部中心网点管理 | ||||
</el-button> | </el-button> | ||||
<!-- <el-button type="primary" @click="getItmeLiet()">--> | <!-- <el-button type="primary" @click="getItmeLiet()">--> | ||||
<!-- <el-button v-if="IsPermission(route, 'EDIT_LIST')" type="primary" @click="handleImport(scope.row)" size="small"> | <!-- <el-button v-if="IsPermission(route, 'EDIT_LIST')" type="primary" @click="handleImport(scope.row)" size="small"> | ||||
导入 | 导入 | ||||
</el-button> --> | </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" | :action="BaseService.getFileUploadUrl()" :on-success="handleAvatarSuccess" accept=".xls, .xlsx" :limit="1" | ||||
:on-exceed="handleExceed" :show-file-list="false" :multiple="false"> | :on-exceed="handleExceed" :show-file-list="false" :multiple="false"> | ||||
<el-button type="primary" class="btn" icon="Upload" @click="handleImport(scope.row)" size="small"> | <el-button type="primary" class="btn" icon="Upload" @click="handleImport(scope.row)" size="small"> | ||||
<!-- <el-button v-if="IsPermission(route, 'EDIT_LIST')" type="primary" @click="handleFileName()" size="small">--> | <!-- <el-button v-if="IsPermission(route, 'EDIT_LIST')" type="primary" @click="handleFileName()" size="small">--> | ||||
<!-- 下载模板--> | <!-- 下载模板--> | ||||
<!-- </el-button>--> | <!-- </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"> | @click="handleDetele(scope.row)" size="small"> | ||||
{{ scope.row.state === 'ENABLE' ? '禁用' : '启用' }} | {{ scope.row.state === 'ENABLE' ? '禁用' : '启用' }} | ||||
</el-button> | </el-button> | ||||
cancel: false, // 取消订单 | cancel: false, // 取消订单 | ||||
}, | }, | ||||
searchOperation: { | searchOperation: { | ||||
isDownload: true, | |||||
isDownload: IsPermission(route, 'DERIVE_BASE'), | |||||
isAdd: false, | isAdd: false, | ||||
isTransferMachine: false, | isTransferMachine: false, | ||||
isToLead: false, // 导入 | isToLead: false, // 导入 |
</el-select> | </el-select> | ||||
</template> | </template> | ||||
<template #operation="{ scope }"> | <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)"> | @click="handleEdit(scope.row)"> | ||||
编辑 | 编辑 | ||||
</el-button> | </el-button> |
iconPath: '', | iconPath: '', | ||||
} | } | ||||
const juStart = ref(false) | const juStart = ref(false) | ||||
const isChiEdit = ref(false) | |||||
const uploadImg = ref<UploadInstance>() | const uploadImg = ref<UploadInstance>() | ||||
const sourceMap = ref([ | const sourceMap = ref([ | ||||
{ | { | ||||
function handleEdit(row: IObject) { | function handleEdit(row: IObject) { | ||||
juStart.value = false | juStart.value = false | ||||
if (row.type) { | if (row.type) { | ||||
isChiEdit.value = true | |||||
activeName.value = '2' | activeName.value = '2' | ||||
} else { | } else { | ||||
isChiEdit.value = false | |||||
activeName.value = '1' | activeName.value = '1' | ||||
} | } | ||||
crudRef.value.dialogFormVisible = true | crudRef.value.dialogFormVisible = true | ||||
} | } | ||||
let api = '' | let api = '' | ||||
params.menuId = params.pid | params.menuId = params.pid | ||||
// console.log("渠道管理",typeOption.value) | |||||
if (typeOption.value === 'add' || typeOption.value === 'addChild') { | if (typeOption.value === 'add' || typeOption.value === 'addChild') { | ||||
delete params.id | delete params.id | ||||
api = '/userw/rbac/menuadd' | api = '/userw/rbac/menuadd' | ||||
if (activeName.value == '2') { | if (activeName.value == '2') { | ||||
api = '/userw/rbac/permadd' | api = '/userw/rbac/permadd' | ||||
} | } | ||||
// if(isChiEdit.value){ | |||||
// api = '/userw/rbac/permchange' | |||||
// }else { | |||||
// | |||||
// } | |||||
} else if (typeOption.value === 'edit') { | } else if (typeOption.value === 'edit') { | ||||
api = '/userw/rbac/menuchange' | api = '/userw/rbac/menuchange' | ||||
if (activeName.value == '2') { | if (activeName.value == '2') { |
</el-select> | </el-select> | ||||
</template> | </template> | ||||
<template #CustomButton> | <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> | </el-button> | ||||
</template> | </template> | ||||
</span> | </span> | ||||
</template> | </template> | ||||
<template #operation="{ scope }"> | <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"> | @click="realNameAuthentication(scope.row)" size="small"> | ||||
实名认证 | 实名认证 | ||||
</el-button> | </el-button> | ||||
<el-button v-if="IsPermission(route, 'EDIT_LIST')" type="primary" @click="handleEdit(scope.row)" size="small"> | <el-button v-if="IsPermission(route, 'EDIT_LIST')" type="primary" @click="handleEdit(scope.row)" size="small"> | ||||
修改 | 修改 | ||||
</el-button> | </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> | ||||
<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> | ||||
<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> | </el-button> | ||||
</template> | </template> | ||||
isAdd: false, | isAdd: false, | ||||
isTransferMachine: false, | isTransferMachine: false, | ||||
isToLead: IsPermission(route, 'STAFF_EX'), | isToLead: IsPermission(route, 'STAFF_EX'), | ||||
isTemplate: true, | |||||
isTemplate: IsPermission(route, 'DOWNLOAD_BASE'), | |||||
templateUrl: | templateUrl: | ||||
import.meta.env.VITE_APP_UPLOAD_URL + 'zhywpt-issuer/template/userw/员工账号批量注册导入模板.xlsx', | import.meta.env.VITE_APP_UPLOAD_URL + 'zhywpt-issuer/template/userw/员工账号批量注册导入模板.xlsx', |