|
|
|
@ -1,7 +1,14 @@
|
|
|
|
<!--新增商户-->
|
|
|
|
<!--新增商户-->
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<xy-dialog ref="dialog" :is-show.sync="isShow" :title="type === 'add' ? '新增商户' : '编辑商户'" :form="form" :rules="rules" type="form" @submit="submit">
|
|
|
|
<xy-dialog
|
|
|
|
|
|
|
|
ref="dialog"
|
|
|
|
|
|
|
|
:is-show.sync="isShow"
|
|
|
|
|
|
|
|
:title="type === 'add' ? '新增商户' : '编辑商户'"
|
|
|
|
|
|
|
|
:form="form"
|
|
|
|
|
|
|
|
:rules="rules"
|
|
|
|
|
|
|
|
type="form"
|
|
|
|
|
|
|
|
@submit="submit">
|
|
|
|
<template v-slot:name>
|
|
|
|
<template v-slot:name>
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item">
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
@ -186,6 +193,7 @@ export default {
|
|
|
|
if(!value){
|
|
|
|
if(!value){
|
|
|
|
return callback(new Error('密码不能为空'))
|
|
|
|
return callback(new Error('密码不能为空'))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
callback()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.type === 'editor'){
|
|
|
|
if(this.type === 'editor'){
|
|
|
|
callback()
|
|
|
|
callback()
|
|
|
|
|