|
@@ -35,17 +35,19 @@
|
|
<el-form-item label="商品信息:" prop="products" :rules="rules.products">
|
|
<el-form-item label="商品信息:" prop="products" :rules="rules.products">
|
|
<template>
|
|
<template>
|
|
<el-button type="primary" autofocussize="mini" size="mini" icon="el-icon-plus" @click="handleDialogVisible">添加商品</el-button>
|
|
<el-button type="primary" autofocussize="mini" size="mini" icon="el-icon-plus" @click="handleDialogVisible">添加商品</el-button>
|
|
|
|
+ <el-button type="danger" :disabled="delDisabled" autofocussize="mini" size="mini" icon="el-icon-delete" @click="handleAlldel">删除</el-button>
|
|
<el-checkbox-group v-show="false" v-model="disguiseForm.products"></el-checkbox-group>
|
|
<el-checkbox-group v-show="false" v-model="disguiseForm.products"></el-checkbox-group>
|
|
</template>
|
|
</template>
|
|
<template v-if="disguiseForm.products && disguiseForm.products.length > 0">
|
|
<template v-if="disguiseForm.products && disguiseForm.products.length > 0">
|
|
- <el-table :data="disguiseForm.products" border width="1000" height="500">
|
|
|
|
- <el-table-column property="image" label="商品图片" align="center" width="80">
|
|
|
|
|
|
+ <el-table :data="disguiseForm.products" border height="500" @selection-change="handleSelecChange">
|
|
|
|
+ <el-table-column type="selection" width="55"></el-table-column>
|
|
|
|
+ <el-table-column property="image" label="商品图片" align="center" width="100">
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
<img :src="row.image" alt="" style="width:80px;height:80px;" />
|
|
<img :src="row.image" alt="" style="width:80px;height:80px;" />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="name" label="商品名称" align="center" width="300"></el-table-column>
|
|
|
|
- <el-table-column label="操作" align="center">
|
|
|
|
|
|
+ <el-table-column prop="name" label="商品名称" align="center"></el-table-column>
|
|
|
|
+ <el-table-column label="操作" align="center" width="100">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button type="text" @click="handleDeletePros(scope.$index)">删除</el-button>
|
|
<el-button type="text" @click="handleDeletePros(scope.$index)">删除</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -53,7 +55,7 @@
|
|
</el-table>
|
|
</el-table>
|
|
</template>
|
|
</template>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item style="margin-bottom: 10px;">
|
|
|
|
|
|
+ <el-form-item style="margin-top: 50px;">
|
|
<a href="/supplier/disguise.html">
|
|
<a href="/supplier/disguise.html">
|
|
<el-button type="primary" style="margin: 5px;" plain>返回</el-button>
|
|
<el-button type="primary" style="margin: 5px;" plain>返回</el-button>
|
|
</a>
|
|
</a>
|