Commit 363f14e9 authored by wei's avatar wei

ll

parent 4860ee0a
...@@ -42,8 +42,6 @@ export default { ...@@ -42,8 +42,6 @@ export default {
components: { components: {
// LHeader // LHeader
}, },
created() {
},
data() { data() {
return { return {
text: "选择人员", text: "选择人员",
...@@ -52,6 +50,9 @@ export default { ...@@ -52,6 +50,9 @@ export default {
seletedItem:{} seletedItem:{}
}; };
}, },
mounted(){
this.seletedItem = this.listdata[0].children[0]
},
methods: { methods: {
// 待搜索框内容发生变化 // 待搜索框内容发生变化
onInput: debounce(function () { onInput: debounce(function () {
...@@ -62,7 +63,6 @@ export default { ...@@ -62,7 +63,6 @@ export default {
this.itemSel = e this.itemSel = e
}, },
clickItem(data) { clickItem(data) {
console.log(data, 'llll')
this.seletedItem = data this.seletedItem = data
}, },
save() { save() {
......
...@@ -415,9 +415,11 @@ export default { ...@@ -415,9 +415,11 @@ export default {
.then(res => { .then(res => {
// this.$toast.clear(); // this.$toast.clear();
// this.showSource = true; // this.showSource = true;
let newArr = this.renameKeyInTree(res.data,'name','text') let newArr = this.renameKeyInTree(res.data,'name','text')
this.floorSource = newArr; this.floorSource = newArr;
}) })
.catch(() => { .catch(() => {
this.$toast.fail("加载失败,请稍后再试"); this.$toast.fail("加载失败,请稍后再试");
......
...@@ -194,9 +194,9 @@ export default { ...@@ -194,9 +194,9 @@ export default {
getFun(`/risk/plan/floor/list/${id}`) getFun(`/risk/plan/floor/list/${id}`)
.then(res => { .then(res => {
this.floorListData = res.data this.floorListData = res.data
this.changeBuild(res.data[0].name)
this.option0 = this.changeData(res.data) this.option0 = this.changeData(res.data)
this.value0 = res.data[0].name || '' this.value0 = res.data[0].name || ''
this.changeBuild(res.data[0].name )
}) })
.catch(() => { .catch(() => {
this.$toast.fail("加载失败,请稍后再试"); this.$toast.fail("加载失败,请稍后再试");
......
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