|
@@ -39,9 +39,9 @@
|
|
<!-- 其他操作区域 -->
|
|
<!-- 其他操作区域 -->
|
|
<div class="table-head-btn">
|
|
<div class="table-head-btn">
|
|
<div class="btn-left" style="display: flex">
|
|
<div class="btn-left" style="display: flex">
|
|
- <a-button type="primary" @click="formRef.onOpen()" v-if="hasPerm('alarmUserAdd')">
|
|
|
|
|
|
+ <!-- <a-button type="primary" @click="formRef.onOpen()" v-if="hasPerm('alarmUserAdd')">
|
|
<template #icon><plus-outlined /></template>新增
|
|
<template #icon><plus-outlined /></template>新增
|
|
- </a-button>
|
|
|
|
|
|
+ </a-button> -->
|
|
<xn-batch-button
|
|
<xn-batch-button
|
|
class="xn-mg08"
|
|
class="xn-mg08"
|
|
v-if="hasPerm('alarmUserBatchDelete')"
|
|
v-if="hasPerm('alarmUserBatchDelete')"
|
|
@@ -58,7 +58,11 @@
|
|
|
|
|
|
<template v-if="column.dataIndex === 'action'">
|
|
<template v-if="column.dataIndex === 'action'">
|
|
<a-space>
|
|
<a-space>
|
|
- <a @click="formRef.onOpen(record)" v-if="hasPerm('alarmUserEdit')">编辑</a>
|
|
|
|
|
|
+ <!-- <a @click="formRef.onOpen(record)" v-if="hasPerm('alarmUserEdit')">编辑</a>
|
|
|
|
+ <a-divider type="vertical" v-if="hasPerm(['alarmUserEdit', 'alarmUserDelete'], 'and')" /> -->
|
|
|
|
+
|
|
|
|
+ <a @click="perfectformRef.onOpen(record)">完善信息</a>
|
|
|
|
+
|
|
<a-divider type="vertical" v-if="hasPerm(['alarmUserEdit', 'alarmUserDelete'], 'and')" />
|
|
<a-divider type="vertical" v-if="hasPerm(['alarmUserEdit', 'alarmUserDelete'], 'and')" />
|
|
<a-popconfirm title="确定要删除吗?" @confirm="deleteAlarmUser(record)">
|
|
<a-popconfirm title="确定要删除吗?" @confirm="deleteAlarmUser(record)">
|
|
<a-button type="link" danger size="small" v-if="hasPerm('alarmUserDelete')">删除</a-button>
|
|
<a-button type="link" danger size="small" v-if="hasPerm('alarmUserDelete')">删除</a-button>
|
|
@@ -69,17 +73,23 @@
|
|
</s-table>
|
|
</s-table>
|
|
|
|
|
|
<Form ref="formRef" @successful="tableRef.refresh()" />
|
|
<Form ref="formRef" @successful="tableRef.refresh()" />
|
|
|
|
+
|
|
|
|
+ <perfectForm ref="perfectformRef" @successful="tableRef.refresh()" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup name="alarmuser">
|
|
<script setup name="alarmuser">
|
|
import { cloneDeep } from 'lodash-es'
|
|
import { cloneDeep } from 'lodash-es'
|
|
import Form from './form.vue'
|
|
import Form from './form.vue'
|
|
|
|
+ import perfectForm from './perfectForm.vue'
|
|
|
|
+
|
|
import alarmUserApi from '@/api/coldchain/alarmUserApi'
|
|
import alarmUserApi from '@/api/coldchain/alarmUserApi'
|
|
const searchFormState = ref({})
|
|
const searchFormState = ref({})
|
|
const searchFormRef = ref()
|
|
const searchFormRef = ref()
|
|
const tableRef = ref()
|
|
const tableRef = ref()
|
|
const formRef = ref()
|
|
const formRef = ref()
|
|
|
|
+ const perfectformRef = ref()
|
|
|
|
+
|
|
const columns = [
|
|
const columns = [
|
|
{
|
|
{
|
|
title: '序号',
|
|
title: '序号',
|
|
@@ -88,15 +98,8 @@
|
|
width: 50
|
|
width: 50
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: '系统用户id',
|
|
|
|
- dataIndex: 'userId',
|
|
|
|
- align: 'center',
|
|
|
|
- ellipsis: true,
|
|
|
|
- resizable: true
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: 'AccessToken',
|
|
|
|
- dataIndex: 'accessToken',
|
|
|
|
|
|
+ title: '真实姓名',
|
|
|
|
+ dataIndex: 'name',
|
|
align: 'center',
|
|
align: 'center',
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
resizable: true
|
|
resizable: true
|
|
@@ -119,6 +122,13 @@
|
|
return value == '1' ? '男' : '女'
|
|
return value == '1' ? '男' : '女'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ title: '组织',
|
|
|
|
+ dataIndex: 'createOrgName',
|
|
|
|
+ align: 'center',
|
|
|
|
+ ellipsis: true,
|
|
|
|
+ resizable: true
|
|
|
|
+ },
|
|
|
|
|
|
{
|
|
{
|
|
title: '用户头像',
|
|
title: '用户头像',
|
|
@@ -126,6 +136,13 @@
|
|
align: 'center',
|
|
align: 'center',
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
resizable: true
|
|
resizable: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '创建时间',
|
|
|
|
+ dataIndex: 'createTime',
|
|
|
|
+ align: 'center',
|
|
|
|
+ ellipsis: true,
|
|
|
|
+ resizable: true
|
|
}
|
|
}
|
|
]
|
|
]
|
|
// 操作栏通过权限判断是否显示
|
|
// 操作栏通过权限判断是否显示
|
|
@@ -134,7 +151,7 @@
|
|
title: '操作',
|
|
title: '操作',
|
|
dataIndex: 'action',
|
|
dataIndex: 'action',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width: 150
|
|
|
|
|
|
+ width: 250
|
|
})
|
|
})
|
|
}
|
|
}
|
|
const selectedRowKeys = ref([])
|
|
const selectedRowKeys = ref([])
|