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

update

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