Commit 363f14e9 authored by wei's avatar wei

ll

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