tableOperation: false, //自定义table上方操作栏 | tableOperation: false, //自定义table上方操作栏 | ||||
paging: paging, //分页基础参数 | paging: paging, //分页基础参数 | ||||
isPageSizes: false, //是否修改分页pageSize | isPageSizes: false, //是否修改分页pageSize | ||||
paginationSize: 'default',//分页大小选择器 | |||||
pageSizes: [], //pagesize的值 | pageSizes: [], //pagesize的值 | ||||
autdisData: { | autdisData: { |
import { ElMessage, ElNotification, ElMessageBox } from 'element-plus' | |||||
export enum typeTy { | |||||
info = 'info', | |||||
warning = 'warning', | |||||
success = 'success', | |||||
error = 'error', | |||||
} | |||||
/** | |||||
* 显示消息通知 | |||||
* 默认情况下,消息类型设置为'info',但可以通过参数灵活地设置为其他类型 | |||||
* | |||||
* @param txt 要显示的消息文本 | |||||
* @param type 消息的类型,默认是'info',可以更改为'warning','success','info','error'等 | |||||
* @returns 无返回值,但会在界面上显示一个对应消息类型的通知 | |||||
*/ | |||||
export function msg(txt: string, type: typeTy) { | |||||
ElMessage({ | |||||
message: txt, | |||||
type, | |||||
}) | |||||
} | |||||
/** | |||||
* 显示消息通知 | |||||
* @param txt 消息的内容,即实际要显示的文本 | |||||
* @param title 消息的标题,默认为'提示',用于提供消息的上下文信息 | |||||
* @param type 消息的类型,默认为'info',用于定义消息的视觉风格,如信息、警告或错误等 | |||||
*/ | |||||
export function msgNotifi(txt: string, type: typeTy, title = '提示') { | |||||
ElNotification({ | |||||
title, | |||||
message: txt, | |||||
type, | |||||
}) | |||||
} | |||||
export function msgConfirm(txt: string, type: typeTy, title = '提示') { | |||||
return ElMessageBox.confirm(txt, title, { | |||||
confirmButtonText: '确认', | |||||
cancelButtonText: '取消', | |||||
type, | |||||
}) | |||||
} | |||||
export function msgAlert(txt: string, type: typeTy, title = '提示', other?) { | |||||
return ElMessageBox.alert(txt, title, { | |||||
confirmButtonText: '确认', | |||||
type, | |||||
...other, | |||||
}) | |||||
} |
let openId = cacheAccessToken['openId'] | let openId = cacheAccessToken['openId'] | ||||
subdata['openId'] = openId // 用户标识 | subdata['openId'] = openId // 用户标识 | ||||
subdata['opId'] = openId // 用户标识 | subdata['opId'] = openId // 用户标识 | ||||
subdata['agentId'] = cacheAccessToken['agencyId'] // 用户标识 | |||||
subdata['channelId'] = cacheAccessToken['serviceHallId'] // 用户标识 | |||||
let endData = arrayToJson(subdata) | let endData = arrayToJson(subdata) | ||||
let datas = JSON.parse(JSON.stringify(toRaw(data))); | let datas = JSON.parse(JSON.stringify(toRaw(data))); | ||||
if (typeOption.value === 'edit') { | if (typeOption.value === 'edit') { | ||||
// 编辑 | // 编辑 | ||||
api = '1c24550d75ab472ebd6aa88dcc07659d' | |||||
// api = '1c24550d75ab472ebd6aa88dcc07659d' | |||||
api = '/managew/api/product/releaseProductStandards/agreementUpdate' | |||||
datas.id = consultativeRowData.value.id | datas.id = consultativeRowData.value.id | ||||
} else { | } else { | ||||
// 新增 | // 新增 | ||||
api = '9c864ea3afb1411da7024cfbec504e61' | |||||
// api = '9c864ea3afb1411da7024cfbec504e61' | |||||
api = '/managew/api/product/releaseProductStandards/agreementInsert' | |||||
datas.productId = productRowData.value.releaseId | datas.productId = productRowData.value.releaseId | ||||
} | } | ||||
console.log(datas, 'datasdatas') | console.log(datas, 'datasdatas') |