...
|
...
|
@@ -7,8 +7,7 @@ |
|
|
<div class="fa-text">产品管理</div>
|
|
|
</div>
|
|
|
<div class="peiches">
|
|
|
|
|
|
<el-button type="primary" @click="dialogVisible = true">添加产品</el-button>
|
|
|
<el-button type="primary" @click="addEidor">添加产品</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="biaoge">
|
...
|
...
|
@@ -93,16 +92,10 @@ |
|
|
</el-table-column>
|
|
|
<el-table-column fixed="right" label="操作" width="196">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
@click="dialogVisibleh = true"
|
|
|
<el-button type="text" size="small" @click="editor(scope.row)"
|
|
|
>编辑</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
v-if="scope.row.status == 0"
|
|
|
<el-button type="text" size="small" v-if="scope.row.status == 0"
|
|
|
>禁用</el-button
|
|
|
>
|
|
|
</template>
|
...
|
...
|
@@ -112,7 +105,7 @@ |
|
|
</div>
|
|
|
<div class="tiaoshu">
|
|
|
<div class="left-io"></div>
|
|
|
<div class="gon">共{{total}}条</div>
|
|
|
<div class="gon">共{{ total }}条</div>
|
|
|
<div class="kls">
|
|
|
<el-pagination
|
|
|
:page-size="20"
|
...
|
...
|
@@ -126,10 +119,10 @@ |
|
|
</div>
|
|
|
<!-- 添加产品 -->
|
|
|
<el-dialog
|
|
|
title="添加产品"
|
|
|
:title="editorProduct == '' ? '添加产品' : '编辑商品'"
|
|
|
:visible.sync="dialogVisible"
|
|
|
width="55%"
|
|
|
style='margin-top: 10%'
|
|
|
style="margin-top: 10%"
|
|
|
:append-to-body="true"
|
|
|
>
|
|
|
<div class="liebiao">
|
...
|
...
|
@@ -208,9 +201,8 @@ |
|
|
</div>
|
|
|
|
|
|
<div class="queren">
|
|
|
|
|
|
<el-button type="primary" round @click="xinzeng">确认</el-button>
|
|
|
<el-button round @click='dialogVisible = false'>取消</el-button>
|
|
|
<el-button round @click="dialogVisible = false">取消</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
...
|
...
|
@@ -235,7 +227,9 @@ export default { |
|
|
pageNum: 1,
|
|
|
productId: "", //产品编码
|
|
|
telegramStatus: "", //转态
|
|
|
total:null
|
|
|
total: null,
|
|
|
editorProduct: '',//获取同行的所有数据
|
|
|
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
...
|
...
|
@@ -304,11 +298,29 @@ export default { |
|
|
this.dialogImageUrl = file.url;
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
//**编辑商品 * */
|
|
|
editor(val) {
|
|
|
console.log(val)
|
|
|
this.editorProduct = val;
|
|
|
this.dialogVisible = true
|
|
|
this.productModel = val.productModel
|
|
|
this.breed = val.breed
|
|
|
this.deptId = val.deptId
|
|
|
this.productId = val.productId
|
|
|
this.size = val.size
|
|
|
this.productType = val.productType
|
|
|
this.weight = val.weight
|
|
|
},
|
|
|
/** 添加商品 * */
|
|
|
addEidor() {
|
|
|
this.dialogVisible = true
|
|
|
this.editorProduct = '';
|
|
|
}
|
|
|
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
<style>
|
|
|
|
|
|
.el-dialog__body {
|
|
|
padding: 5px 20px;
|
|
|
padding-bottom: 68px;
|
...
|
...
|
|