From b4b8fc7ed089fcc0151876f8c803e812545bdb20 Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Sun, 28 Apr 2024 22:18:03 +0800 Subject: [PATCH] =?UTF-8?q?flat:=20=E5=92=A8=E8=AF=A2=E4=BF=A1=E7=AE=B1?= =?UTF-8?q?=E3=80=81=E7=AD=8970%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../applicationsRecord/applicationsRecord.js | 47 +- src/api/manage/mailbox.js | 10 +- src/api/manage/superviseComplaintInfo.js | 18 +- src/api/manage/survey.js | 54 ++ src/views/manage/applicationsRecord/index.vue | 523 +++++++++--------- .../manage/applicationsRecord/sub/detail.vue | 167 ++++++ src/views/manage/mailbox/index.vue | 198 ++++--- .../manage/superviseComplaintInfo/index.vue | 202 ++++--- src/views/manage/survey/index.vue | 368 ++++++++++++ src/views/manage/survey/sub/detail.vue | 167 ++++++ vue.config.js | 2 +- 11 files changed, 1335 insertions(+), 421 deletions(-) create mode 100644 src/api/manage/survey.js create mode 100644 src/views/manage/applicationsRecord/sub/detail.vue create mode 100644 src/views/manage/survey/index.vue create mode 100644 src/views/manage/survey/sub/detail.vue diff --git a/src/api/help/applicationsRecord/applicationsRecord.js b/src/api/help/applicationsRecord/applicationsRecord.js index 41d894b..3488e27 100644 --- a/src/api/help/applicationsRecord/applicationsRecord.js +++ b/src/api/help/applicationsRecord/applicationsRecord.js @@ -1,15 +1,48 @@ import request from '@/router/axios'; export const getApplContentList = - (current, size, params) => { + (params) => { return request({ - url: '/api/jobslink-api/desk/applContent/getApplContentList', + url: '/api/jobslink-api/content/questionnaireSurveyInfo/list', method: 'get', - params: { - ...params, - current, - size - } + params }) } +export const addApplContentList = + (params) => { + return request({ + url: '/api/jobslink-api/content/questionnaireSurveyInfo/add', + method: 'post', + data: params + }) + } + +export const changePublish = + (params) => { + return request({ + url: '/api/jobslink-api/content/questionnaireSurveyInfo/publish', + method: 'post', + data: params + }) + } + +export const deleteQuestionnaireSurveyInfo = + (params) => { + return request({ + url: '/api/jobslink-api/content/questionnaireSurveyInfo/delete', + method: 'delete', + params + }) + } + +export const getQueryQuestionnaireSurveyUserBySurveyId = + (params) => { + return request({ + url: '/api/jobslink-api/content/questionnaireSurveyInfo/queryQuestionnaireSurveyUserBySurveyId', + method: 'get', + params + }) + } + + diff --git a/src/api/manage/mailbox.js b/src/api/manage/mailbox.js index eeb5324..f3e7b32 100644 --- a/src/api/manage/mailbox.js +++ b/src/api/manage/mailbox.js @@ -1,14 +1,10 @@ import request from '@/router/axios'; export const getList = - (current, size, params) => { + (params) => { return request({ - url: '/api/jobslink-api//content/consultMailboxInfo/list', + url: '/api/jobslink-api/content/consultMailboxInfo/list', method: 'get', - params: { - ...params, - current, - size, - } + params }) } diff --git a/src/api/manage/superviseComplaintInfo.js b/src/api/manage/superviseComplaintInfo.js index 87178b6..e2cdb25 100644 --- a/src/api/manage/superviseComplaintInfo.js +++ b/src/api/manage/superviseComplaintInfo.js @@ -1,14 +1,20 @@ import request from '@/router/axios'; export const getList = - (current, size, params) => { + (params) => { return request({ url: '/api/jobslink-api/content/superviseComplaintInfo/list', method: 'get', - params: { - ...params, - current, - size, - } + params, + }) + } + + +export const getInfo = + (params) => { + return request({ + url: '/api/jobslink-api/content/superviseComplaintInfo/queryById', + method: 'get', + params, }) } diff --git a/src/api/manage/survey.js b/src/api/manage/survey.js new file mode 100644 index 0000000..83f5a84 --- /dev/null +++ b/src/api/manage/survey.js @@ -0,0 +1,54 @@ +import request from '@/router/axios'; + +export const getList = + (params) => { + return request({ + url: '/api/jobslink-api/content/employmentSurveyManage/list', + method: 'get', + params, + }) + } +export const getInfo = + (params) => { + return request({ + url: '/api/jobslink-api/content/employmentSurveyManage/queryById', + method: 'get', + params, + }) + } + +export const addEmploymentSurveyManage = + (params) => { + return request({ + url: '/api/jobslink-api/content/employmentSurveyManage/add', + method: 'post', + data: params, + }) + } +export const deleteEmploymentSurveyManage = + (params) => { + return request({ + url: '/api/jobslink-api/content/employmentSurveyManage/delete', + method: 'delete', + params, + }) + } + +export const getQueryEmploymentSurveyUserBySurveyId = + (params) => { + return request({ + url: '/api/jobslink-api/content/employmentSurveyManage/queryEmploymentSurveyUserBySurveyId', + method: 'get', + params, + }) + } + +export const publishEmploymentSurveyManage = + (params) => { + return request({ + url: '/api/jobslink-api/content/employmentSurveyManage/publish', + method: 'post', + data: params, + }) + } + diff --git a/src/views/manage/applicationsRecord/index.vue b/src/views/manage/applicationsRecord/index.vue index ccbed71..382afee 100644 --- a/src/views/manage/applicationsRecord/index.vue +++ b/src/views/manage/applicationsRecord/index.vue @@ -6,6 +6,8 @@ :data="data" :page.sync="page" ref="crud" + @row-save="rowSave" + @row-del="rowDel" @search-change="searchChange" @current-change="currentChange" @size-change="sizeChange" @@ -13,267 +15,294 @@ @search-reset="searchReset" @on-load="onLoad" > - diff --git a/src/views/manage/mailbox/index.vue b/src/views/manage/mailbox/index.vue index 3255994..59aff17 100644 --- a/src/views/manage/mailbox/index.vue +++ b/src/views/manage/mailbox/index.vue @@ -13,26 +13,26 @@ @search-reset="searchReset" @on-load="onLoad" > - + + + - -
- - 咨询部门:{{ lookData.consultDeptName }} - 咨询题目:{{ lookData.consultTopic }} - - - 咨询内容:{{ lookData.consultContent }} - 联系电话:{{ lookData.consultPhone }} - - - 咨询日期:{{ lookData.consultTime }} - -
-
+ + + + + + + + + + + + + + + @@ -40,43 +40,97 @@ import {dateFormat} from '@/util/date' import Tinymce from "@/components/Tinymce"; import {getList} from '@/api/manage/mailbox' + +const classStatus = { + 0: '未处理', + 1: '已处理', +} +const initPages = { + pageSize: 10, + currentPage: 1, + total: 100, +} +const classEnumStatus = Object.keys(classStatus).map((item) => ({ + label: classStatus[item], value: Number(item) +})) const columnList = [ - { - label: "咨询部门", - prop: "consultDeptName", - search: false, - }, + // { + // label: "咨询部门", + // prop: "consultDeptName", + // search: true, + // }, { label: "咨询题目", prop: "consultTopic", - search: false, + search: true, + }, + { + label: "咨询人", + prop: "consultName", + search: true, + }, { + label: "创建人", + prop: "createUser", + hide: true, + }, { + label: "创建部门", + prop: "createDept", + hide: true, + }, { + label: "修改人", + prop: "updateUser", + hide: true, }, { label: "咨询内容", prop: "consultContent", search: false, - }, { - label: "联系电话", - prop: "consultPhone", + }, + { + label: "意见内容", + prop: "opinionContent", search: false, }, + { + label: "联系电话", + prop: "reply_content", + search: true, + }, { label: "咨询日期", prop: "consultTime", - type:'datetime', - searchSpan:8, - searchRange:true, - } + type: 'datetime', + searchSpan: 8, + searchRange: true, + }, + { + label: "处置情况", + prop: "disposalSituation", + search: true, + }, + { + label: "是否阅读", + prop: "isRead", + search: false, + hide: true, + }, + { + label: "是否处理", + prop: "status", + type: "select", + dicData: classEnumStatus, + search: true, + }, ] const rules = { name: [ - { required: true, message: '请输入内容标题', trigger: 'blur' } + {required: true, message: '请输入内容标题', trigger: 'blur'} ], type: [ - { required: true, message: '请选择分类', trigger: 'blur' } + {required: true, message: '请选择分类', trigger: 'blur'} ], content: [ - { required: true, message: '请输入内容', trigger: 'blur' } + {required: true, message: '请输入内容', trigger: 'blur'} ], } export default { @@ -86,16 +140,23 @@ export default { }, mounted() { }, - data () { + data() { return { applTime: '', - loading:false, - viewDrawer:false, + loading: false, + viewDrawer: false, drawerTitle: '新增内容', formOption: {}, query: {}, rules: Object.assign({}, rules), - option: { + data: [], + lookData: {}, + page: Object.assign({}, initPages), + } + }, + computed: { + option() { + return { height: "auto", tip: false, searchShow: true, @@ -104,25 +165,18 @@ export default { index: true, indexLabel: "序号", selection: false, - viewBtn: false, + viewBtn: true, addBtn: false, - editBtn:false, + editBtn: false, delBtn: false, columnBtn: false, - menuWidth: 300, - labelWidth: 151, + menuWidth: 150, + // labelWidth: 151, dialogClickModal: false, dialogType: "drawer", dialogFullscreen: true, column: columnList, - }, - data: [], - lookData: {}, - page: { - pageSize: 10, - currentPage: 1, - total: 100, - }, + } } }, methods: { @@ -137,24 +191,11 @@ export default { this.$refs[formName].resetFields(); this.viewDrawer = false }, - /* 表格方法 */ - onLoad(page, params = {}) { - this.loading = true; - getList( - page.currentPage, - page.pageSize, - Object.assign(this.query, params) - ).then((res) => { - this.data = res.data.data.records; - this.page.total = res.data.data.total; - this.loading = false; - }); - }, searchReset() { this.query = {}; - this.onLoad(this.page); + this.onLoad(); }, - searchChange(params,done) { + searchChange(params, done) { console.log(params); if (params.applTime) { var val = JSON.parse(JSON.stringify(params.applTime)) @@ -165,7 +206,7 @@ export default { this.query = params; console.log(this.query); this.page.currentPage = 1; - this.onLoad(this.page, params); + this.onLoad(); done(); }, currentChange(val) { @@ -175,9 +216,30 @@ export default { this.page.currentPage = 1 this.page.pageSize = val }, - refreshChange () { + refreshChange() { this.page.currentPage = 1; - this.onLoad(this.page) + this.onLoad() + }, + /* 表格方法 */ + onLoad() { + return new Promise(async (resolve, reject) => { + this.loading = true; + let params = { + current: this.page.currentPage, + size: this.page.pageSize, + ...this.query, + } + let resData = await getList(params) + if (resData.data.code === 200) { + const {current, records, total, size} = resData.data.data + this.data = records; + this.page.total = total; + this.loading = false; + } + resolve() + }) + }, + seeDetail() { } } } diff --git a/src/views/manage/superviseComplaintInfo/index.vue b/src/views/manage/superviseComplaintInfo/index.vue index 9dd0963..748f07f 100644 --- a/src/views/manage/superviseComplaintInfo/index.vue +++ b/src/views/manage/superviseComplaintInfo/index.vue @@ -13,90 +13,107 @@ @search-reset="searchReset" @on-load="onLoad" > - - - -
- - 投诉标题:{{ lookData.complaintTitle }} - 投诉对象:{{ lookData.complaintObject }} - - - 投诉类型:{{ classEnum[lookData.complaintType] }} - 联系方式:{{ lookData.complaintPhone }} - - - 创建时间:{{ lookData.complaintTime }} - -
-
+ + diff --git a/src/views/manage/survey/sub/detail.vue b/src/views/manage/survey/sub/detail.vue new file mode 100644 index 0000000..046ab32 --- /dev/null +++ b/src/views/manage/survey/sub/detail.vue @@ -0,0 +1,167 @@ + + + + + diff --git a/vue.config.js b/vue.config.js index 2fa2a74..30536d1 100644 --- a/vue.config.js +++ b/vue.config.js @@ -23,7 +23,7 @@ module.exports = { port: 1888, proxy: { "/api": { - target: 'http://localhost:8000', + target: 'http://10.165.0.173:8000', ws: true, changeOrigin: true, pathRewrite: {