| | |
| | | pointName?: string |
| | | } |
| | | |
| | | |
| | | // 查询DaPoint列表 |
| | | export const getDaPointPage = (params: DaPointPageReqVO) => { |
| | | return request.get({ url: '/data/da/point/page', params }) |
| | |
| | | export const importPointTemplate = () => { |
| | | return request.download({ url: '/data/da/point/get-import-template' }) |
| | | } |
| | | |
| | | // 启用 |
| | | export const enable = (ids) => { |
| | | const data = ids |
| | | return request.put({ url: '/data/da/point/enable', data }) |
| | | } |
| | | |
| | | // 禁用 |
| | | export const disable = (ids) => { |
| | | const data = ids |
| | | return request.put({ url: '/data/da/point/disable', data }) |
| | | } |
| | |
| | | cancelButtonText: t('common.cancel'), |
| | | type: 'warning' |
| | | }) |
| | | }, |
| | | // 启用窗体 |
| | | enableConfirm(ids, content?: string, tip?: string) { |
| | | return ElMessageBox.confirm( |
| | | content ? content : t('确定启用选中的'+ ids.length +'项数据?'), |
| | | tip ? tip : t('common.confirmTitle'), |
| | | { |
| | | confirmButtonText: t('common.ok'), |
| | | cancelButtonText: t('common.cancel'), |
| | | type: 'warning' |
| | | } |
| | | ) |
| | | }, |
| | | // 禁用窗体 |
| | | disableConfirm(ids, content?: string, tip?: string) { |
| | | return ElMessageBox.confirm( |
| | | content ? content : t('确定禁用选中的'+ ids.length +'项数据?'), |
| | | tip ? tip : t('common.confirmTitle'), |
| | | { |
| | | confirmButtonText: t('common.ok'), |
| | | cancelButtonText: t('common.cancel'), |
| | | type: 'warning' |
| | | } |
| | | ) |
| | | } |
| | | } |
| | | } |
| | |
| | | updateTime: '更新时间', |
| | | copy: '复制', |
| | | copySuccess: '复制成功', |
| | | copyError: '复制失败' |
| | | copyError: '复制失败', |
| | | enableSuccess: '启用成功', |
| | | disableSuccess: '禁用成功', |
| | | }, |
| | | lock: { |
| | | lockScreen: '锁定屏幕', |