Commit 2a73f075 by 王志慧

搜索样式修改

1 parent 66bcfcb9
......@@ -3,7 +3,7 @@
<div class="glsx-combi-form">
<el-form :ref="formRef" :inline="true" :model="formObj" :label-width="labelWidth" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px': '30px', ...item.style }" :label="item.label" :prop="item.name">
<el-form-item v-if="!item.isHide" :key="index" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
<span class="tips-label">{{ item.label }}</span>
<el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'">
......@@ -12,7 +12,7 @@
{{ item.label }}
</span>
<span v-else-if="!item.isHide && item.label" slot="label">
<span class="combi-form-label" :style="{ width: item.labelWidth ? (item.labelWidth + labelPaddingRight) + 'px' : '', 'padding-right': isEdit ? '12px' : (labelPaddingRight + 'px') }">{{ item.label }}</span>
<span class="combi-form-label" :style="{ width: item.labelWidth ? item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">{{ item.label }}</span>
</span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<div v-else-if="item.type === 'input'">
......@@ -90,7 +90,9 @@
</template>
</el-form-item>
</template>
<slot name="footer"></slot>
<el-form-item class="footer-btns">
<slot name="footer"></slot>
</el-form-item>
</el-form>
<el-dialog :visible.sync="isImgVisible">
<img class="dialog-img" width="100%" :src="dialogImageUrl" alt="" />
......@@ -319,7 +321,7 @@ export default {
.glsx-combi-form .activity-img {
position: relative;
color: #999999;
background-color: #F7F7F7;
background-color: #f7f7f7;
border: 1px dashed #d9d9d9;
cursor: pointer;
}
......@@ -388,4 +390,7 @@ export default {
height: 100%;
}
/* 图片上传 */
.footer-btns {
float: right;
}
</style>
......@@ -2,19 +2,31 @@
<template>
<div class="config-employee employee-list">
<div style="margin-bottom: 20px">
<GLButton @click="handleEdit(1)" :size="size" class="el-icon-plus" fn="创建员工" type="primary" mode="el-button">创建员工</GLButton>
<GLButton @click="handleEdit(1)" :size="size" class="el-icon-plus" fn="创建员工" type="primary" mode="el-button">创建员工</GLButton>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" >创建员工</el-button> -->
</div>
<div class="container">
<div>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData"></glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData2">
<span slot="footer" class="footer-btns">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<GLButton @click="handleExport" fn="导出" :size="size" type="primary" mode="el-button">导出</GLButton>
<!-- <el-button :size="size" type="primary" @click="handleExport">导出</el-button> -->
</span>
</glsx-combi-form>
<template v-if="userInfo.accountLevel != 4">
<glsx-combi-form ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData"></glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData2">
<span slot="footer" class="footer-btns">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<GLButton @click="handleExport" fn="导出" :size="size" type="primary" mode="el-button">导出</GLButton>
<!-- <el-button :size="size" type="primary" @click="handleExport">导出</el-button> -->
</span>
</glsx-combi-form>
</template>
<template v-else>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData3"></glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj">
<span slot="footer" class="footer-btns">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<GLButton @click="handleExport" fn="导出" :size="size" type="primary" mode="el-button">导出</GLButton>
<!-- <el-button :size="size" type="primary" @click="handleExport">导出</el-button> -->
</span>
</glsx-combi-form>
</template>
</div>
<!-- 表格区域 开始 -->
......@@ -24,8 +36,8 @@
<!-- <el-button type="text" @click="handleEdit(2, scope.scope)">修改</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> -->
<GLButton type="text" @click="handleDetail(scope.scope)" fn="查看" mode="el-button">查看</GLButton>
<GLButton type="text" @click="handleEdit(2, scope.scope)" fn="修改" mode="el-button">修改</GLButton>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
<GLButton type="text" @click="handleEdit(2, scope.scope)" fn="修改" mode="el-button">修改</GLButton>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
</div>
<template slot="otherOptions" slot-scope="scope">
......@@ -40,9 +52,9 @@
<p>启用前,你可先为该员工创建角色,配置其所需的功能权限。如下所示:</p>
<p>1. 角色管理-创建角色</p>
<p>2. 选择员工账户-修改角色</p>
<GLButton mode="el-switch" fn="开关" :size="size" slot="reference" v-model="scope.scope.statusName" active-value="启用" inactive-value="禁用" @change="e => handleSwitchChange(e, scope.scope)"></GLButton>
<GLButton mode="el-switch" fn="开关" :size="size" slot="reference" v-model="scope.scope.statusName" active-value="启用" inactive-value="禁用" @change="e => handleSwitchChange(e, scope.scope)"></GLButton>
</el-popover>
<GLButton mode="el-switch" fn="开关" v-else :size="size" slot="reference" v-model="scope.scope.statusName" active-value="启用" inactive-value="禁用" @change="e => handleSwitchChange(e, scope.scope)"></GLButton>
<GLButton mode="el-switch" fn="开关" v-else :size="size" slot="reference" v-model="scope.scope.statusName" active-value="启用" inactive-value="禁用" @change="e => handleSwitchChange(e, scope.scope)"></GLButton>
</GLButton>
</template>
</GLTable>
......@@ -134,6 +146,7 @@ export default {
}
}
],
searchFormData3: [],
// 表格
getListApi: this.$apis.employee.getListApi,
tableParams: {
......@@ -228,6 +241,7 @@ export default {
this.searchFormData.splice(0, 1)
var idx = this.tableParams.tableColumns.findIndex(item => item.prop == 'merchantName')
this.tableParams.tableColumns.splice(idx, 1)
this.searchFormData3 = [...this.searchFormData, ...this.searchFormData2]
}
this.getAllMerchantList()
this.getStaffStatusList()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!