Commit d6f3efdc authored by 王飞龙's avatar 王飞龙

bug修改

parent 8e903576
......@@ -387,7 +387,8 @@ export default {
],
head: [
{ min: 2, max: 20, message: '仅支持2~20位字符', trigger: 'blur' }
{ min: 2, max: 20, message: '仅支持2~20位字符', trigger: 'blur' },
{ pattern: /^[\a-\z\A-\Z\u4e00-\u9fe5\·]+$/, message: '仅支持中文、英文和·', trigger: 'blur' }
],
phone: [
{
......
......@@ -760,7 +760,8 @@ export default {
],
head: [
{ min: 2, max: 20, message: '仅支持2~20位字符', trigger: 'blur' }
{ min: 2, max: 20, message: '仅支持2~20位字符', trigger: 'blur' },
{ pattern: /^[\a-\z\A-\Z\u4e00-\u9fe5\·]+$/, message: '仅支持中文、英文和·', trigger: 'blur' }
],
phone: [
{
......
......@@ -138,7 +138,7 @@
@select="selectChange"
@select-all="selectChange"
>
<el-table-column type="selection" width="47" align="center" />
<el-table-column type="selection" width="47" align="center" />
<el-table-column align="left" label="序号" min-width="60" show-overflow-tooltip prop="index">
<template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span>
......@@ -280,6 +280,7 @@ import { listDevice, delDevice } from '@/api/business/device'
import { getInfo } from '@/api/login'
import { parseTime } from '@/utils/ruoyi'
import { mapGetters } from 'vuex'
import { listItem } from '@/api/business/item'
export default {
name: 'EquipmentManagement',
......@@ -516,9 +517,9 @@ export default {
}
if (this.userType === '00') {
this.serviceShow = false
this.itemType = 3
this.itemType = 2
}
// this.getItemByType()
this.getItemByType()
})
},
// 显示两位数字
......@@ -540,6 +541,14 @@ export default {
return '• 设备下架'
}
},
// 获取检查项目下拉框
getItemByType() {
listItem({ itemType: this.itemType }).then(res => {
console.log('检查项目', res)
this.checkItemOptions = res.rows
console.log('xdddd', this.checkItemOptions)
})
},
// 选择排序规则
handleSort(val) {
......@@ -741,9 +750,17 @@ export default {
handleExport() {
if (this.ids.length !== 0) {
const exportTable = {}
if (this.queryParams.orderByColumn === null) {
exportTable.orderByColumn = 'weight'
exportTable.isAsc = 'desc'
} else {
exportTable.orderByColumn = this.queryParams.orderByColumn
exportTable.isAsc = this.queryParams.isAsc
}
exportTable.deviceIdList = this.ids
this.download('business/device/export', exportTable, `设备管理-${this.exportFormatTime(new Date())}.xlsx`).then(res => {
this.$refs.table.clearSelection()
this.ids = []
})
} else {
this.$modal.msgWarning('请选择至少一条数据导出')
......
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