Commit 671c1a94 by cwq0219

员工

1 parent 73114d49
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div> <div>
<el-popover popper-class="select-page" ref="popover" placement="bottom-start" trigger="click" v-model="popoverVisible" :disabled="targetItem.isDisabled" @show="onShowPopover" @hide="onHidePopover"> <el-popover popper-class="select-page" ref="popover" placement="bottom-start" trigger="click" v-model="popoverVisible" :disabled="targetItem.isDisabled" @show="onShowPopover" @hide="onHidePopover">
<el-radio-group class="select-tree" v-model="form[targetItem.name]" @change="handleChangeRadio"> <el-radio-group class="select-tree" v-model="form[targetItem.name]" @change="handleChangeRadio">
<el-radio class="page-radio" :title="item.merchantName" v-for="item in currList" :key="item.id" :label="item.id">{{ item.merchantName }}</el-radio> <el-radio class="page-radio" :style="`width: ${width - 32}px`" :title="item.merchantName" v-for="item in currList" :key="item.id" :label="item.id">{{ item.merchantName }}</el-radio>
</el-radio-group> </el-radio-group>
<div class="btns" v-show="page.total > 20"> <div class="btns" v-show="page.total > 20">
<el-button :size="size" :disabled="page.pageNum == 1" @click="handlePage(false)">上一页</el-button> <el-button :size="size" :disabled="page.pageNum == 1" @click="handlePage(false)">上一页</el-button>
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
} }
.page-radio { .page-radio {
display: block; display: block;
width: 320px; /* width: 320px; */
height: 36px; height: 36px;
line-height: 36px; line-height: 36px;
overflow: hidden; overflow: hidden;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<p class="edit-sub-title p-rl-20">员工基本信息</p> <p class="edit-sub-title p-rl-20">员工基本信息</p>
<glsx-combi-form class="p-tr-20" ref="editFormRef" labelWidth="160px" @handleImgDelete="handleImgDelete" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="p-tr-20" ref="editFormRef" labelWidth="160px" @handleImgDelete="handleImgDelete" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="merchantId" slot-scope="item"> <template slot="merchantId" slot-scope="item">
<select-page :form="editForm" width="300px" :targetItem="item.scope" @handleChange="handleChangeMerchant"></select-page> <select-page :form="editForm" width="360" :targetItem="item.scope" @handleChange="handleChangeMerchant"></select-page>
</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 || '360px' }" placeholder="可见商户" v-model="filterText"></el-input>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="90px" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData"> <glsx-combi-form ref="showSearch" labelWidth="90px" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData">
<template slot="merchantId" slot-scope="item"> <template slot="merchantId" slot-scope="item">
<select-page :form="searchForm" width="200px" :targetItem="item.scope" @handleChange="handleChangeMerchant"></select-page> <select-page :form="searchForm" width="200" :targetItem="item.scope" @handleChange="handleChangeMerchant"></select-page>
</template> </template>
<span slot="footer" class="footer-btns"> <span slot="footer" class="footer-btns">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
...@@ -249,22 +249,12 @@ export default { ...@@ -249,22 +249,12 @@ export default {
}) })
}, },
handleDetail(row) { handleDetail(row) {
this.$router.push({ this.$router.push('/employee/detailEmployee/' + row.id)
name: 'Account2EmployeeDetailEmployee',
params: {
id: row.id
}
})
}, },
// 1-新增;2-编辑 // 1-新增;2-编辑
handleEdit(addOrEdit, row) { handleEdit(addOrEdit, row) {
this.$router.push({ var id = row ? row.id : '-1'
name: 'Account2EmployeeEditEmployee', this.$router.push('/employee/editEmployee/' + addOrEdit + '/' + id)
params: {
addOrEdit: addOrEdit,
id: row ? row.id : '-1'
}
})
}, },
handleDelete(row) { handleDelete(row) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!