提交 a6ab1693 编写于 作者: haochangdi's avatar haochangdi

解决loading消失时间不正确的问题

上级 2c341d8b
...@@ -313,8 +313,6 @@ export default { ...@@ -313,8 +313,6 @@ export default {
} }
}, },
mounted() { mounted() {
}, },
methods: { methods: {
initRange() { initRange() {
...@@ -322,7 +320,7 @@ export default { ...@@ -322,7 +320,7 @@ export default {
this.formOrganization.name = ""; this.formOrganization.name = "";
this.formOrganization.orgName = ""; this.formOrganization.orgName = "";
this.formOrganization.source = 0 this.formOrganization.source = 0
this.getList() this.getList(1)
}, },
setMoreOption(data, type) { setMoreOption(data, type) {
let option = []; let option = [];
...@@ -347,7 +345,7 @@ export default { ...@@ -347,7 +345,7 @@ export default {
this.formOrganization.pageNum = 1; this.formOrganization.pageNum = 1;
this.getList() this.getList()
}, },
getList() { getList(first) {
let idType = localStorage.getItem("storageIdType"); let idType = localStorage.getItem("storageIdType");
let req = { let req = {
circleId: this.circleId, circleId: this.circleId,
...@@ -360,7 +358,10 @@ export default { ...@@ -360,7 +358,10 @@ export default {
}; };
openLoading(vm); openLoading(vm);
mpRelSearch(req).then(res => { mpRelSearch(req).then(res => {
closeLoading(vm); if (!first) {
closeLoading(vm);
}
if (res.code == "000000") { if (res.code == "000000") {
this.peoplesDtoList = res.data.peoplesDtoList; this.peoplesDtoList = res.data.peoplesDtoList;
this.totalPeople = res.data.total; this.totalPeople = res.data.total;
......
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
}, },
created() { created() {
this.initPrivilege(); this.initPrivilege();
this.search(); this.search(1);
}, },
methods: { methods: {
...@@ -167,16 +167,17 @@ ...@@ -167,16 +167,17 @@
}, },
// 搜索 // 搜索
search(){ search(first){
this.searchForm.pageNo = 1; this.searchForm.pageNo = 1;
this.searchList(); this.searchList(first);
}, },
searchList() { searchList(first) {
openLoading(this); if(!first) {
console.log('查询圈子')
openLoading(this);
}
let params = this.searchForm; let params = this.searchForm;
console.log('查询圈子')
applyList(params).then((res) => { applyList(params).then((res) => {
closeLoading(this); closeLoading(this);
if(res.code == "000000") { if(res.code == "000000") {
......
...@@ -135,8 +135,8 @@ ...@@ -135,8 +135,8 @@
</template> </template>
<script> <script>
import { openLoading, closeLoading } from "../../utils/utils"; import { openLoading, closeLoading } from "../../utils/utils";
import BreadCrumb from "@/components/breadcrumb.vue"; import BreadCrumb from "@/components/breadcrumb.vue";
import { getRangeList,updateRangeStatus, getCircleSettingList, saveCircleSetting} from "../../utils/yqrange/yqrangeApi"; import { getRangeList,updateRangeStatus, getCircleSettingList, saveCircleSetting} from "../../utils/yqrange/yqrangeApi";
import ElTabPane from "element-ui/packages/tabs/src/tab-pane"; import ElTabPane from "element-ui/packages/tabs/src/tab-pane";
import RangeApply from "./range-apply"; import RangeApply from "./range-apply";
export default { export default {
...@@ -401,7 +401,6 @@ export default { ...@@ -401,7 +401,6 @@ export default {
// 应用配置 // 应用配置
setting(row){ setting(row){
this.dialogSettingVisible = true; this.dialogSettingVisible = true;
this.settingForm.circleId = row.id; this.settingForm.circleId = row.id;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册