Commit 671c1a94 by cwq0219

员工

1 parent 73114d49
......@@ -3,7 +3,7 @@
<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-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>
<div class="btns" v-show="page.total > 20">
<el-button :size="size" :disabled="page.pageNum == 1" @click="handlePage(false)">上一页</el-button>
......@@ -127,7 +127,7 @@ export default {
}
.page-radio {
display: block;
width: 320px;
/* width: 320px; */
height: 36px;
line-height: 36px;
overflow: hidden;
......
......@@ -8,7 +8,7 @@
<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">
<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 slot="visibleInferiorMer" slot-scope="item">
<el-input :style="{ width: item.width || '360px' }" placeholder="可见商户" v-model="filterText"></el-input>
......
......@@ -8,7 +8,7 @@
<div>
<glsx-combi-form ref="showSearch" labelWidth="90px" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData">
<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>
<span slot="footer" class="footer-btns">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
......@@ -249,22 +249,12 @@ export default {
})
},
handleDetail(row) {
this.$router.push({
name: 'Account2EmployeeDetailEmployee',
params: {
id: row.id
}
})
this.$router.push('/employee/detailEmployee/' + row.id)
},
// 1-新增;2-编辑
handleEdit(addOrEdit, row) {
this.$router.push({
name: 'Account2EmployeeEditEmployee',
params: {
addOrEdit: addOrEdit,
id: row ? row.id : '-1'
}
})
var id = row ? row.id : '-1'
this.$router.push('/employee/editEmployee/' + addOrEdit + '/' + id)
},
handleDelete(row) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!