From d4fe575b37331a6a43ba79f79df4cd1b0f31bebf Mon Sep 17 00:00:00 2001
From: Leo_Ding <2405260743@qq.com>
Date: Thu, 28 Aug 2025 15:00:44 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=AF=86=E5=8A=A0=E5=AF=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/equiteMgt/components/EditDialog.vue | 34 +++++++++++++++++--
src/views/equiteMgt/index.vue | 4 +--
src/views/regional/hoseBookList/index.vue | 3 +-
3 files changed, 36 insertions(+), 5 deletions(-)
diff --git a/src/views/equiteMgt/components/EditDialog.vue b/src/views/equiteMgt/components/EditDialog.vue
index a2a74a7..176913a 100644
--- a/src/views/equiteMgt/components/EditDialog.vue
+++ b/src/views/equiteMgt/components/EditDialog.vue
@@ -21,7 +21,7 @@
-
+
@@ -122,6 +122,7 @@
+
@@ -140,7 +141,7 @@ import { useI18n } from 'vue-i18n'
import dayjs from 'dayjs'
import GxUpload from '@/components/GxUpload/index.vue'
import { typerEnum, areaEnum } from "@/enums/useEnum"
-import { spliceUrl,decryptString,encryptString } from "@/utils/util"
+import { spliceUrl, decryptString, encryptString } from "@/utils/util"
const emit = defineEmits(['ok'])
const { t } = useI18n() // 解构出t方法
const { modal, showModal, hideModal, showLoading, hideLoading } = useModal()
@@ -213,6 +214,7 @@ async function handleEdit(record = {}) {
formData.value = { ...data }
formData.value.expireAt = data?.expireAt ? dayjs(data?.expireAt) : ''
editorContent.value = decryptString(data.details)
+ // editorContent.value = data.details
if (data.cover && data.cover.length > 0) {
formData.value.fileList = [data.cover].map(item => config('http.apiBasic') + item)
}
@@ -225,6 +227,34 @@ async function handleEdit(record = {}) {
const uploadSuccess = (data) => {
fileList.value.push(data)
}
+// function handleCopy() {
+// formRef.value.validateFields().then(async (values) => {
+// try {
+// showLoading()
+// const params = {
+// ...values,
+// cover: spliceUrl(formData.value.fileList[0]),
+// details: editorContent.value
+// }
+// let result = null
+// console.log(params)
+// result = await apis.equiteMgt.createProject(params).catch((error) => {
+// throw new Error(error)
+// })
+// hideLoading()
+// if (config('http.code.success') === result?.success) {
+// hideModal()
+// emit('ok')
+// }
+// } catch (error) {
+// message.error({ content: error.message })
+// hideLoading()
+// }
+// })
+// .catch((e) => {
+// hideLoading()
+// })
+// }
/**
* 确定
*/
diff --git a/src/views/equiteMgt/index.vue b/src/views/equiteMgt/index.vue
index 631eacf..cb5962e 100644
--- a/src/views/equiteMgt/index.vue
+++ b/src/views/equiteMgt/index.vue
@@ -52,7 +52,7 @@
点击查看
+ @click="content = decryptString(record.details) || ''; type = 2; open = true" type="link">点击查看
@@ -116,7 +116,7 @@ import { typerEnum, areaEnum } from "@/enums/useEnum"
import EditDialog from './components/EditDialog.vue'
import { PlusOutlined, EditOutlined, DeleteOutlined, QrcodeOutlined } from '@ant-design/icons-vue'
import { useI18n } from 'vue-i18n'
-
+import { decryptString } from "@/utils/util"
defineOptions({
name: 'equiteType',
})
diff --git a/src/views/regional/hoseBookList/index.vue b/src/views/regional/hoseBookList/index.vue
index d5926e3..49ae62f 100644
--- a/src/views/regional/hoseBookList/index.vue
+++ b/src/views/regional/hoseBookList/index.vue
@@ -55,7 +55,7 @@
点击查看
+ @click="content = decryptString(record.content) || ''; modalType = 2; qropen = true" type="link">点击查看
启用
@@ -104,6 +104,7 @@ import { PlusOutlined, EditOutlined, DeleteOutlined, QrcodeOutlined } from '@ant
import { useI18n } from 'vue-i18n'
import qrlogo from '@/assets/qrlogo.png'
import { customersEnum, areaEnum } from "@/enums/useEnum"
+import { decryptString } from "@/utils/util"
const content = ref('')
const modalType=ref(1)
const qrValue = ref('')