提交 b4f76b05 authored 作者: lihuihui's avatar lihuihui

update

上级 21a4fd36
<template> <template>
<div class="main"> <div class="main">
<commonheader :title="title" /> <commonheader :title="title" @back="handleBack" :callBack="true" />
<div class="main_content"> <div class="main_content">
<div class="main_content_banner" v-html="data.desc"></div> <div class="main_content_banner" v-html="data.desc"></div>
<div class="main_content_form"> <div class="main_content_form">
...@@ -96,8 +96,8 @@ ...@@ -96,8 +96,8 @@
</div> </div>
</div> </div>
</div> </div>
<div style="display:flex;" v-if="formIndex === 0"> <div style="display: flex" v-if="formIndex === 0">
<div class="btn_operate" style="margin-left:auto;"> <div class="btn_operate" style="margin-left: auto">
<div class="batch-import" @click="isbatchImport = true" v-if="data.can_import == 1">批量导入人员</div> <div class="batch-import" @click="isbatchImport = true" v-if="data.can_import == 1">批量导入人员</div>
<img src="https://webapp-pub.ezijing.com/highway/h5/form_add.png" class="btn_add" @click="handleAdd" /> <img src="https://webapp-pub.ezijing.com/highway/h5/form_add.png" class="btn_add" @click="handleAdd" />
</div> </div>
...@@ -152,6 +152,9 @@ export default { ...@@ -152,6 +152,9 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { methods: {
handleBack() {
this.$emit('prev')
},
// 批量上传 // 批量上传
upload(data) { upload(data) {
const arr = [] const arr = []
...@@ -162,7 +165,7 @@ export default { ...@@ -162,7 +165,7 @@ export default {
const fd = allFormList.find(f => f.key === cItem) const fd = allFormList.find(f => f.key === cItem)
const clone = Object.assign({}, fd) const clone = Object.assign({}, fd)
clone.value = item[cItem] clone.value = item[cItem]
cItem === 'gender' ? clone.value = item[cItem].toString() : clone.value = item[cItem] cItem === 'gender' ? (clone.value = item[cItem].toString()) : (clone.value = item[cItem])
fd && arr[index].push(Object.assign({}, clone)) fd && arr[index].push(Object.assign({}, clone))
}) })
}) })
...@@ -193,7 +196,8 @@ export default { ...@@ -193,7 +196,8 @@ export default {
// 表单提交company_id // 表单提交company_id
params.users_info.forEach(item => { params.users_info.forEach(item => {
if (item.company) { if (item.company) {
const companyData = this.$store.state.allSettings.company_map || JSON.parse(window.localStorage.allSetting).company_map const companyData =
this.$store.state.allSettings.company_map || JSON.parse(window.localStorage.allSetting).company_map
const findData = companyData.find(name => name.company_name === item.company) const findData = companyData.find(name => name.company_name === item.company)
if (findData) { if (findData) {
item.company_id = findData.id item.company_id = findData.id
...@@ -298,9 +302,9 @@ export default { ...@@ -298,9 +302,9 @@ export default {
.main_content_banner { .main_content_banner {
margin-top: 0.84rem; margin-top: 0.84rem;
width: 100%; width: 100%;
::v-deep{ ::v-deep {
p{ p {
font-size: .24rem; font-size: 0.24rem;
} }
} }
} }
...@@ -333,7 +337,7 @@ export default { ...@@ -333,7 +337,7 @@ export default {
} }
} }
.btn_operate { .btn_operate {
padding-top: .3rem; padding-top: 0.3rem;
// float: right; // float: right;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -346,15 +350,15 @@ export default { ...@@ -346,15 +350,15 @@ export default {
margin-left: 0.3rem; margin-left: 0.3rem;
margin-right: 0.31rem; margin-right: 0.31rem;
} }
.batch-import{ .batch-import {
padding: 0 .33rem; padding: 0 0.33rem;
height: .81rem; height: 0.81rem;
background: rgba(255, 255, 255, 0.39); background: rgba(255, 255, 255, 0.39);
box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.09); box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.09);
border-radius: .44rem; border-radius: 0.44rem;
color: #333; color: #333;
line-height: .81rem; line-height: 0.81rem;
font-size: .28rem; font-size: 0.28rem;
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论