|
@@ -71,6 +71,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button v-if="scope.row.status === 1" size="small" icon="el-icon-close" type="warning" @click="ModifyStatus(scope.row,2)">暂停</el-button>
|
|
|
<el-button v-if="scope.row.status === 2" size="small" icon="el-icon-check" @click="ModifyStatus(scope.row,1)">有效</el-button>
|
|
|
+ <el-button size="small" icon="el-icon-edit" type="primary" @click="product(scope.row)">产品</el-button>
|
|
|
<el-button size="small" icon="el-icon-edit" type="warning" @click="ModifyEdit(scope.row)">编辑</el-button>
|
|
|
<el-button size="small" icon="el-icon-delete" type="danger" @click="ModifyDelete(scope.row)">删除</el-button>
|
|
|
</template>
|
|
@@ -196,6 +197,14 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <el-dialog :title="productData.customerName+' 产品'" width="85%" :visible.sync="productShow" center>
|
|
|
+ test
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="productShow = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="productSubmit">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<!-- 分页 -->
|
|
|
<div class="pagination">
|
|
|
<el-pagination
|
|
@@ -238,6 +247,8 @@ export default {
|
|
|
dataForm:{
|
|
|
userId:4,
|
|
|
},
|
|
|
+ productShow:false,
|
|
|
+ productData:{}, // 产品查看时的基本数据的数据
|
|
|
rules2:{
|
|
|
shorterName: [{ required: true, message: '请输入客户简称', trigger: 'blur' }],
|
|
|
customerName: [{ required: true, message: '请输入客户名称', trigger: 'blur' }],
|
|
@@ -304,6 +315,14 @@ export default {
|
|
|
this.total = res.data.data.total
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+ product(row){
|
|
|
+ this.productShow = true
|
|
|
+ this.productData = row
|
|
|
+ },
|
|
|
+ productSubmit(){
|
|
|
+ productShow = false
|
|
|
+ },
|
|
|
//新增或修改API
|
|
|
submitForm(){
|
|
|
this.$refs['dataForm'].validate((valid) => {
|