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

添加前端页面

parent 4a6a7d6f
......@@ -208,13 +208,12 @@ export default {
/** 新增 */
add(row) {
this.reset();
this.urls.currUrl = this.pageInfo.addUrl;
this.pageInfo.type = "add";
this.form.siteId = row.siteId;
this.siteName = row.siteName;
this.siteCode = row.siteCode;
console.log("row",row)
this.getData();
this.title = "新增设备";
},
......@@ -235,11 +234,12 @@ export default {
afterRender(data) {
this.open = true;
console.log("form:", this.form);
if (this.pageInfo.type == "add") {
this.form.siteName = this.siteName;
this.form.siteCode = this.siteCode;
}
console.log("form:", this.form);
},
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