Commit 2ac46e87 authored by huai.li's avatar huai.li

客户导入

parent 4b57880f
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<el-col :span="18" class="header-search"> <el-col :span="18" class="header-search">
<el-form ref="form" :model="search" size="mini" label-width="0"> <el-form ref="form" :model="search" size="mini" label-width="0">
<div class="pull-right search-form"> <div class="pull-right search-form">
<slot name="pre"></slot>
<el-form-item v-if="searchKey"> <el-form-item v-if="searchKey">
<el-input size="small" v-model="search['ClientSearch[keyword]']" placeholder="关键词"> <el-input size="small" v-model="search['ClientSearch[keyword]']" placeholder="关键词">
<el-button slot="append" type="primary" @click.stop.prevent="searchKeyword">搜索</el-button> <el-button slot="append" type="primary" @click.stop.prevent="searchKeyword">搜索</el-button>
......
...@@ -7,6 +7,11 @@ ...@@ -7,6 +7,11 @@
:add-title="'客户导入'" :add-title="'客户导入'"
@update:headerAdd="() => add()" @update:headerAdd="() => add()"
@update:headerClear="() => searchClear()"> @update:headerClear="() => searchClear()">
<el-form-item slot="pre">
<el-button type="primary" size="mini" @click.stop.prevent="downLoad">
<i class="fa fa-download"></i><a href="/setting/download-templete">下载导入模版</a>
</el-button>
</el-form-item>
</search-header> </search-header>
<div class="page-body-content"> <div class="page-body-content">
<el-alert title="" type="info"> <el-alert title="" type="info">
...@@ -20,7 +25,7 @@ ...@@ -20,7 +25,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="description" align="center" label="导入信息"> <el-table-column prop="description" align="center" label="导入信息">
<template slot-scope="scope"> <template slot-scope="scope">
<a @click="showTip(scope.row)"><i class="fa fa-fw fa-file"></i></a> <a v-if="scope.row.status !== 3" @click="showTip(scope.row)"><i class="fa fa-fw fa-file"></i></a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="status_display" align="center" label="状态"> <el-table-column prop="status_display" align="center" label="状态">
...@@ -61,12 +66,15 @@ ...@@ -61,12 +66,15 @@
</div> </div>
</div> </div>
<FormModal ref="formModal"></FormModal> <FormModal ref="formModal"></FormModal>
<TipModal ref="tipModal">
</TipModal>
</section> </section>
</template> </template>
<script> <script>
import SearchHeader from '../../common/searchHeader' import SearchHeader from '../../common/searchHeader'
import BreadCrumb from '../BreadCrumb' import BreadCrumb from '../BreadCrumb'
import FormModal from './modal' import FormModal from './modal'
import TipModal from './tipModal.vue'
import Pagenation from '../pagenation' import Pagenation from '../pagenation'
import { import {
requestAPI, requestAPI,
...@@ -79,7 +87,8 @@ export default { ...@@ -79,7 +87,8 @@ export default {
SearchHeader, SearchHeader,
BreadCrumb, BreadCrumb,
Pagenation, Pagenation,
FormModal FormModal,
TipModal
}, },
data () { data () {
...@@ -126,7 +135,7 @@ export default { ...@@ -126,7 +135,7 @@ export default {
}, },
showTip (model) { showTip (model) {
// this.$refs. this.$refs.tipModal.show(model)
}, },
// 6.1新增 // 6.1新增
...@@ -173,4 +182,8 @@ export default { ...@@ -173,4 +182,8 @@ export default {
} }
</script> </script>
<style scoped> <style scoped>
a {
cursor: pointer;
color: white;
}
</style> </style>
...@@ -2,7 +2,13 @@ ...@@ -2,7 +2,13 @@
<section> <section>
<sidePopup ref="sidePopup" title="客户导入" :width="50" @update:close="() => btnClose()"> <sidePopup ref="sidePopup" title="客户导入" :width="50" @update:close="() => btnClose()">
<ul> <ul>
<li v-for="(index, item) in model.fail_description"> <li v-for="(value, key, index) in model.fail_description">
在第{{ key }}
<ul>
<li v-for="sItem in value">
{{ sItem }}
</li>
</ul>
</li> </li>
</ul> </ul>
</sidePopup> </sidePopup>
...@@ -17,7 +23,7 @@ export default { ...@@ -17,7 +23,7 @@ export default {
data () { data () {
return { return {
diaVis: false, diaVis: false,
model: null model: {}
} }
}, },
...@@ -28,13 +34,10 @@ export default { ...@@ -28,13 +34,10 @@ export default {
}, },
handleClose () { handleClose () {
this.$refs.sidePopup.close(() => { this.$refs.sidePopup.close()
this.$refs.form._resetFields()
})
}, },
btnClose () { btnClose () {
this.$refs.form._resetFields()
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment