提交 33bcc4d8 authored 作者: zax's avatar zax

bug

上级 517f8403
...@@ -66,7 +66,8 @@ export default { ...@@ -66,7 +66,8 @@ export default {
productList: [], productList: [],
text: '', text: '',
producer: '', producer: '',
authority: true authority: true,
id: ''
} }
}, },
created() { created() {
...@@ -83,6 +84,7 @@ export default { ...@@ -83,6 +84,7 @@ export default {
this.form = String(this.productList.form); this.form = String(this.productList.form);
this.model = this.productList.model; this.model = this.productList.model;
this.producer = this.productList.producer; this.producer = this.productList.producer;
this.id = this.productList.id;
this.text = '产品信息修改' this.text = '产品信息修改'
} else { } else {
this.text = '产品新增' this.text = '产品新增'
...@@ -104,6 +106,7 @@ export default { ...@@ -104,6 +106,7 @@ export default {
producer: this.producer, producer: this.producer,
status: parseInt(this.status), status: parseInt(this.status),
techId: '', techId: '',
id: this.id,
type: parseInt(this.type) type: parseInt(this.type)
}; };
if ( this.text === '产品信息修改') { if ( this.text === '产品信息修改') {
......
...@@ -65,7 +65,8 @@ export default { ...@@ -65,7 +65,8 @@ export default {
form: '', form: '',
productList: [], productList: [],
text: '', text: '',
producer: '' producer: '',
id: ''
} }
}, },
created() { created() {
...@@ -79,6 +80,7 @@ export default { ...@@ -79,6 +80,7 @@ export default {
this.form = String(this.productList.form); this.form = String(this.productList.form);
this.model = this.productList.model; this.model = this.productList.model;
this.producer = this.productList.producer; this.producer = this.productList.producer;
this.id = this.productList.id;
this.text = '产品信息修改' this.text = '产品信息修改'
} else { } else {
this.text = '产品新增' this.text = '产品新增'
...@@ -100,6 +102,7 @@ export default { ...@@ -100,6 +102,7 @@ export default {
producer: this.producer, producer: this.producer,
status: parseInt(this.status), status: parseInt(this.status),
techId: '', techId: '',
id: this.id,
type: parseInt(this.type) type: parseInt(this.type)
}; };
console.log(data) console.log(data)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论