Commit 41649148 by jack
2 parents f4df38c8 97441189
......@@ -26,7 +26,7 @@
<div class="pull-right">
<el-button type="primary" @click="submitForm" :loading="aloading" v-if="!(setPageTitle == 'view')">保存</el-button>
<el-button @click="handCancle('addUpdateForm')">取消</el-button>
<el-button @click="handCancle('addUpdateForm')" :loading="bloading">取消</el-button>
</div>
</div>
</template>
......@@ -86,6 +86,7 @@ export default {
enableStatus: [{ required: true }],
// menuIdList: [{ required: true, validator: checkMenu, trigger: "blur" }],
},
filterText: "",
treedata: [],
treeLeafData: [],
tenantList: [],
......@@ -99,6 +100,7 @@ export default {
showTree: false,
checkList: [],
aloading: false,
bloading: false,
expandedKey: [],
tenantListElement: {},
type: 1,
......@@ -116,6 +118,11 @@ export default {
: "view";
},
},
watch: {
filterText(val) {
this.$refs.tree.filter(val);
},
},
created() {},
mounted() {
let _this = this;
......@@ -158,6 +165,7 @@ export default {
this.getInfo(o.id);
}
},
methods: {
// 获取租户列表
getTenantList(params) {
......@@ -257,6 +265,7 @@ export default {
_this.goBack();
})
.catch((error) => {
console.log("错误信息:", error);
_this.aloading = false;
});
});
......@@ -264,6 +273,7 @@ export default {
// 取消保存
handCancle(formName) {
this.bloading = true;
this.goBack();
},
......@@ -300,7 +310,7 @@ export default {
}
let o = res.data || {};
let typeList = o.typeIds;
console.log(new Date().getTime());
console.log("开始", new Date().getTime());
_this.treeMainWorker(o).then((j) => {
console.log(_this.newArr);
_this.expandedKey = j;
......@@ -316,7 +326,7 @@ export default {
_this.$refs.tree.setCheckedKeys(_arr);
}, 10);
});
console.log(new Date().getTime());
console.log("结束", new Date().getTime());
this.addUpdateForm.name = o.name || "暂无";
this.addUpdateForm.initOrganize = o.tenantId;
......@@ -379,6 +389,8 @@ export default {
_this.treedata = _obj.tree;
_this.newArr = _obj.data;
resolve(_obj);
//关闭线程
// webWorker.terminate();
};
// 监听文件失败
webWorker.onmessageerror = function (e) {
......@@ -466,6 +478,8 @@ export default {
let _obj = e.data;
_this.showTree = true;
resolve(_obj.expanded);
//关闭线程
// webWorker.terminate();
};
// 监听文件失败
webWorker.onmessageerror = function (e) {
......@@ -494,6 +508,9 @@ export default {
position: absolute;
z-index: 10;
}
.searchInput {
width: 30%;
}
}
.pull-right {
margin-top: 20px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!