From 5c53a09ff28e5be90af9c1bc0534a4320fc5aec0 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 23 十二月 2024 14:08:11 +0800
Subject: [PATCH] ll
---
admin/src/views/Inspection/plan.vue | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/admin/src/views/Inspection/plan.vue b/admin/src/views/Inspection/plan.vue
index 6320d32..421f804 100644
--- a/admin/src/views/Inspection/plan.vue
+++ b/admin/src/views/Inspection/plan.vue
@@ -12,8 +12,6 @@
<section>
<el-button type="primary" @click="search">鎼滅储</el-button>
- <el-button type="primary" :loading="isWorking.export" v-permissions="['business:ywpatrolscheme:exportExcel']"
- @click="exportExcel">瀵煎嚭</el-button>
<el-button @click="reset">閲嶇疆</el-button>
</section>
</el-form>
@@ -22,6 +20,8 @@
<ul class="toolbar" v-permissions="['business:ywpatrolscheme:create', 'business:ywpatrolscheme:delete']">
<li><el-button type="primary" @click="editClick()" icon="el-icon-plus"
v-permissions="['business:ywpatrolscheme:create']">鏂板缓</el-button></li>
+ <el-button type="primary" plain :loading="isWorking.export"
+ v-permissions="['business:ywpatrolscheme:exportExcel']" @click="exportExcel">瀵煎嚭</el-button>
<!-- <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete"
v-permissions="['business:ywpatrolscheme:delete']">鍒犻櫎</el-button></li> -->
</ul>
@@ -29,7 +29,7 @@
<el-table-column type="selection" width="55"></el-table-column>
<el-table-column prop="title" label="璁″垝鍚嶇О" min-width="100px"></el-table-column>
- <el-table-column prop="lineId" label="璁″垝缂栧彿" min-width="100px"></el-table-column>
+ <el-table-column prop="code" label="璁″垝缂栧彿" min-width="100px"></el-table-column>
<el-table-column prop="userName" label="璐熻矗浜哄憳" min-width="100px"></el-table-column>
<el-table-column prop="startDate" label="璁″垝鏃ユ湡" min-width="150px">
@@ -52,7 +52,8 @@
</el-table-column>
<el-table-column label="鐘舵��" min-width="100px">
<template v-slot="scope">
- <el-switch v-model="scope.row.status" @change="e => changeStatus(scope.row)" :active-value="0" :inactive-value="1">
+ <el-switch v-model="scope.row.status" @change="e => changeStatus(scope.row)" :active-value="0"
+ :inactive-value="1">
</el-switch>
</template>
</el-table-column>
@@ -89,7 +90,7 @@
return {
// 鎼滅储
searchForm: {
- title: ''
+ title: ''
}
}
},
@@ -104,7 +105,7 @@
},
methods: {
changeStatus(e) {
- console.log(e);
+ console.log(e)
updateStatusById(e).then(res => {
this.search()
Message.success('鐘舵�佷慨鏀规垚鍔�')
@@ -113,14 +114,14 @@
})
},
changeDate(e) {
- if(e && e.length > 0){
+ if (e && e.length > 0) {
this.$set(this.searchForm, 'startDate', e[0])
this.$set(this.searchForm, 'endDate', e[1])
- }else{
+ } else {
this.$set(this.searchForm, 'startDate', '')
this.$set(this.searchForm, 'endDate', '')
}
-
+
},
reset() {
this.searchForm = {}
@@ -134,7 +135,7 @@
this.$refs.operaYwPatrolSchemeWindow.open('鏂板缓宸℃璁″垝')
}
this.$refs.operaYwPatrolSchemeWindow.initData()
-
+
},
}
}
--
Gitblit v1.9.3