|
@@ -312,19 +312,20 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
async initData() {
|
|
|
+ console.log(this.kh,this.id)
|
|
|
let res = {};
|
|
|
if (this.kh + "" === "0") {
|
|
|
res = await asyncRequest.zdetail({ id: this.id });
|
|
|
} else {
|
|
|
- res = await asyncRequest.qdetail({ id: this.id });
|
|
|
+ res = await asyncRequest.qdetail({ companyNo: this.id });
|
|
|
}
|
|
|
const { code, data, message } = res;
|
|
|
if (code === 0) {
|
|
|
- const { pid, name, pname, companyName, parent, member } = data;
|
|
|
+ const { pid, name, pname, companyName, parent, member,id } = data;
|
|
|
console.log(data);
|
|
|
this.organName = pname;
|
|
|
this.ruleForm = {
|
|
|
- id: this.id,
|
|
|
+ id: id,
|
|
|
region: this.kh + "" || "0",
|
|
|
pid: parent ? parent : pid ? pid : "0",
|
|
|
name: name || "",
|