Compare commits

..

No commits in common. "98b3e716bbb395c9aa84e972171bbf635c876a09" and "4e7c695ab024d3643614d6a167b930a75d2af91d" have entirely different histories.

2 changed files with 2 additions and 28 deletions

View File

@ -5,9 +5,6 @@
<!-- <a-button type="primary" @click="handleAdd"></a-button> --> <!-- <a-button type="primary" @click="handleAdd"></a-button> -->
</template> </template>
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'shpPath'">
<div @click="copyToClipboard(record.shpPath)">{{record.shpPath}}</div>
</template>
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
<TableAction <TableAction
:actions="[ :actions="[
@ -47,8 +44,7 @@
import { searchFormSchema, achievementColumns } from './index.data'; import { searchFormSchema, achievementColumns } from './index.data';
// api // api
import { loadTableListData } from '@/api/achievement/index'; import { loadTableListData } from '@/api/achievement/index';
import { useMessage } from '@/hooks/web/useMessage';
const { createMessage } = useMessage();
const modalForm = ref(); const modalForm = ref();
let openModal = ref(false); let openModal = ref(false);
@ -112,15 +108,6 @@
clearSelectedRowKeys(); clearSelectedRowKeys();
reload(); reload();
} }
//
const copyToClipboard = async (record) => {
try {
await navigator.clipboard.writeText(record);
createMessage.success('文本已复制到剪贴板');
} catch (err) {
createMessage.error('无法复制文本');
}
};
</script> </script>
<style lang="scss"> <style lang="scss">
.categories-modal { .categories-modal {

View File

@ -5,9 +5,6 @@
<!-- <a-button type="primary" @click="handleAdd"></a-button> --> <!-- <a-button type="primary" @click="handleAdd"></a-button> -->
</template> </template>
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'tifPath'">
<div @click="copyToClipboard(record.tifPath)">{{record.tifPath}}</div>
</template>
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
<TableAction <TableAction
:actions="[ :actions="[
@ -47,8 +44,7 @@
import { searchFormSchema, achievementColumns } from './index.data'; import { searchFormSchema, achievementColumns } from './index.data';
// api // api
import { loadTifTableListData } from '@/api/achievement/index'; import { loadTifTableListData } from '@/api/achievement/index';
import { useMessage } from '@/hooks/web/useMessage';
const { createMessage } = useMessage();
const modalForm = ref(); const modalForm = ref();
let openModal = ref(false); let openModal = ref(false);
@ -112,15 +108,6 @@
clearSelectedRowKeys(); clearSelectedRowKeys();
reload(); reload();
} }
//
const copyToClipboard = async (record) => {
try {
await navigator.clipboard.writeText(record);
createMessage.success('文本已复制到剪贴板');
} catch (err) {
createMessage.error('无法复制文本');
}
};
</script> </script>
<style lang="scss"> <style lang="scss">
.categories-modal { .categories-modal {