From 99c1f1c0bc6c341548d1637aaf25e951ee784d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=B2=E4=B9=88=E4=BA=86?= Date: Fri, 7 Apr 2023 08:50:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=8E=A5=E5=8F=A3=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api/dictionary.js | 8 ++++---- common/api/mine.js | 20 ++++++++++++++++++++ pages/index/index.vue | 4 ++-- pages/mine/setup.vue | 16 ++++++++++------ 4 files changed, 36 insertions(+), 12 deletions(-) create mode 100644 common/api/mine.js diff --git a/common/api/dictionary.js b/common/api/dictionary.js index 9eeaf0a..a94e6be 100644 --- a/common/api/dictionary.js +++ b/common/api/dictionary.js @@ -1,12 +1,12 @@ import request from '../js/request'; import config from '../js/config'; -export function queryDictData(dictType) { +export function queryDictData(dictTypeName) { return request({ - url: '/dict/queryDictData', - method: 'post', + url: '/dictData/getDicDataByTypeName', + method: 'get', data: { - dictType, + dictTypeName, }, }); } diff --git a/common/api/mine.js b/common/api/mine.js new file mode 100644 index 0000000..99bc899 --- /dev/null +++ b/common/api/mine.js @@ -0,0 +1,20 @@ +import request from '../js/request'; +import config from '../js/config'; + +export function queryPersonSet() { + return request({ + url: '/appinfo/queryPersonSet', + method: 'post', + data: {}, + }); +} + +export function queryAppInfo(id) { + return request({ + url: '/appinfo/queryAppInfo', + method: 'post', + data: { + id, + }, + }); +} diff --git a/pages/index/index.vue b/pages/index/index.vue index f234e86..1923687 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -178,7 +178,7 @@ export default { console.log(this.store); } this.getProjectList() - this.queryDictData() + // this.queryDictData() }, getProjectList() { getProjectList({ @@ -198,7 +198,7 @@ export default { }) }, queryDictData() { - queryDictData('projectType').then(res => { + queryDictData('项目类型').then(res => { this.projectType = [{ text: '全部类型', value: '' diff --git a/pages/mine/setup.vue b/pages/mine/setup.vue index 33d7633..e91a1c1 100644 --- a/pages/mine/setup.vue +++ b/pages/mine/setup.vue @@ -33,7 +33,7 @@ 公司介绍 - + 意见反馈 @@ -49,16 +49,19 @@