Commit a764c98c authored by 赵啸非's avatar 赵啸非

添加前端页面

parent 4a6a7d6f
...@@ -208,13 +208,12 @@ export default { ...@@ -208,13 +208,12 @@ export default {
/** 新增 */ /** 新增 */
add(row) { add(row) {
this.reset(); this.reset();
this.urls.currUrl = this.pageInfo.addUrl; this.urls.currUrl = this.pageInfo.addUrl;
this.pageInfo.type = "add"; this.pageInfo.type = "add";
this.form.siteId = row.siteId; this.form.siteId = row.siteId;
this.siteName = row.siteName; this.siteName = row.siteName;
this.siteCode = row.siteCode; this.siteCode = row.siteCode;
console.log("row",row)
this.getData(); this.getData();
this.title = "新增设备"; this.title = "新增设备";
}, },
...@@ -235,11 +234,12 @@ export default { ...@@ -235,11 +234,12 @@ export default {
afterRender(data) { afterRender(data) {
this.open = true; this.open = true;
console.log("form:", this.form);
if (this.pageInfo.type == "add") { if (this.pageInfo.type == "add") {
this.form.siteName = this.siteName; this.form.siteName = this.siteName;
this.form.siteCode = this.siteCode; this.form.siteCode = this.siteCode;
} }
console.log("form:", this.form);
}, },
afterSubmit(data) { afterSubmit(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment