From 3bd5c701089c8bd736676f6f69040fdef9d9d346 Mon Sep 17 00:00:00 2001 From: tx <2622874537@qq.com> Date: Fri, 18 Oct 2024 15:47:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/common/common.js | 25 ++++++ src/components/ImageUpload/index.vue | 59 ++++++++----- src/views/system/device/index.vue | 59 ++++++++++--- src/views/system/model/index.vue | 126 ++++++++++++++++++++++++--- 4 files changed, 222 insertions(+), 47 deletions(-) create mode 100644 src/api/common/common.js diff --git a/src/api/common/common.js b/src/api/common/common.js new file mode 100644 index 0000000..24e2ea8 --- /dev/null +++ b/src/api/common/common.js @@ -0,0 +1,25 @@ +import request from '@/utils/request' + +// 查询生成表数据 +export function getQiniuToken() { + return request({ + url: '/common/qiniu/uploadInfo', + method: 'get', + }) +} + + +// 获取省市区 +export function getDistrictList() { + return request({ + url: '/app/getDistrictList', + method: 'get', + }) +} + +// 转二维码 +export function getQrCodeText(data) { + let url = `https://dianche.chuantewulian.cn?sn=`+data.sn; + return url; +} + diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index 2e64c9b..880f411 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -12,7 +12,7 @@ ref="imageUpload" :on-remove="handleDelete" :show-file-list="true" - :headers="headers" + :data='uploadData' :file-list="fileList" :on-preview="handlePictureCardPreview" :class="{hide: this.fileList.length >= this.limit}" @@ -43,7 +43,7 @@