Commit 7a6632c6 by 匡雅琴

表单样式调整

1 parent dfe4ca04
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
</div> </div>
</div> </div>
</div> </div>
<GLFooter style="z-index: 2"> <GLFooter>
<el-button type="primary" @click="handleCancel">返回</el-button> <el-button type="primary" @click="handleCancel">返回</el-button>
</GLFooter> </GLFooter>
</div> </div>
......
...@@ -12,24 +12,24 @@ ...@@ -12,24 +12,24 @@
<div class="information-title">修改企业信息</div> <div class="information-title">修改企业信息</div>
<div class="information-form-box"> <div class="information-form-box">
<el-form ref="baseForm" :model="infoForm" class="account-body-form" label-width="120px" :rules="baseFormRules"> <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> <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-input class="input-width" v-model="infoForm.merchantAddress" placeholder="请选择商户地址" readonly="readonly"></el-input>
<el-button @click="hanleSelectMap" type="primary">选择地址</el-button> <el-button @click="hanleSelectMap" type="primary">选择地址</el-button>
</el-form-item> </el-form-item>
<el-form-item size="small" label="经营业务类型"> <el-form-item size="small" label="经营业务类型:">
<el-checkbox-group v-model="infoForm.businessType"> <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 :label="item.dictValue" v-for="item in businessType" :key="item.dictValue" :disabled="item.dictValue <= 6">{{ item.dictLabel }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </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-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>
<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> <el-input v-model="infoForm.residentPhone" class="phone-input" maxlength="13" placeholder="此电话会在小程序上显示,请填写真实有效的电话或手机号"></el-input>
<div @click="showTelDia" class="show-address">显示位置</div> <div @click="showTelDia" class="show-address">显示位置</div>
</el-form-item> </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> <select-brand :brandListTree="brandListTree" @clickBrand="clickBrand" ref="brandListTree"></select-brand>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</GLFooter> --> </GLFooter> -->
<TelPosition ref="telDialog" :visible.sync="dialogTelVisible"></TelPosition> <TelPosition ref="telDialog" :visible.sync="dialogTelVisible"></TelPosition>
</div> </div>
<GLFooter style="z-index: 2"> <GLFooter>
<el-button type="primary" @click="handleSave">提交</el-button> <el-button type="primary" @click="handleSave">提交</el-button>
<el-button @click="goback">取消</el-button> <el-button @click="goback">取消</el-button>
</GLFooter> </GLFooter>
...@@ -309,6 +309,7 @@ export default { ...@@ -309,6 +309,7 @@ export default {
background: #ffffff; background: #ffffff;
border-radius: 2px; border-radius: 2px;
min-height: calc(100% - 80px); min-height: calc(100% - 80px);
margin-bottom: 20px;
.information-title { .information-title {
height: 58px; height: 58px;
line-height: 58px; line-height: 58px;
......
...@@ -5,23 +5,23 @@ ...@@ -5,23 +5,23 @@
</div> --> </div> -->
<div class="container edit-box"> <div class="container edit-box">
<p class="edit-title">员工基本信息</p> <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"> <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> <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-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> </el-select>
<!-- <select-page v-else :form="editForm" width="320" :targetItem="item.scope" @handleChange="handleChangeMerchant"></select-page> --> <!-- <select-page v-else :form="editForm" width="320" :targetItem="item.scope" @handleChange="handleChangeMerchant"></select-page> -->
</template> </template>
<template v-if="routeInfo.addOrEdit == 2" slot="passwordSlot"> <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>
<template v-if="userInfo.accountLevel == 4 && routeInfo.addOrEdit == 1" slot="roleIdsSlot"> <template v-if="userInfo.accountLevel == 4 && routeInfo.addOrEdit == 1" slot="roleIdsSlot">
<el-button type="text" @click="handleJumpRole">添加角色</el-button> <el-button type="text" @click="handleJumpRole">添加角色</el-button>
<!-- <el-button class="m-l-10 el-icon-refresh" type="primary" @click="handleRefresh">刷新</el-button> --> <!-- <el-button class="m-l-10 el-icon-refresh" type="primary" @click="handleRefresh">刷新</el-button> -->
</template> </template>
<template slot="visibleInferiorMer" slot-scope="item"> <template slot="visibleInferiorMer">
<el-input :style="{ width: item.width || '320px' }" placeholder="可见商户" v-model="filterText"></el-input> <el-input placeholder="可见商户" v-model="filterText"></el-input>
<el-button class="m-l-10" type="primary" @click="checkAll">{{ isCheckAll ? '全不选' : '全选' }}</el-button> <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> <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> </template>
...@@ -130,11 +130,10 @@ export default { ...@@ -130,11 +130,10 @@ export default {
isBlock: true, isBlock: true,
editFormData: [ editFormData: [
{ {
label: '所属商户:', label: '所属商户:',
name: 'merchantId', name: 'merchantId',
type: 'selectInput', type: 'selectInput',
noClearable: true, noClearable: true,
width: '320px',
optionList: [], optionList: [],
optionId: 'id', optionId: 'id',
optionLabel: 'merchantName', optionLabel: 'merchantName',
...@@ -143,36 +142,40 @@ export default { ...@@ -143,36 +142,40 @@ export default {
placeholder: '请选择所属商户' placeholder: '请选择所属商户'
}, },
{ {
label: '员工姓名:', label: '员工姓名:',
name: 'staffName', name: 'staffName',
type: 'input', type: 'input',
maxlength: 15, maxlength: 15,
placeholder: '请输入员工姓名' placeholder: '请输入员工姓名',
width: 432
}, },
{ {
label: '登录手机号:', label: '登录手机号:',
name: 'staffPhone', name: 'staffPhone',
type: 'input', type: 'input',
placeholder: '请输入您有效的手机号作为登录账户', placeholder: '请输入您有效的手机号作为登录账户',
maxlength: 11, maxlength: 11,
isDisabled: false isDisabled: false,
width: 432
}, },
{ {
label: '登录密码:', label: '登录密码:',
name: 'password', name: 'password',
showPass: true, showPass: true,
type: 'input', type: 'input',
maxlength: 20, maxlength: 20,
suffixSlot: 'passwordSlot', suffixSlot: 'passwordSlot',
placeholder: '请输入登录密码' placeholder: '请输入登录密码',
width: 432
}, },
{ {
label: '可见商户:', label: '可见商户:',
name: 'visibleInferiorMer', name: 'visibleInferiorMer',
addHtml: 'visibleInferiorMer' addHtml: 'visibleInferiorMer',
width: 432
}, },
{ {
label: '角色权限:', label: '角色权限:',
name: 'roleIds', name: 'roleIds',
type: 'select', type: 'select',
optionList: [], optionList: [],
...@@ -182,7 +185,7 @@ export default { ...@@ -182,7 +185,7 @@ export default {
suffixSlot: 'roleIdsSlot' suffixSlot: 'roleIdsSlot'
}, },
{ {
label: '头像:', label: '头像:',
name: 'merchantImg', name: 'merchantImg',
type: 'upload', type: 'upload',
maxPhotoNum: 1, maxPhotoNum: 1,
...@@ -202,18 +205,20 @@ export default { ...@@ -202,18 +205,20 @@ export default {
} }
}, },
{ {
label: '邮箱:', label: '邮箱:',
name: 'staffEmail', name: 'staffEmail',
type: 'input', type: 'input',
maxlength: 30, maxlength: 30,
placeholder: '请输入邮箱' placeholder: '请输入邮箱',
width: 432
}, },
{ {
label: '主要职务:', label: '主要职务:',
name: 'staffJob', name: 'staffJob',
type: 'input', type: 'input',
maxlength: 10, maxlength: 10,
placeholder: '请输入主要职务' placeholder: '请输入主要职务',
width: 432
} }
], ],
baseData: { baseData: {
......
...@@ -4,24 +4,24 @@ ...@@ -4,24 +4,24 @@
<div class="top_title_widget"> <div class="top_title_widget">
<span class="title">{{ pageName }}</span> <span class="title">{{ pageName }}</span>
</div> </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 :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-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-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-option v-for="item in merchantList" :key="item.id" :label="item.merchantName" :value="item.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="所属商户:" prop="merchantName" v-if="pageType == 'create' && accountLevel == 4"> <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-input size="small" disabled v-model="ruleForm.merchantName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="所属商户:" prop="merchantName" v-if="pageType == 'edit'"> <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-input size="small" disabled v-model="ruleForm.merchantName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="角色名称:" prop="roleName"> <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-input size="small" maxlength="20" @input="changeInput" v-model="ruleForm.roleName" placeholder="请输入角色名称"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="角色说明:" prop="roleDesc"> <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-input type="textarea" :rows="2" size="small" maxlength="50" @input="changeInput" v-model="ruleForm.roleDesc" placeholder="请输入角色说明"></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item label="角色权限" prop="roleRoot"> <!-- <el-form-item label="角色权限" prop="roleRoot">
<div class="custom_element"> <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!