From cb5c9968b763362d399e1c7fce1129ec7434aba8 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期三, 26 四月 2023 14:07:31 +0800 Subject: [PATCH] session保存token --- src/views/your/customerReceive-manage/customerReceive.vue | 29 +++++++++++++++++++++++------ 1 files changed, 23 insertions(+), 6 deletions(-) diff --git a/src/views/your/customerReceive-manage/customerReceive.vue b/src/views/your/customerReceive-manage/customerReceive.vue index c304e1f..e7ea829 100644 --- a/src/views/your/customerReceive-manage/customerReceive.vue +++ b/src/views/your/customerReceive-manage/customerReceive.vue @@ -12,9 +12,9 @@ openTip ? "鍏抽棴鎻愮ず" : "寮�鍚彁绀�" }}</Button> <Input - v-model="searchForm.name" + v-model="searchForm2.name" suffix="ios-search" - @on-change="getDataList" + @on-change="getDataList2" placeholder="杈撳叆鍟嗘埛鍚嶇О鎼滅储" clearable style="width: 250px" @@ -209,6 +209,14 @@ depModalVisible: false, modalTitle: "", searchForm: { + // 鎼滅储妗嗗垵濮嬪寲瀵硅薄 + pageNumber: 1, // 褰撳墠椤垫暟 + pageSize: 10, // 椤甸潰澶у皬 + sort: "createTime", // 榛樿鎺掑簭瀛楁 + order: "desc", // 榛樿鎺掑簭鏂瑰紡 + key: "", + }, + searchForm2: { // 鎼滅储妗嗗垵濮嬪寲瀵硅薄 pageNumber: 1, // 褰撳墠椤垫暟 pageSize: 10, // 椤甸潰澶у皬 @@ -445,6 +453,16 @@ } }); }, + getDataList2() { + this.loading = true; + getCustomerReceive(this.searchForm2).then((res) => { + this.loading = false; + if (res.success) { + this.data = res.result.records; + this.total = res.result.total; + } + }); + }, getPermList() { this.treeLoading = true; getAllPermissionList().then((res) => { @@ -522,7 +540,7 @@ addOil() { this.getAllCar(); this.modalType = 0; - this.modalTitle = "娣诲姞鍔犳补璁板綍"; + this.modalTitle = "娣诲姞璁板綍"; this.$refs.addOilForm.resetFields(); delete this.addOilForm.id; this.roleModalVisible = true; @@ -531,7 +549,7 @@ this.getAllCar(); this.addDate = v.addDate; this.modalType = 1; - this.modalTitle = "缂栬緫鍔犳补淇℃伅"; + this.modalTitle = "缂栬緫淇℃伅"; this.$refs.addOilForm.resetFields(); // 杞崲null涓�"" for (let attr in v) { @@ -541,7 +559,6 @@ } let str = JSON.stringify(v); let roleInfo = JSON.parse(str); - this.addOilForm = roleInfo; this.roleModalVisible = true; }, @@ -866,4 +883,4 @@ this.init(); }, }; -</script> \ No newline at end of file +</script> -- Gitblit v1.9.1