Commit 7a6632c6 by 匡雅琴

表单样式调整

1 parent dfe4ca04
......@@ -91,7 +91,7 @@
</div>
</div>
</div>
<GLFooter style="z-index: 2">
<GLFooter>
<el-button type="primary" @click="handleCancel">返回</el-button>
</GLFooter>
</div>
......@@ -245,4 +245,4 @@ export default {
.m-l-md {
margin-left: 20px;
}
</style>
\ No newline at end of file
</style>
......@@ -12,24 +12,24 @@
<div class="information-title">修改企业信息</div>
<div class="information-form-box">
<el-form ref="baseForm" :model="infoForm" class="account-body-form" label-width="120px" :rules="baseFormRules">
<el-form-item size="small" label="商户地址" class="map-row">
<el-form-item size="small" label="商户地址:" class="map-row">
<Province ref="provinceForm" :subdistrict="subdistrict" @selectProvince="selectProvince" @selectCity="selectCity"></Province>
<el-input class="input-width" v-model="infoForm.merchantAddress" placeholder="请选择商户地址" readonly="readonly"></el-input>
<el-button @click="hanleSelectMap" type="primary">选择地址</el-button>
</el-form-item>
<el-form-item size="small" label="经营业务类型">
<el-form-item size="small" label="经营业务类型:">
<el-checkbox-group v-model="infoForm.businessType">
<el-checkbox :label="item.dictValue" v-for="item in businessType" :key="item.dictValue" :disabled="item.dictValue <= 6">{{ item.dictLabel }}</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item size="small" label="营业时间" class="time-row">
<el-form-item size="small" label="营业时间:" class="time-row">
<el-time-picker size="small" value-format="HH:mm:ss" is-range v-model="infoForm.bussinessTime" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker>
</el-form-item>
<el-form-item size="small" label="驻店电话" style="position: relative" prop="residentPhone">
<el-form-item size="small" label="驻店电话:" style="position: relative" prop="residentPhone">
<el-input v-model="infoForm.residentPhone" class="phone-input" maxlength="13" placeholder="此电话会在小程序上显示,请填写真实有效的电话或手机号"></el-input>
<div @click="showTelDia" class="show-address">显示位置</div>
</el-form-item>
<el-form-item size="small" label="主营品牌" style="height: 500px">
<el-form-item size="small" label="主营品牌:" style="height: 500px">
<select-brand :brandListTree="brandListTree" @clickBrand="clickBrand" ref="brandListTree"></select-brand>
</el-form-item>
</el-form>
......@@ -47,7 +47,7 @@
</GLFooter> -->
<TelPosition ref="telDialog" :visible.sync="dialogTelVisible"></TelPosition>
</div>
<GLFooter style="z-index: 2">
<GLFooter>
<el-button type="primary" @click="handleSave">提交</el-button>
<el-button @click="goback">取消</el-button>
</GLFooter>
......@@ -309,6 +309,7 @@ export default {
background: #ffffff;
border-radius: 2px;
min-height: calc(100% - 80px);
margin-bottom: 20px;
.information-title {
height: 58px;
line-height: 58px;
......
......@@ -5,23 +5,23 @@
</div> -->
<div class="container edit-box">
<p class="edit-title">员工基本信息</p>
<glsx-combi-form style="margin: 20px 20px 0 0" ref="editFormRef" defaultWidth="320px" @handleImgDelete="handleImgDelete" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :label-width="'154px'" :formData="editFormData" :formRules="editRule" isEdit="true">
<glsx-combi-form style="margin: 20px 20px 0 0" ref="editFormRef" @handleImgDelete="handleImgDelete" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule" isEdit="true" class="gl-form-page">
<template slot="merchantId" slot-scope="item">
<span class="txt-ellipsis" v-if="routeInfo.addOrEdit == 2 || (routeInfo.addOrEdit == 1 && userInfo.accountLevel == 4)" :title="editForm.merchantName">{{ editForm.merchantName }}</span>
<el-select v-else :style="{ width: item.scope.width }" v-model="editForm[item.scope.name]" :clearable="item.scope.isClear || false" :placeholder="'请选择' + item.scope.label" :filterable="!item.scope.noFilter" @change="handleChangeMerchant($event)">
<el-select v-else v-model="editForm[item.scope.name]" :clearable="item.scope.isClear || false" :placeholder="'请选择' + item.scope.label" :filterable="!item.scope.noFilter" @change="handleChangeMerchant($event)">
<el-option v-for="subItem in baseData.allMerchantList" :key="subItem[item.scope.optionId]" :label="subItem[item.scope.optionLabel]" :value="subItem[item.scope.optionId]"></el-option>
</el-select>
<!-- <select-page v-else :form="editForm" width="320" :targetItem="item.scope" @handleChange="handleChangeMerchant"></select-page> -->
</template>
<template v-if="routeInfo.addOrEdit == 2" slot="passwordSlot">
<el-button class="m-l-10" type="primary" @click="handleResetPass">重置密码</el-button>
<el-button class="m-l-10" type="text" @click="handleResetPass">重置密码</el-button>
</template>
<template v-if="userInfo.accountLevel == 4 && routeInfo.addOrEdit == 1" slot="roleIdsSlot">
<el-button type="text" @click="handleJumpRole">添加角色</el-button>
<!-- <el-button class="m-l-10 el-icon-refresh" type="primary" @click="handleRefresh">刷新</el-button> -->
</template>
<template slot="visibleInferiorMer" slot-scope="item">
<el-input :style="{ width: item.width || '320px' }" placeholder="可见商户" v-model="filterText"></el-input>
<template slot="visibleInferiorMer">
<el-input placeholder="可见商户" v-model="filterText"></el-input>
<el-button class="m-l-10" type="primary" @click="checkAll">{{ isCheckAll ? '全不选' : '全选' }}</el-button>
<el-tree v-show="baseData.merchantTree.length != 0" show-checkbox check-on-click-node check-strictly class="filter-tree" node-key="id" :data="baseData.merchantTree" :props="defaultProps" default-expand-all :filter-node-method="filterNode" ref="tree" @check="handleClickNode"></el-tree>
</template>
......@@ -130,11 +130,10 @@ export default {
isBlock: true,
editFormData: [
{
label: '所属商户:',
label: '所属商户:',
name: 'merchantId',
type: 'selectInput',
noClearable: true,
width: '320px',
optionList: [],
optionId: 'id',
optionLabel: 'merchantName',
......@@ -143,36 +142,40 @@ export default {
placeholder: '请选择所属商户'
},
{
label: '员工姓名:',
label: '员工姓名:',
name: 'staffName',
type: 'input',
maxlength: 15,
placeholder: '请输入员工姓名'
placeholder: '请输入员工姓名',
width: 432
},
{
label: '登录手机号:',
label: '登录手机号:',
name: 'staffPhone',
type: 'input',
placeholder: '请输入您有效的手机号作为登录账户',
maxlength: 11,
isDisabled: false
isDisabled: false,
width: 432
},
{
label: '登录密码:',
label: '登录密码:',
name: 'password',
showPass: true,
type: 'input',
maxlength: 20,
suffixSlot: 'passwordSlot',
placeholder: '请输入登录密码'
placeholder: '请输入登录密码',
width: 432
},
{
label: '可见商户:',
label: '可见商户:',
name: 'visibleInferiorMer',
addHtml: 'visibleInferiorMer'
addHtml: 'visibleInferiorMer',
width: 432
},
{
label: '角色权限:',
label: '角色权限:',
name: 'roleIds',
type: 'select',
optionList: [],
......@@ -182,7 +185,7 @@ export default {
suffixSlot: 'roleIdsSlot'
},
{
label: '头像:',
label: '头像:',
name: 'merchantImg',
type: 'upload',
maxPhotoNum: 1,
......@@ -202,18 +205,20 @@ export default {
}
},
{
label: '邮箱:',
label: '邮箱:',
name: 'staffEmail',
type: 'input',
maxlength: 30,
placeholder: '请输入邮箱'
placeholder: '请输入邮箱',
width: 432
},
{
label: '主要职务:',
label: '主要职务:',
name: 'staffJob',
type: 'input',
maxlength: 10,
placeholder: '请输入主要职务'
placeholder: '请输入主要职务',
width: 432
}
],
baseData: {
......
......@@ -4,24 +4,24 @@
<div class="top_title_widget">
<span class="title">{{ pageName }}</span>
</div>
<div class="main_widget">
<div class="main_widget gl-form-page">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="154px" class="demo-ruleForm">
<el-form-item v-if="pageType == 'create' && accountLevel != 4" label="所属商户" prop="merchantId">
<el-select size="small" style="width: 40%" v-model="ruleForm.merchantId" clearable filterable placeholder="请选择" @change="merchantChange">
<el-form-item v-if="pageType == 'create' && accountLevel != 4" label="所属商户:" prop="merchantId">
<el-select size="small" v-model="ruleForm.merchantId" clearable filterable placeholder="请选择" @change="merchantChange">
<el-option v-for="item in merchantList" :key="item.id" :label="item.merchantName" :value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item label="所属商户:" prop="merchantName" v-if="pageType == 'create' && accountLevel == 4">
<el-input size="small" disabled style="width: 40%" v-model="ruleForm.merchantName"></el-input>
<el-form-item label="所属商户:" prop="merchantName" v-if="pageType == 'create' && accountLevel == 4">
<el-input size="small" disabled v-model="ruleForm.merchantName"></el-input>
</el-form-item>
<el-form-item label="所属商户:" prop="merchantName" v-if="pageType == 'edit'">
<el-input size="small" disabled style="width: 40%" v-model="ruleForm.merchantName"></el-input>
<el-form-item label="所属商户:" prop="merchantName" v-if="pageType == 'edit'">
<el-input size="small" disabled v-model="ruleForm.merchantName"></el-input>
</el-form-item>
<el-form-item label="角色名称:" prop="roleName">
<el-input size="small" maxlength="20" style="width: 40%; padding-right: 50px" @input="changeInput" v-model="ruleForm.roleName" placeholder="请输入角色名称"></el-input>
<el-form-item label="角色名称:" prop="roleName">
<el-input size="small" maxlength="20" @input="changeInput" v-model="ruleForm.roleName" placeholder="请输入角色名称"></el-input>
</el-form-item>
<el-form-item label="角色说明:" prop="roleDesc">
<el-input type="textarea" :rows="2" size="small" maxlength="50" style="width: 40%; padding-right: 50px" @input="changeInput" v-model="ruleForm.roleDesc" placeholder="请输入角色说明"></el-input>
<el-form-item label="角色说明:" prop="roleDesc">
<el-input type="textarea" :rows="2" size="small" maxlength="50" @input="changeInput" v-model="ruleForm.roleDesc" placeholder="请输入角色说明"></el-input>
</el-form-item>
<!-- <el-form-item label="角色权限" prop="roleRoot">
<div class="custom_element">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!