|
@@ -0,0 +1,101 @@
|
|
|
+<template>
|
|
|
+ <vxe-modal v-model="value" id="importProduct" width="70%" height="80%" show-zoom resize transfer v-loading="load">
|
|
|
+ <template #title>
|
|
|
+ <span>商品同步</span>
|
|
|
+ </template>
|
|
|
+ <template #default>
|
|
|
+ <div class="i-box">
|
|
|
+ <div class="table">
|
|
|
+ <by-table :propConfig="config" ref="table"></by-table>
|
|
|
+ </div>
|
|
|
+ <div class="icon">
|
|
|
+ <i class="el-icon-right" style="font-size: 30px;"></i>
|
|
|
+ </div>
|
|
|
+ <div class="table">
|
|
|
+ <by-table :propConfig="config2" ref="table"></by-table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </vxe-modal>
|
|
|
+
|
|
|
+</template>
|
|
|
+
|
|
|
+<script lang="ts">
|
|
|
+import { Component, Prop, Vue, Watch } from "vue-property-decorator";
|
|
|
+@Component
|
|
|
+export default class ImportProduct extends Vue {
|
|
|
+ value = false;
|
|
|
+ load = false;
|
|
|
+ config={
|
|
|
+ attr:{
|
|
|
+ size:'mini',
|
|
|
+ align:'center'
|
|
|
+ },
|
|
|
+ columns:[{
|
|
|
+ title:'名称',
|
|
|
+ field:'name'
|
|
|
+ },{
|
|
|
+ title:'操作',
|
|
|
+ action:true,
|
|
|
+ width:170,
|
|
|
+ plugins:[{
|
|
|
+ icon:'el-icon-setting',
|
|
|
+ name:'同步商品',
|
|
|
+ audit:'',
|
|
|
+ event:{
|
|
|
+ click:(item:any) => {
|
|
|
+ console.log('该行数据:',item)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },{
|
|
|
+ icon:'el-icon-setting',
|
|
|
+ name:'直接注册',
|
|
|
+ audit:'',
|
|
|
+ event:{
|
|
|
+ click:(item:any) => {
|
|
|
+ console.log('该行数据:',item)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ config2={
|
|
|
+ attr:{
|
|
|
+ size:'mini',
|
|
|
+ align:'center'
|
|
|
+ },
|
|
|
+ columns:[{
|
|
|
+ title:'名称',
|
|
|
+ field:'name'
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ show(){}
|
|
|
+
|
|
|
+ setShow(v:boolean){
|
|
|
+ this.value = v;
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.i-box{
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ height: 100%;
|
|
|
+ .table{
|
|
|
+ width: 46%;
|
|
|
+ height: 100%;
|
|
|
+ overflow: auto;
|
|
|
+ box-shadow: 0 0 10px rgba(0,0,0,.1);
|
|
|
+ // background-color: aliceblue;
|
|
|
+ }
|
|
|
+ .icon{
|
|
|
+ width: 8%;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|