From 85841ef9441aff46d80c7458c928e085e78911a1 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期五, 01 四月 2022 14:43:10 +0800 Subject: [PATCH] 订单管理 --- src/views/personalCenter/components/SubAccount.vue | 72 +++++------------------------------- 1 files changed, 10 insertions(+), 62 deletions(-) diff --git a/src/views/personalCenter/components/SubAccount.vue b/src/views/personalCenter/components/SubAccount.vue index 380ef3a..4721b7c 100644 --- a/src/views/personalCenter/components/SubAccount.vue +++ b/src/views/personalCenter/components/SubAccount.vue @@ -23,8 +23,8 @@ </div> <div class="right"> - <div class="button searchBtn" @click="searchingBtn">鎼滅储</div> - <div class="button resetBtn" @click="clearSearch">閲嶇疆</div> + <div class="button searchBtn" @click="save">鎼滅储</div> + <div class="button resetBtn" @click="save">閲嶇疆</div> </div> </div> @@ -67,29 +67,7 @@ <el-table-column prop="userType" label="鐢ㄦ埛绫诲瀷"></el-table-column> <el-table-column prop="duration" label="鎺堟潈鏃堕暱"></el-table-column> <el-table-column prop="authList" label="鏉冮檺"></el-table-column> - <!-- <el-table-column label="瀹夎鏃堕棿" > - <template slot-scope="scope"> - <div v-if="scope.row.installTime.length > 1"> - <div>{{ scope.row.installTime[0] }}</div> - <div>{{ scope.row.installTime[1] }}</div> - </div> - <div v-else>--</div> - </template> - </el-table-column> --> - <!-- <el-table-column label="棣栨浣跨敤鏃堕棿" > - <template slot-scope="scope"> - <div v-if="scope.row.firstUseTime.length > 1"> - <div>{{ scope.row.firstUseTime[0] }}</div> - <div>{{ scope.row.firstUseTime[1] }}</div> - </div> - <div v-else>--</div> - </template> - </el-table-column> - - <el-table-column label="鎵�灞為泦缇�" show-overflow-tooltip > - <template> -- </template> - </el-table-column> --> - + <el-table-column label="鐘舵��"> <template slot-scope="scope"> <div v-if="scope.row.isBind == 1" class="status green">宸茬粦瀹�</div> @@ -103,7 +81,6 @@ <span class="iconfont option" @click="joinCluster(scope.row)" ></span > - <!-- 瑙g粦 --> <span class="iconfont option" @click="Untying(scope.row)" ></span @@ -151,7 +128,7 @@ ></JoinClusterBox> </div> <div class="sub-account" v-else-if="isShowAdd"> - <div class="add-title" @click="isShowAdd = false"> + <div class="add-title" @click="isShowAdd=false"> <span class="iconfont"></span> <span>娣诲姞瀛愯处鎴�</span> </div> @@ -212,8 +189,8 @@ </el-form> <div class="right"> - <div class="button searchBtn" @click="searchingBtn">鎼滅储</div> - <div class="button resetBtn" @click="clearSearch">閲嶇疆</div> + <div class="button searchBtn" @click="save">鎼滅储</div> + <div class="button resetBtn" @click="save">閲嶇疆</div> </div> </div> <div class="sub-account" v-else-if="isShowRelate"> @@ -230,8 +207,6 @@ </template> <script> -import { findDevList } from "@/api/device"; -// import AddBox from "@/views/equipmentManagement/equipmentList/components/AddBox"; import UnbindBox from "@/views/equipmentManagement/equipmentDetail/components/UnbindBox"; import QuitClusterBox from "@/views/equipmentManagement/equipmentList/components/QuitClusterBox"; import JoinClusterBox from "@/views/equipmentManagement/equipmentList/components/JoinClusterBox"; @@ -452,6 +427,7 @@ }, methods: { goback() { + this.isShowAdd=false this.isShowRelate = false; this.activeIndex = 0; }, @@ -484,42 +460,17 @@ }, // 鏌ヨ鍒楄〃 - searchingBtn() { - let param = { - page: this.page, - size: this.size, - // startTime: this.searchTime[0], - // endTime: this.searchTime[1], - inputText: this.inputText, - }; - findDevList(param) - .then((res) => { - this.dataList = res.data.list; - //鏃堕棿鍒嗚鏄剧ず + + save(){ - this.dataList.forEach((item) => { - item.installTime = item.installTime.split(" "); - item.firstUseTime = item.firstUseTime.split(" "); - }); - this.total = res.data.total; - if (res.data.total <= this.size) { - this.page = 1; - } - }) - .catch((err) => { - console.log(err); - }); }, - //鍒嗛〉鍔熻兘 handleSizeChange(size) { this.size = size; - this.searchingBtn(); }, //鍒嗛〉鍔熻兘 refrash(page) { this.page = page; - this.searchingBtn(); }, //瑙g粦鎸夐挳 @@ -559,13 +510,11 @@ //瑙g粦鎴愬姛鍥炶皟 reflash() { this.isShowUnbind = false; - this.searchingBtn(); }, clearSearch() { this.searchTime = this.getDateInit(); this.inputText = ""; - this.searchingBtn(); }, //閫�鍑洪泦缇� @@ -581,8 +530,7 @@ }, }, mounted() { - this.searchTime = this.getDateInit(); - this.searchingBtn(); + }, }; </script> -- Gitblit v1.8.0