From a6ed23b018343a68f9fd276647cc4af817398d1b Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期四, 01 二月 2024 15:21:26 +0800 Subject: [PATCH] feat:修改部分问题 --- src/views/your/car-manage/carManage.vue | 138 ++++++++++++++++++++++++++-------------------- 1 files changed, 78 insertions(+), 60 deletions(-) diff --git a/src/views/your/car-manage/carManage.vue b/src/views/your/car-manage/carManage.vue index 3924580..0129cd1 100644 --- a/src/views/your/car-manage/carManage.vue +++ b/src/views/your/car-manage/carManage.vue @@ -13,9 +13,9 @@ openTip ? "鍏抽棴鎻愮ず" : "寮�鍚彁绀�" }}</Button> <Input - v-model="searchForm.carNo" + v-model="searchForm2.carNo" suffix="ios-search" - @on-change="getDataList" + @on-change="getDataList2" placeholder="杈撳叆杞︾墝鍙锋悳绱�" clearable style="width: 250px" @@ -286,6 +286,14 @@ order: "desc", // 榛樿鎺掑簭鏂瑰紡 key: "", }, + searchForm2: { + // 鎼滅储妗嗗垵濮嬪寲瀵硅薄 + pageNumber: 1, // 褰撳墠椤垫暟 + pageSize: 10, // 椤甸潰澶у皬 + sort: "createTime", // 榛樿鎺掑簭瀛楁 + order: "desc", // 榛樿鎺掑簭鏂瑰紡 + key: "", + }, carForm: { status : 0 }, @@ -323,6 +331,61 @@ sortable: true, }, { + title: "鍙告満", + key: "nickName", + width: 100, + }, + { + title: "閰嶉�佸憳", + key: "followNickName", + width: 100, + }, + { + title: "鍝佺墝", + key: "brand", + width: 100, + }, + { + title: "鍨嬪彿", + key: "model", + width: 100, + }, + { + title: "鎺掗噺", + key: "displacement", + width: 100, + }, + { + title: "鍔犳补鍗″彿", + key: "addOilCode", + minWidth: 120, + // sortable: true, + render: (h, params) => { + return h("div",params.row.addOilCode=="undefined" ? '':params.row.addOilCode); + } + }, + { + title: "缂栧彿", + key: "code", + minWidth: 120, + tooltip:true, + // render: (h, params) => { + // return h("div",params.row.code=="undefined" ? '':params.row.code); + // } + }, + { + title: "璐疆骞翠唤", + key: "buyYear", + minWidth: 120, + sortable: true, + }, + { + title: "鐧昏鏃ユ湡", + key: "createTime", + minWidth: 180, + sortable: true, + }, + { title: "鐘舵��", key: "status", width: 100, @@ -354,61 +417,6 @@ title: "绉婚櫎鍘熷洜", key: "removeReason", width: 170, - sortable: true, - }, - { - title: "鍙告満", - key: "nickName", - width: 100, - }, - { - title: "閰嶉�佸憳", - key: "followNickName", - width: 100, - }, - { - title: "鍝佺墝", - key: "brand", - width: 100, - }, - { - title: "鍨嬪彿", - key: "model", - width: 100, - }, - { - title: "鎺掗噺", - key: "displacement", - width: 100, - }, - { - title: "鍔犳补鍗″彿", - key: "addOilCode", - minWidth: 120, - sortable: true, - render: (h, params) => { - return h("div",params.row.addOilCode=="undefined" ? '':params.row.addOilCode); - } - }, - { - title: "缂栧彿", - key: "code", - minWidth: 120, - sortable: true, - render: (h, params) => { - return h("div",params.row.code=="undefined" ? '':params.row.code); - } - }, - { - title: "璐疆骞翠唤", - key: "buyYear", - minWidth: 120, - sortable: true, - }, - { - title: "鐧昏鏃ユ湡", - key: "createTime", - minWidth: 180, sortable: true, }, { @@ -731,10 +739,20 @@ } }); }, + getDataList2() { + this.loading = true; + getCarList(this.searchForm2).then((res) => { + this.loading = false; + if (res.success) { + this.data = res.result.records; + this.total = res.result.total; + } + }); + }, getEquipmentList(carId) { this.loading = true; - this.searchForm.carId=carId; - getEquipment(this.searchForm).then((res) => { + this.searchForm2.carId=carId; + getEquipment(this.searchForm2).then((res) => { this.loading = false; if (res.success) { this.data2 = res.result.records; @@ -1236,4 +1254,4 @@ this.init(); }, }; -</script> \ No newline at end of file +</script> -- Gitblit v1.9.1