Commit 4ea17b0d authored by 王飞龙's avatar 王飞龙

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/router/index.js
parent cb3eb136
...@@ -54,7 +54,14 @@ export function listDevice(query) { ...@@ -54,7 +54,14 @@ export function listDevice(query) {
params: query params: query
}) })
} }
// 查询设备列表不分页
export function listDeviceAll(query) {
return request({
url: '/business/device/deviceList',
method: 'get',
params: query
})
}
// 查询设备详细 // 查询设备详细
export function getDevice(id) { export function getDevice(id) {
return request({ return request({
......
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
<!-- 5--> <!-- 5-->
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8" style="margin-left: 33.5%">
<el-form-item label="下午开始时间"> <el-form-item label="下午开始时间">
<el-time-select <el-time-select
style="width: 250px" style="width: 250px"
...@@ -268,8 +268,8 @@ ...@@ -268,8 +268,8 @@
</el-form> </el-form>
<el-row> <el-row>
<el-col style="display: flex;justify-content: center;margin-top: 20px"> <el-col style="display: flex;justify-content: center;margin-top: 20px">
<el-button class="queryBtn" type="primary" size="mini" @click="submitForm">确 认</el-button> <el-button class="queryBtn" type="primary" size="mini" icon="el-icon-check" @click="submitForm">提交</el-button>
<el-button class="resetBtn" size="mini" @click="cancel">返 回</el-button> <el-button class="resetBtn" size="mini" icon="el-icon-back" @click="cancel">返 回</el-button>
</el-col> </el-col>
</el-row> </el-row>
......
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
<!-- 5--> <!-- 5-->
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8" style="margin-left: 33.5%">
<el-form-item label="下午开始时间" prop="userTime"> <el-form-item label="下午开始时间" prop="userTime">
<el-time-select <el-time-select
v-model="useTime.pms" v-model="useTime.pms"
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
</el-form> </el-form>
<el-row> <el-row>
<el-col style="display: flex;justify-content: center;margin-top: 20px"> <el-col style="display: flex;justify-content: center;margin-top: 20px">
<el-button class="resetBtn" size="mini" @click="cancel">返 回</el-button> <el-button class="resetBtn" size="mini" icon="el-icon-back" @click="cancel">返 回</el-button>
</el-col> </el-col>
</el-row> </el-row>
</el-card> </el-card>
...@@ -448,7 +448,7 @@ ...@@ -448,7 +448,7 @@
<!-- 5--> <!-- 5-->
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8" style="margin-left: 33.5%">
<el-form-item label="下午开始时间" prop="userTime"> <el-form-item label="下午开始时间" prop="userTime">
<el-time-select <el-time-select
style="width: 250px" style="width: 250px"
...@@ -560,8 +560,8 @@ ...@@ -560,8 +560,8 @@
</el-form> </el-form>
<el-row> <el-row>
<el-col style="display: flex;justify-content: center;margin-top: 20px"> <el-col style="display: flex;justify-content: center;margin-top: 20px">
<el-button class="queryBtn" type="primary" size="mini" @click="submitForm">确 认</el-button> <el-button class="queryBtn" type="primary" size="mini" icon="el-icon-check" @click="submitForm">提交</el-button>
<el-button class="resetBtn" size="mini" @click="cancel">返 回</el-button> <el-button class="resetBtn" size="mini" icon="el-icon-back" @click="cancel">返 回</el-button>
</el-col> </el-col>
</el-row> </el-row>
</el-card> </el-card>
......
...@@ -160,11 +160,11 @@ ...@@ -160,11 +160,11 @@
style="color: #DB4747;" style="color: #DB4747;"
>{{ showStatus(scope.row.status) || '-' }}</span> >{{ showStatus(scope.row.status) || '-' }}</span>
</template> </template>
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <span :style="showStatus(scope.row.status) ==='• 可使用' ? 'color: #67C23A' : 'color: #F56C6C'">--> <!-- <span :style="showStatus(scope.row.status) ==='• 可使用' ? 'color: #67C23A' : 'color: #F56C6C'">-->
<!-- {{ showStatus(scope.row.status)||'-' }}--> <!-- {{ showStatus(scope.row.status)||'-' }}-->
<!-- </span>--> <!-- </span>-->
<!-- </template>--> <!-- </template>-->
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -346,10 +346,9 @@ ...@@ -346,10 +346,9 @@
<script> <script>
import { regionData, CodeToText } from 'element-china-area-data' import { regionData, CodeToText } from 'element-china-area-data'
import { listDevice, getDevice, delDevice } from '@/api/business/device' import { listDevice, getDevice, delDevice, listDeviceAll } from '@/api/business/device'
import { getInfo } from '@/api/login' import { getInfo } from '@/api/login'
import { parseTime } from '@/utils/ruoyi' import { parseTime } from '@/utils/ruoyi'
import {listUseManagementAll} from "@/api/business/use";
export default { export default {
name: 'EquipmentManagement', name: 'EquipmentManagement',
...@@ -604,7 +603,6 @@ export default { ...@@ -604,7 +603,6 @@ export default {
// this.deviceList.forEach(item => { // this.deviceList.forEach(item => {
// this.$set(item, 'checkTypeArr', item.checkType.split(',')) // this.$set(item, 'checkTypeArr', item.checkType.split(','))
// }) // })
console.log('deviceList', this.deviceList)
this.total = response.total this.total = response.total
this.loading = false this.loading = false
}) })
...@@ -699,22 +697,22 @@ export default { ...@@ -699,22 +697,22 @@ export default {
name: 'EquipmentAdd' name: 'EquipmentAdd'
}) })
}, },
/** 修改按钮操作 */ // /** 修改按钮操作 */
handleUpdate(row) { // handleUpdate(row) {
this.reset() // this.reset()
const id = row.id || this.ids // const id = row.id || this.ids
getDevice(id).then(response => { // getDevice(id).then(response => {
this.form = response.data // this.form = response.data
this.open = true // this.open = true
this.title = '修改设备' // this.title = '修改设备'
this.serviceAreaS = this.form.serviceArea.split(';') // this.serviceAreaS = this.form.serviceArea.split(';')
this.serviceArea = [] // this.serviceArea = []
for (let i = 0; i < this.serviceAreaS.length; i++) { // for (let i = 0; i < this.serviceAreaS.length; i++) {
this.serviceAreaS[i] = this.serviceAreaS[i].split(',') // this.serviceAreaS[i] = this.serviceAreaS[i].split(',')
this.serviceArea.push(this.serviceAreaS[i]) // this.serviceArea.push(this.serviceAreaS[i])
} // }
}) // })
}, // },
// // 全部选择 // // 全部选择
// selectAll() { // selectAll() {
// this.$refs.table.toggleAllSelection() // this.$refs.table.toggleAllSelection()
...@@ -731,7 +729,7 @@ export default { ...@@ -731,7 +729,7 @@ export default {
* @param all 是否永远进行全选操作 * @param all 是否永远进行全选操作
*/ */
async selectAll(selection = [], all = true) { async selectAll(selection = [], all = true) {
if (this.userList.length !== selection.length && !all) { if (this.deviceList.length !== selection.length && !all) {
this.effectTableSelect([]) this.effectTableSelect([])
} else { } else {
await this.changeTableSelect() await this.changeTableSelect()
...@@ -753,7 +751,7 @@ export default { ...@@ -753,7 +751,7 @@ export default {
*/ */
async changeTableSelect(notIncludeIds = []) { async changeTableSelect(notIncludeIds = []) {
// 获取反选的数据 // 获取反选的数据
const { data } = await listUseManagementAll({ notIncludeIds }) const { data } = await listDeviceAll({ notIncludeIds })
this.effectTableSelect(data) this.effectTableSelect(data)
}, },
// 反向选择 // 反向选择
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment