Commit f197a729 by cwq0219

员工

1 parent 5c248f3c
......@@ -12,7 +12,7 @@
<record :id="id"></record>
</el-tab-pane>
</el-tabs>
<div class="footer">
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" @click="handleClose">关闭</el-button>
</div>
</div>
......@@ -27,7 +27,9 @@ export default {
data() {
return {
id: '',
activeName: 'info'
activeName: 'info',
footerLeft: '0',
footerWidth: '0'
}
},
......@@ -40,6 +42,8 @@ export default {
computed: {},
created() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.id = this.$route.params.id
console.log(this.id)
},
......
<!-- 编辑员工 -->
<template>
<div class="config-employee">
<div class="container">
<div class="container" style="margin-top: 0;">
<p class="edit-title">{{ title }}</p>
</div>
<div class="container">
......@@ -16,7 +16,7 @@
</template>
</glsx-combi-form>
</div>
<div class="footer">
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div>
......@@ -37,6 +37,8 @@ export default {
1: '新增员工',
2: '编辑员工'
},
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
routeInfo: {
// 1-新增;2-编辑
......@@ -170,6 +172,8 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.params
this.getAllMerchantList()
},
......@@ -257,7 +261,7 @@ export default {
}
}
</script>
<style>
<style scoped>
.config-employee {
margin-bottom: 64px;
}
......@@ -283,6 +287,7 @@ export default {
bottom: 0;
width: 100%;
height: 64px;
/* left: 220px; */
text-align: center;
line-height: 64px;
background: #ffffff;
......
......@@ -7,7 +7,7 @@
</div>
<!-- </div> -->
<div class="container">
<div style="margin-bottom: 10px;">
<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>
......@@ -280,7 +280,7 @@ export default {
}
</script>
<style lang="scss">
<style lang="scss" scoped>
.config-employee .container {
margin-top: 20px;
background: #ffffff;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!