Showing
1 changed file
with
3 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-06 16:29:31 | 2 | * @Date: 2022-09-06 16:29:31 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-02-09 13:01:54 | 4 | + * @LastEditTime: 2023-02-10 11:28:50 |
| 5 | * @FilePath: /data-table/src/components/SignField/index.vue | 5 | * @FilePath: /data-table/src/components/SignField/index.vue |
| 6 | * @Description: 电子签名控件 | 6 | * @Description: 电子签名控件 |
| 7 | --> | 7 | --> |
| ... | @@ -57,6 +57,7 @@ import { showSuccessToast, showFailToast } from "vant"; | ... | @@ -57,6 +57,7 @@ import { showSuccessToast, showFailToast } from "vant"; |
| 57 | import { useRoute } from "vue-router"; | 57 | import { useRoute } from "vue-router"; |
| 58 | import BMF from "browser-md5-file"; | 58 | import BMF from "browser-md5-file"; |
| 59 | import { getEtag } from "@/utils/qetag.js"; // 生成hash值 | 59 | import { getEtag } from "@/utils/qetag.js"; // 生成hash值 |
| 60 | +import dayjs from "dayjs"; | ||
| 60 | 61 | ||
| 61 | const props = defineProps({ | 62 | const props = defineProps({ |
| 62 | item: Object, | 63 | item: Object, |
| ... | @@ -174,7 +175,7 @@ const handleGenerate = () => { | ... | @@ -174,7 +175,7 @@ const handleGenerate = () => { |
| 174 | props.item.value = { | 175 | props.item.value = { |
| 175 | key: "sign", | 176 | key: "sign", |
| 176 | filed_name: props.item.key, | 177 | filed_name: props.item.key, |
| 177 | - value: imgUrl.src, | 178 | + value: { name: `电子签名${dayjs().format('YYYYMMDDHHmmss')}.png`, url: imgUrl.src}, |
| 178 | }; | 179 | }; |
| 179 | image_url.value = imgUrl.src; | 180 | image_url.value = imgUrl.src; |
| 180 | show_control.value = false; | 181 | show_control.value = false; | ... | ... |
-
Please register or login to post a comment