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 @@ + + + + + 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 @@ + + + + + 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 @@ + + + + + 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 @@ + + + + + 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 @@ + + + + + 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 @@ + + + + +