From ba2011469c8e4022a4893cbf9c144fef1cc10157 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Sun, 25 Jun 2023 15:59:26 +0800 Subject: [PATCH] 2023.6.25 --- src/api/index/index.js | 58 +++ src/api/party/studyQuestion.js | 4 +- src/components/XyDialog/index.vue | 3 + .../components/addPointer.vue | 344 ++++++++++++++++++ .../components/addQuestions.vue | 216 +++++++++++ .../PartyshistoryRecoder/components/addVr.vue | 242 ++++++++++++ .../PartyshistoryRecoder/components/vr.vue | 125 +++++++ src/views/PartyshistoryRecoder/pointer.vue | 205 +++++++++++ .../PartyshistoryRecoder/studyQuestion.vue | 162 +++++++++ 9 files changed, 1357 insertions(+), 2 deletions(-) create mode 100644 src/api/index/index.js create mode 100644 src/views/PartyshistoryRecoder/components/addPointer.vue create mode 100644 src/views/PartyshistoryRecoder/components/addQuestions.vue create mode 100644 src/views/PartyshistoryRecoder/components/addVr.vue create mode 100644 src/views/PartyshistoryRecoder/components/vr.vue create mode 100644 src/views/PartyshistoryRecoder/pointer.vue create mode 100644 src/views/PartyshistoryRecoder/studyQuestion.vue diff --git a/src/api/index/index.js b/src/api/index/index.js new file mode 100644 index 0000000..d16d26a --- /dev/null +++ b/src/api/index/index.js @@ -0,0 +1,58 @@ +import request from "@/utils/request"; +function customParamsSerializer(params) { + let result = ''; + for (let key in params) { + if (params.hasOwnProperty(key)) { + if (Array.isArray(params[key])) { + params[key].forEach((item,index) => { + result += `${key}[${index}][key]=${item.key}&${key}[${index}][op]=${item.op}&${key}[${index}][value]=${item.value}&`; + }); + } else { + result += `${key}=${params[key]}&`; + } + } + } + return result.slice(0, -1); +} +export function index(params,isLoading = false) { + return request({ + method: "get", + url: "/api/admin/base-form/index", + params, + paramsSerializer: customParamsSerializer, + isLoading + }) +} + +export function show(params, isLoading = true) { + return request({ + method: "get", + url: "/api/admin/base-form/show", + params, + isLoading + }) +} + +export function save(data) { + return request({ + method: "post", + url: "/api/admin/base-form/save", + data + }) +} + +export function destroy(params) { + return request({ + method: "get", + url: "/api/admin/base-form/destroy", + params + }) +} + +export function imports(data) { + return request({ + method: "post", + url: "/api/admin/base-form/import", + data + }) +} diff --git a/src/api/party/studyQuestion.js b/src/api/party/studyQuestion.js index 0821699..f5ca032 100644 --- a/src/api/party/studyQuestion.js +++ b/src/api/party/studyQuestion.js @@ -1,4 +1,4 @@ -import request from "@/utils/request"; + import request from "@/utils/request"; export function index(params) { return request({ @@ -31,4 +31,4 @@ export function destroy(params) { url: '/api/admin/study-question/destroy', params }) -} +} diff --git a/src/components/XyDialog/index.vue b/src/components/XyDialog/index.vue index b8ce259..82c27f0 100644 --- a/src/components/XyDialog/index.vue +++ b/src/components/XyDialog/index.vue @@ -100,6 +100,9 @@ export default { }, okClick(){ this.$emit('on-ok') + }, + clearValidate() { + this.$refs['elForm'].clearValidate(); } }, watch:{ diff --git a/src/views/PartyshistoryRecoder/components/addPointer.vue b/src/views/PartyshistoryRecoder/components/addPointer.vue new file mode 100644 index 0000000..75b23c0 --- /dev/null +++ b/src/views/PartyshistoryRecoder/components/addPointer.vue @@ -0,0 +1,344 @@ + + + + + + + * + 名称 : + + + + + + + + + 封面图 : + + + + + 只能上传jpg/png文件,且不超过500kb + + + + + + + + 纬度 : + + + + + + + + 经度 : + + + + + + + + x轴位置 : + + + + + + + + y轴位置 : + + + + + + + + 视频 : + + + 选取文件 + 开始上传 + + 支持文件格式:.rar .zip .doc .docx .pdf .jpg .png .gif .mp4 .xls + .xlsx + 单个文件不能超过20M + + + + + + + + 内容 : + + + + + + + + + + + + diff --git a/src/views/PartyshistoryRecoder/components/addQuestions.vue b/src/views/PartyshistoryRecoder/components/addQuestions.vue new file mode 100644 index 0000000..5b45ec5 --- /dev/null +++ b/src/views/PartyshistoryRecoder/components/addQuestions.vue @@ -0,0 +1,216 @@ + + + + + + + * + 题目 : + + + + + + + + + + 选项 : + + + 新增选项 + + 选项{{ indexFormat(item.myindex) }} + + + + + + + + + + + + + + + + diff --git a/src/views/PartyshistoryRecoder/components/addVr.vue b/src/views/PartyshistoryRecoder/components/addVr.vue new file mode 100644 index 0000000..0605c35 --- /dev/null +++ b/src/views/PartyshistoryRecoder/components/addVr.vue @@ -0,0 +1,242 @@ + + + + + + + * + 名称 : + + + + + + + + + + 封面图 : + + + + + + 只能上传jpg/png文件,且不超过500kb + + + + + + + + 视频 : + + + + 选取文件 + 开始上传 + + 支持文件格式:.rar .zip .doc .docx .pdf .jpg .png .gif .mp4 .xls + .xlsx + 单个文件不能超过20M + + + + + + + + + + + + diff --git a/src/views/PartyshistoryRecoder/components/vr.vue b/src/views/PartyshistoryRecoder/components/vr.vue new file mode 100644 index 0000000..2a1a930 --- /dev/null +++ b/src/views/PartyshistoryRecoder/components/vr.vue @@ -0,0 +1,125 @@ + + + + 新增 + + destroy({ + table_name: 'map_point_contents', + id: row.id, + activity_list_id: 7 + }).then(_ => getList())" + @editor=" + (row) => { + $refs['addVr'].setForm( + ['map_point_id', 'activity_list_id'], + [select.filter[0].value, 7] + ); + $refs['addVr'].setId(row.id); + $refs['addVr'].setType('editor'); + $refs['addVr'].show(); + } + " + > + + + + + + + + + + diff --git a/src/views/PartyshistoryRecoder/pointer.vue b/src/views/PartyshistoryRecoder/pointer.vue new file mode 100644 index 0000000..ccdb067 --- /dev/null +++ b/src/views/PartyshistoryRecoder/pointer.vue @@ -0,0 +1,205 @@ + + + + + + + + 关键字 + + + + 重置 + + 查询 + 新增 + + + + + + + + + + + + 删除 + + 编辑 + vr看展 + + + + + + + + + + + + + diff --git a/src/views/PartyshistoryRecoder/studyQuestion.vue b/src/views/PartyshistoryRecoder/studyQuestion.vue new file mode 100644 index 0000000..624d985 --- /dev/null +++ b/src/views/PartyshistoryRecoder/studyQuestion.vue @@ -0,0 +1,162 @@ + + + + + + + + 关键字 + + + + 重置 + + 查询 + 新增 + + + + + { + $refs['addQuestions'].setId(row.id); + $refs['addQuestions'].setType('editor') + $refs['addQuestions'].show(); + } + " + > + + + + + + + + +