Commit 51f28d83 authored by wei's avatar wei

ll

parent 962395a3
......@@ -29,7 +29,7 @@
readonly
required
name="projectId"
:value="form.projectName"
:value="form.projectId"
label="所属项目"
placeholder="请输入"
/>
......
......@@ -627,24 +627,24 @@ export default {
this.form.projectId = "测试项目";
},
mounted() {
this.getFloor();
// this.getFloor();
this.getFXYS();
this.getZSGLX();
},
methods: {
getFloor() {
getFun(`/risk/plan/floor/list/${this.form.buildingIds}`)
.then(res => {
// this.$toast.clear();
// this.showSource = true;
// getFloor() {
// getFun(`/risk/plan/floor/list/${this.form.buildingIds}`)
// .then(res => {
// // this.$toast.clear();
// // this.showSource = true;
let newArr = this.renameKeyInTree(res.data, "name", "text");
this.floorSource = newArr;
})
.catch(() => {
this.$toast.fail("加载失败,请稍后再试");
});
},
// let newArr = this.renameKeyInTree(res.data, "name", "text");
// this.floorSource = newArr;
// })
// .catch(() => {
// this.$toast.fail("加载失败,请稍后再试");
// });
// },
getFXYS() {
getFun(`/risk/plan/dict/data/list?dictType=risk_plan_factor`)
.then(res => {
......
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