用户管理
This commit is contained in:
@@ -40,7 +40,7 @@ import DevicePopup from '@/views/machine/device/components/devicePopup.vue'
|
||||
import { CirclePlus, Delete, EditPen, Download, Upload } from '@element-plus/icons-vue'
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import {getPqDevList, deletePqDev, exportPqDev, downloadTemplate,importPqDev} from '@/api/device/device.ts'
|
||||
import { reactive, ref } from 'vue'
|
||||
import { onMounted, reactive, ref } from 'vue'
|
||||
import { ElMessageBox } from 'element-plus'
|
||||
|
||||
const dictStore = useDictStore()
|
||||
@@ -56,6 +56,7 @@ const getTableList = (params: any) => {
|
||||
return getPqDevList(newParams)
|
||||
}
|
||||
|
||||
|
||||
// 表格配置项
|
||||
const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
|
||||
{ type: 'selection', fixed: 'left', width: 70 },
|
||||
@@ -77,22 +78,17 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
|
||||
prop: 'devChns',
|
||||
label: '设备通道数',
|
||||
minWidth: 110,
|
||||
enum: dictStore.getDictData('Dev_Chns'),
|
||||
fieldNames: { label: 'name', value: 'code' },
|
||||
},
|
||||
{
|
||||
prop: 'devVolt',
|
||||
label: '额定电压(V)',
|
||||
minWidth: 130,
|
||||
enum: dictStore.getDictData('Dev_Volt'),
|
||||
fieldNames: { label: 'name', value: 'code' },
|
||||
},
|
||||
{
|
||||
prop: 'devCurr',
|
||||
label: '额定电流(A)',
|
||||
minWidth: 130,
|
||||
enum: dictStore.getDictData('Dev_Curr'),
|
||||
fieldNames: { label: 'name', value: 'code' },
|
||||
|
||||
},
|
||||
{
|
||||
prop: 'manufacturer',
|
||||
@@ -137,7 +133,7 @@ const handleDateChange = (startDateTemp: string, endDateTemp: string) => {
|
||||
// 打开 drawer(新增、编辑)
|
||||
const openDialog = (titleType: string, row: Partial<Device.ResPqDev> = {}) => {
|
||||
devicePopup.value?.open(titleType, row)
|
||||
|
||||
console.log(columns)
|
||||
}
|
||||
|
||||
// 批量删除设备
|
||||
|
||||
Reference in New Issue
Block a user