|
|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <el-button type="primary" size="small" :disabled="disabled" @click="addBtn">{{$t('添 加')}}</el-button>
|
|
|
+ <el-button type="primary" size="small" :disabled="disabled" @click="addBtn">{{title?$t(title):$t('添 加')}}</el-button>
|
|
|
<el-drawer append-to-body size="80%" :with-header="false" :visible.sync="drawer" @close="onClose">
|
|
|
<div class="container ">
|
|
|
<p class="normal-title normal-margin">{{$t(`产品类别`)}}</p>
|
|
|
- <div class="drawer__panel">
|
|
|
+ <div class="drawer__panel" style="margin-bottom: 0 !important;">
|
|
|
<div style="margin-bottom: 10px">
|
|
|
<uploadAllData
|
|
|
style="display: inline-block !important;"
|
|
|
@@ -16,7 +16,7 @@
|
|
|
<el-button type="primary" class="inline-16" size="small" :disabled="selectProductLength == 0" @click="onSumit">{{$t(`批 量 添 加`)}}</el-button>
|
|
|
<el-input size="small" style="width:200px;margin-bottom:10px" v-model="params.content.where.condition" :placeholder="`${$t(`编号`)}、${$t(`类别名称`)}、${$t(`品牌`)}`" @clear="getProductList(params.content.pageNumber = 1)" @keyup.native.enter="getProductList(params.content.pageNumber = 1)" clearable></el-input>
|
|
|
</div>
|
|
|
- <Table :checkbox="true" height="600" @selectionChange="selectArr" ref="table" id="itemclassid" v-model="itemno" :layout="tablecols" :data="productList" :custom="true" @upDateData="upDateData">
|
|
|
+ <Table :checkbox="true" height="calc(100vh - 220px)" @selectionChange="selectArr" ref="table" id="itemclassid" v-model="itemno" :layout="tablecols" :data="productList" :custom="true" @upDateData="upDateData">
|
|
|
<template v-slot:customcol="scope">
|
|
|
<div v-if="scope.column.columnname == 'attinfos'">
|
|
|
<previewImage
|
|
|
@@ -67,11 +67,11 @@
|
|
|
|
|
|
<script>
|
|
|
// import Table from './table'
|
|
|
-import Table from '@/components/table/index5'
|
|
|
+import Table from '@/components/table/index6'
|
|
|
import previewImage from '@/components/previewImage/index'
|
|
|
import uploadAllData from '@/components/uploadAllData/index'
|
|
|
export default {
|
|
|
- props:['disabled','typeName'],
|
|
|
+ props:['disabled','typeName','title'],
|
|
|
name: '',
|
|
|
components:{Table,previewImage,uploadAllData},
|
|
|
data() {
|