falt:暂存
This commit is contained in:
12
api/help.js
12
api/help.js
@@ -7,7 +7,17 @@ import {
|
|||||||
|
|
||||||
//轮播图
|
//轮播图
|
||||||
export const getEmploymentSurveyManage = (params) => request({
|
export const getEmploymentSurveyManage = (params) => request({
|
||||||
url: '/api/jobslink-api/content/employmentSurveyManage/list',
|
url: '/api/jobslink-api/content/questionnaireSurveyInfo/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params
|
params
|
||||||
});
|
});
|
||||||
|
export const queryByIdQuestionnaireSurveyInfo = (params) => request({
|
||||||
|
url: '/api/jobslink-api/content/questionnaireSurveyInfo/queryById',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
});
|
||||||
|
export const replyQuestionnaireSurveyInfo = (params) => request({
|
||||||
|
url: '/api/jobslink-api/content/questionnaireSurveyInfo/reply',
|
||||||
|
method: 'post',
|
||||||
|
data: params
|
||||||
|
});
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="">
|
<view>
|
||||||
|
<view v-if="dataSource.length">
|
||||||
<block v-for="(item, index) in dataSource" :key="item.id">
|
<block v-for="(item, index) in dataSource" :key="item.id">
|
||||||
<view class="search-item" @click="toDetail(item)">
|
<view class="search-item" @click="toDetail(item)">
|
||||||
{{item.surveyTitle}}
|
{{item.surveyTitle}}
|
||||||
@@ -12,6 +13,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
|
<empty v-else content="暂无问卷" mrTop="300"></empty>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -28,9 +31,15 @@
|
|||||||
created() {
|
created() {
|
||||||
this.getList("refresh");
|
this.getList("refresh");
|
||||||
},
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
this.getList("refresh");
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toDetail() {
|
toDetail(row) {
|
||||||
|
this.navTo(`/pageMy/setUserBase/sub/appliRecordsDeatil?id=${row.id}`)
|
||||||
},
|
},
|
||||||
async getList(type = 'add') {
|
async getList(type = 'add') {
|
||||||
if (type === "refresh") {
|
if (type === "refresh") {
|
||||||
@@ -41,6 +50,7 @@
|
|||||||
page: this.pageNumber
|
page: this.pageNumber
|
||||||
}
|
}
|
||||||
let resData = await getEmploymentSurveyManage(params)
|
let resData = await getEmploymentSurveyManage(params)
|
||||||
|
uni.stopPullDownRefresh()
|
||||||
if (resData.data.code === 200) {
|
if (resData.data.code === 200) {
|
||||||
const {
|
const {
|
||||||
current,
|
current,
|
||||||
@@ -113,6 +113,8 @@
|
|||||||
addComplaint() {
|
addComplaint() {
|
||||||
if (this.isNext) {
|
if (this.isNext) {
|
||||||
this.isNext = false
|
this.isNext = false
|
||||||
|
} else {
|
||||||
|
return
|
||||||
}
|
}
|
||||||
this.$refs.uForm.validate().then(async (res) => {
|
this.$refs.uForm.validate().then(async (res) => {
|
||||||
let params = {
|
let params = {
|
||||||
|
|||||||
@@ -15,8 +15,6 @@
|
|||||||
<u-form-item label="咨询人电话:" prop="consultPhone" labelWidth="80" borderBottom>
|
<u-form-item label="咨询人电话:" prop="consultPhone" labelWidth="80" borderBottom>
|
||||||
<u--input v-model="fromData.consultPhone" border="surround" placeholder="请输入11位电话号码"></u--input>
|
<u--input v-model="fromData.consultPhone" border="surround" placeholder="请输入11位电话号码"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
|
||||||
|
|
||||||
</u--form>
|
</u--form>
|
||||||
<view class="btn_add">
|
<view class="btn_add">
|
||||||
<u-button type="primary" size="large" text="发送信件" @click="addConsult"></u-button>
|
<u-button type="primary" size="large" text="发送信件" @click="addConsult"></u-button>
|
||||||
@@ -84,7 +82,10 @@
|
|||||||
addConsult() {
|
addConsult() {
|
||||||
if (this.isNext) {
|
if (this.isNext) {
|
||||||
this.isNext = false
|
this.isNext = false
|
||||||
|
} else {
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$refs.uForm.validate().then(async (res) => {
|
this.$refs.uForm.validate().then(async (res) => {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '请求中'
|
title: '请求中'
|
||||||
|
|||||||
101
pageMy/setUserBase/sub/appliRecordsDeatil.vue
Normal file
101
pageMy/setUserBase/sub/appliRecordsDeatil.vue
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
<template>
|
||||||
|
<view class="app_cotainer">
|
||||||
|
<view class="content">
|
||||||
|
<p>描述:{{infoMation.surveyContent}}</p>
|
||||||
|
</view>
|
||||||
|
<u--form labelPosition="left" :fromData="fromData" :model="fromData" :rules="rules" ref="uForm1">
|
||||||
|
<u-form-item label="" prop="replyContent" labelWidth="80" borderBottom>
|
||||||
|
<u--textarea v-model="fromData.replyContent" placeholder="回复内容"></u--textarea>
|
||||||
|
</u-form-item>
|
||||||
|
</u--form>
|
||||||
|
<view class="btn_add">
|
||||||
|
<u-button type="primary" size="large" text="发送信件" @click="submit"></u-button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const rules = {
|
||||||
|
'replyContent': {
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
message: '请填写投诉标题',
|
||||||
|
trigger: ['blur', 'change']
|
||||||
|
},
|
||||||
|
}
|
||||||
|
import {
|
||||||
|
queryByIdQuestionnaireSurveyInfo,
|
||||||
|
replyQuestionnaireSurveyInfo
|
||||||
|
} from '@/api/help.js'
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
infoMation: {},
|
||||||
|
fromData: {},
|
||||||
|
rules: Object.assign({}, rules),
|
||||||
|
isNext: true,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad({
|
||||||
|
id
|
||||||
|
}) {
|
||||||
|
this.getDetail(id)
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
async submit() {
|
||||||
|
if (this.isNext) {
|
||||||
|
this.isNext = false
|
||||||
|
} else {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!this.fromData.replyContent) {
|
||||||
|
this.isNext = true
|
||||||
|
return this.$api.mag('请输入回复内容')
|
||||||
|
}
|
||||||
|
console.log('submit', this.fromData)
|
||||||
|
let params = {
|
||||||
|
surveyId: this.infoMation.id,
|
||||||
|
...this.fromData,
|
||||||
|
}
|
||||||
|
uni.showLoading({
|
||||||
|
title: '请求中'
|
||||||
|
})
|
||||||
|
let resData = await replyQuestionnaireSurveyInfo(params)
|
||||||
|
uni.hideLoading()
|
||||||
|
this.isNext = true
|
||||||
|
if (resData.data?.code === 200) {
|
||||||
|
uni.$u.toast(resData.data.msg)
|
||||||
|
this.$api.sleep(1000).then(() => {
|
||||||
|
uni.navigateBack(1)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getDetail(id) {
|
||||||
|
return new Promise(async (resolve, reject) => {
|
||||||
|
let resData = await queryByIdQuestionnaireSurveyInfo({
|
||||||
|
id
|
||||||
|
})
|
||||||
|
if (resData.data.code === 200) {
|
||||||
|
this.infoMation = resData.data.data
|
||||||
|
resolve(resData.data.data)
|
||||||
|
} else {
|
||||||
|
reject()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.app_cotainer {
|
||||||
|
padding: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
margin-bottom: 100rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
12
pages.json
12
pages.json
@@ -707,13 +707,21 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "help/mailbox",
|
"path": "setUserBase/applicationsRecord",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "咨询信箱列表",
|
"navigationBarTitleText": "问卷调查列表",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF",
|
"navigationBarBackgroundColor": "#FFFFFF",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "setUserBase/sub/appliRecordsDeatil",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "问卷调查",
|
||||||
|
"navigationBarBackgroundColor": "#FFFFFF",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "help/questions/questionDetail",
|
"path": "help/questions/questionDetail",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
咨询信箱
|
咨询信箱
|
||||||
<image src="../../static/img/right.svg" mode=""></image>
|
<image src="../../static/img/right.svg" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="btnList" @click="navTo('/pageMy/help/mailbox')">
|
<view class="btnList" @click="navTo('/pageMy/setUserBase/applicationsRecord')">
|
||||||
<image src="../../static/img/phone.svg" mode=""></image>
|
<image src="../../static/img/phone.svg" mode=""></image>
|
||||||
问卷调查
|
问卷调查
|
||||||
<image src="../../static/img/right.svg" mode=""></image>
|
<image src="../../static/img/right.svg" mode=""></image>
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ module.exports = {
|
|||||||
port: 1887,
|
port: 1887,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://192.168.1.101:8200',
|
target: 'http://10.165.0.173:8000',
|
||||||
ws: true,
|
ws: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/api/jobslink-api': '/'
|
'^/api': '/'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'/qq/map': {
|
'/qq/map': {
|
||||||
|
|||||||
Reference in New Issue
Block a user