|
@@ -31,3 +31,28 @@ export const HcLog = (name, tips, data) => {
|
|
|
const title = store.barMenuName ?? '';
|
|
|
clog(name, tips, data, title)
|
|
|
}
|
|
|
+
|
|
|
+//拼接ID
|
|
|
+const rowsToId = (rows) => {
|
|
|
+ return rowsToKey(rows,'id')
|
|
|
+}
|
|
|
+
|
|
|
+//拼接字段
|
|
|
+const rowsToKey = (rows,key) => {
|
|
|
+ return rows.map((obj) => {
|
|
|
+ return obj[key];
|
|
|
+ }).join(",")
|
|
|
+}
|
|
|
+
|
|
|
+//删除提醒
|
|
|
+const delMessage = async () => {
|
|
|
+ window?.$messageBox?.alert('请谨慎考虑后,确认是否需要删除?', '删除提醒', {
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonText: '确认删除',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ callback: (action) => {
|
|
|
+ return action === 'confirm';
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|