Commit ab99e3cb by cwq0219

员工-样式

1 parent fa134b46
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<div class="container edit-box"> <div class="container edit-box">
<p class="edit-title">可见下级商户</p> <p class="edit-title">可见下级商户</p>
<div class="config-mer-name"> <div class="config-mer-name">
<p class="txt-ellipsis" style="margin-bottom: 32px" v-for="(item, index) in info.visibleInferiorMerName.split(',')" :key="index" :title="item">{{ item }}</p> <p class="txt-ellipsis" style="margin-bottom: 24px" v-for="(item, index) in info.visibleInferiorMerName.split(',')" :key="index" :title="item">{{ item }}</p>
</div> </div>
</div> </div>
</div> </div>
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
/* padding: 20px; */ /* padding: 20px; */
} }
.config-employee .edit-box.container { .config-employee .edit-box.container {
padding: 26px 0 20px; padding: 0 0 20px;
} }
.config-employee .flex { .config-employee .flex {
display: flex; display: flex;
...@@ -115,13 +115,12 @@ export default { ...@@ -115,13 +115,12 @@ export default {
.config-employee .edit-title { .config-employee .edit-title {
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 600;
font-family: PingFangSC-Medium, PingFang SC; height: 58px;
height: 28px; line-height: 58px;
line-height: 28px; border-bottom: 1px solid #e7eaec;
border-bottom: 1px solid #E7EAEC;
margin: 0 0; margin: 0 0;
padding: 0 0 17px 40px; padding: 0 20px;
} }
.config-employee .edit-sub-title { .config-employee .edit-sub-title {
......
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
</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 ref="editFormRef" isEdit="true" style="margin: 20px 20px 0 0;" @handleImgDelete="handleImgDelete" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form ref="editFormRef" isEdit="true" style="margin: 20px 20px 0 0;" @handleImgDelete="handleImgDelete" defaultWidth="320px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<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 :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-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="360" :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="primary" @click="handleResetPass">重置密码</el-button>
...@@ -21,14 +21,14 @@ ...@@ -21,14 +21,14 @@
<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" slot-scope="item">
<el-input :style="{ width: item.width || '360px' }" placeholder="可见商户" v-model="filterText"></el-input> <el-input :style="{ width: item.width || '320px' }" placeholder="可见商户" v-model="filterText"></el-input>
<el-tree 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 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>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" @click="handleConfirm">确定</el-button> <el-button type="primary" @click="handleConfirm">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button> <el-button type="default" @click="handleCancel">取消</el-button>
</div> </div>
</div> </div>
</template> </template>
...@@ -113,7 +113,6 @@ export default { ...@@ -113,7 +113,6 @@ export default {
name: 'merchantId', name: 'merchantId',
// nameLabel: 'merchantName', // nameLabel: 'merchantName',
noClearable: true, noClearable: true,
width: '360px',
optionList: [], optionList: [],
optionId: 'id', optionId: 'id',
optionLabel: 'merchantName', optionLabel: 'merchantName',
...@@ -123,14 +122,12 @@ export default { ...@@ -123,14 +122,12 @@ export default {
{ {
label: '员工姓名', label: '员工姓名',
name: 'staffName', name: 'staffName',
width: '360px',
type: 'input', type: 'input',
maxlength: 15 maxlength: 15
}, },
{ {
label: '登录手机号', label: '登录手机号',
name: 'staffPhone', name: 'staffPhone',
width: '360px',
type: 'input', type: 'input',
placeholder: '请输入您有效的手机号作为登录账户', placeholder: '请输入您有效的手机号作为登录账户',
maxlength: 11 maxlength: 11
...@@ -139,7 +136,6 @@ export default { ...@@ -139,7 +136,6 @@ export default {
label: '登录密码', label: '登录密码',
name: 'password', name: 'password',
showPass: true, showPass: true,
width: '360px',
type: 'input', type: 'input',
maxlength: 15, maxlength: 15,
suffixSlot: 'passwordSlot' suffixSlot: 'passwordSlot'
...@@ -153,7 +149,7 @@ export default { ...@@ -153,7 +149,7 @@ export default {
label: '角色权限', label: '角色权限',
name: 'roleIds', name: 'roleIds',
type: 'select', type: 'select',
width: '360px', width: '320px',
optionList: [], optionList: [],
optionId: 'id', optionId: 'id',
optionLabel: 'roleName', optionLabel: 'roleName',
...@@ -183,14 +179,12 @@ export default { ...@@ -183,14 +179,12 @@ export default {
{ {
label: '邮箱', label: '邮箱',
name: 'staffEmail', name: 'staffEmail',
width: '360px',
type: 'input', type: 'input',
maxlength: 30 maxlength: 30
}, },
{ {
label: '主要职务', label: '主要职务',
name: 'staffJob', name: 'staffJob',
width: '360px',
type: 'input', type: 'input',
maxlength: 10 maxlength: 10
} }
...@@ -389,7 +383,7 @@ export default { ...@@ -389,7 +383,7 @@ export default {
/* padding: 20px; */ /* padding: 20px; */
} }
.config-employee .edit-box.container { .config-employee .edit-box.container {
padding: 20px 0 20px; padding: 0 0 20px;
} }
.config-employee .p-tr-20 { .config-employee .p-tr-20 {
padding: 20px 20px 0; padding: 20px 20px 0;
...@@ -421,13 +415,12 @@ export default { ...@@ -421,13 +415,12 @@ export default {
.config-employee .edit-title { .config-employee .edit-title {
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 600;
font-family: PingFangSC-Medium,PingFang SC; height: 58px;
height: 28px; line-height: 58px;
line-height: 28px;
border-bottom: 1px solid #e7eaec; border-bottom: 1px solid #e7eaec;
margin: 0 0; margin: 0 0;
padding: 0 0 11px 40px; padding: 0 20px;
} }
/* .config-employee .edit-sub-title { /* .config-employee .edit-sub-title {
...@@ -440,7 +433,7 @@ export default { ...@@ -440,7 +433,7 @@ export default {
margin: 0 0; margin: 0 0;
} */ } */
.config-employee .filter-tree { .config-employee .filter-tree {
width: 360px; width: 320px;
max-height: 200px; max-height: 200px;
overflow: scroll; overflow: scroll;
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</span> </span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot> <slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<div v-else-if="item.type === 'input'"> <div v-else-if="item.type === 'input'">
<el-input :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :style="{ width: item.width || 'auto' }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)"></el-input> <el-input :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)"></el-input>
<slot :name="item.suffixSlot" :scope="item"></slot> <slot :name="item.suffixSlot" :scope="item"></slot>
</div> </div>
<!-- 选择-输入框 --> <!-- 选择-输入框 -->
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</template> </template>
<!-- 选择框 --> <!-- 选择框 -->
<div v-else-if="item.type === 'select'"> <div v-else-if="item.type === 'select'">
<el-select :style="{ width: item.width || '100%' }" v-model="formObj[item.name]" :clearable="item.isClear || false" :placeholder="'请选择' + item.label" :filterable="!item.noFilter" :disabled="item.isDisabled" :no-data-text="item.noDataText || '无数据'" :multiple="item.multiple || false" :collapse-tags="item.collapseTags || true" @change="selectAddAttr($event, item)"> <el-select :style="{ width: item.width || defaultWidth }" v-model="formObj[item.name]" :clearable="item.isClear || false" :placeholder="'请选择' + item.label" :filterable="!item.noFilter" :disabled="item.isDisabled" :no-data-text="item.noDataText || '无数据'" :multiple="item.multiple || false" :collapse-tags="item.collapseTags || true" @change="selectAddAttr($event, item)">
<el-option v-for="subItem in item.optionList" :key="subItem[item.optionId]" :label="subItem[item.optionLabel]" :value="subItem[item.optionId]" :disabled="subItem.isDisabled || false"></el-option> <el-option v-for="subItem in item.optionList" :key="subItem[item.optionId]" :label="subItem[item.optionLabel]" :value="subItem[item.optionId]" :disabled="subItem.isDisabled || false"></el-option>
</el-select> </el-select>
<slot :name="item.suffixSlot" :scope="item"></slot> <slot :name="item.suffixSlot" :scope="item"></slot>
...@@ -122,6 +122,10 @@ export default { ...@@ -122,6 +122,10 @@ export default {
type: String, type: String,
default: 'formRef' default: 'formRef'
}, },
defaultWidth: {
type: String,
default: '215px'
},
isEdit: { isEdit: {
type: Boolean, type: Boolean,
default: false default: false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!