|
@@ -162,7 +162,7 @@ const state = reactive({
|
|
|
{label: '更新时间', prop: 'updateTime', query: false, sortable: 'custom', type: 'datetime', resizable: true, conf: {format: (val: any) => u.fmt.fmtDateTime(val)}},
|
|
{label: '更新时间', prop: 'updateTime', query: false, sortable: 'custom', type: 'datetime', resizable: true, conf: {format: (val: any) => u.fmt.fmtDateTime(val)}},
|
|
|
{
|
|
{
|
|
|
label: '操作', prop: 'action', type: 'render', width: 180, align: 'center', fixed: 'right',
|
|
label: '操作', prop: 'action', type: 'render', width: 180, align: 'center', fixed: 'right',
|
|
|
- render: (h: any, row: any) => {
|
|
|
|
|
|
|
+ render: (h: any, row: any,rowData:any) => {
|
|
|
return (
|
|
return (
|
|
|
h('div', null, [
|
|
h('div', null, [
|
|
|
proxy.$auth('washDevice.modify') ?
|
|
proxy.$auth('washDevice.modify') ?
|
|
@@ -171,7 +171,7 @@ const state = reactive({
|
|
|
text: true,
|
|
text: true,
|
|
|
size: 'small',
|
|
size: 'small',
|
|
|
onClick: () => {
|
|
onClick: () => {
|
|
|
- handleRowClick('edit', row)
|
|
|
|
|
|
|
+ handleRowClick('edit', rowData)
|
|
|
}
|
|
}
|
|
|
}, () => '编辑') : '',
|
|
}, () => '编辑') : '',
|
|
|
proxy.$auth('washDevice.modify') ?
|
|
proxy.$auth('washDevice.modify') ?
|
|
@@ -189,7 +189,7 @@ const state = reactive({
|
|
|
text: true,
|
|
text: true,
|
|
|
size: 'small',
|
|
size: 'small',
|
|
|
onClick: () => {
|
|
onClick: () => {
|
|
|
- handleRowDelete(row)
|
|
|
|
|
|
|
+ handleRowDelete(rowData)
|
|
|
}
|
|
}
|
|
|
}, () => '删除') : '',
|
|
}, () => '删除') : '',
|
|
|
])
|
|
])
|
|
@@ -268,6 +268,7 @@ const handleRowConfigClick = (type: string, row: any) => {
|
|
|
|
|
|
|
|
// 打开详情页弹窗
|
|
// 打开详情页弹窗
|
|
|
const handleRowClick = (type: string, row: any) => {
|
|
const handleRowClick = (type: string, row: any) => {
|
|
|
|
|
+ debugger
|
|
|
device_dialog_ref.value.open(type, row);
|
|
device_dialog_ref.value.open(type, row);
|
|
|
};
|
|
};
|
|
|
// 删除点击
|
|
// 删除点击
|