|
|
@ -16,7 +16,7 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 弹出框 --> |
|
|
|
<a-modal v-model:visible="visible" title="设置表单" width="40%" @ok="handleOk" destroyOnClose> |
|
|
|
<a-modal v-model:visible="visible" title="设置表单" width="40%" @ok="handleOk" @cancel="handelCancel" destroyOnClose> |
|
|
|
<userEditModal ref="childRef" :editData="editData"></userEditModal> |
|
|
|
</a-modal> |
|
|
|
</template> |
|
|
@ -37,9 +37,9 @@ const columns = [ |
|
|
|
{ title: '相机IP', dataIndex: 'ip' }, |
|
|
|
{ title: '登录名', dataIndex: 'userName' }, |
|
|
|
{ title: '密码', dataIndex: 'password' }, |
|
|
|
{ title: '用户类型', dataIndex: 'userType' }, |
|
|
|
{ title: '是否启用', dataIndex: 'flag' }, |
|
|
|
{ title: '备注', dataIndex: 'remarks' }, |
|
|
|
// { title: '用户类型', dataIndex: 'userType' }, |
|
|
|
// { title: '是否启用', dataIndex: 'flag' }, |
|
|
|
// { title: '备注', dataIndex: 'remarks' }, |
|
|
|
{ |
|
|
|
title: "操作", |
|
|
|
dataIndex: "", |
|
|
@ -183,6 +183,12 @@ function edit_(item: any) { |
|
|
|
editData.value = item |
|
|
|
visible.value = true |
|
|
|
} |
|
|
|
//返回 |
|
|
|
function handelCancel(){ |
|
|
|
editData.value = null; |
|
|
|
visible.value = false |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//添加 |
|
|
|
let visible = ref(); |
|
|
|