fanfan 6 months ago
commit 2e32a2fa10
  1. 4
      public/config.js
  2. 6
      src/api/feedback/index.js
  3. 36
      src/views/dataCenter/feedback/index.vue

4
public/config.js vendored

@ -4,11 +4,11 @@ window.serverConfig = {
// 必填: api地址, 换成自己的域名即可 // 必填: api地址, 换成自己的域名即可
// 例如: https://www.你的域名.com/index.php?s=/admin // 例如: https://www.你的域名.com/index.php?s=/admin
// BASE_API: 'https://www.saas.njrenzhou.com/index.php?s=/admin', // BASE_API: 'https://www.saas.njrenzhou.com/index.php?s=/admin',
BASE_API: 'https://test-www.royaum.com.cn/index.php?s=/admin', BASE_API: 'https://www.royaum.com.cn/index.php?s=/admin',
// 必填: store模块的入口地址 // 必填: store模块的入口地址
// 例如: https://www.你的域名.com/store // 例如: https://www.你的域名.com/store
// STORE_URL: 'https://www.saas.njrenzhou.com/store', // STORE_URL: 'https://www.saas.njrenzhou.com/store',
STORE_URL: 'https://test-www.royaum.com.cn/store', STORE_URL: 'https://www.royaum.com.cn/store',
// 图片文件上传大小 (单位mb) // 图片文件上传大小 (单位mb)
uploadImageSize: 2, uploadImageSize: 2,

@ -8,13 +8,13 @@ const api = {
/** /**
* 反馈列表 * 反馈列表
* @param {*} data * @param {*} params
*/ */
export function feedbackList (data) { export function feedbackList (params) {
return axios({ return axios({
url: api.feedbackList, url: api.feedbackList,
method: 'get', method: 'get',
data params
}) })
} }

@ -1,14 +1,12 @@
<template> <template>
<a-card :bordered="false"> <a-card :bordered="false">
<content-header title="意见反馈"></content-header> <content-header title="意见反馈"></content-header>
<a-table <s-table
ref="table"
rowKey="feedback_id" rowKey="feedback_id"
:columns="columns" :columns="columns"
:dataSource="feedbackList" :data="loadData"
:defaultExpandAllRows="true"
:expandIconColumnIndex="1"
:pagination="pagination" :pagination="pagination"
:loading="isLoading"
> >
<span slot="type" slot-scope="text, item"> <span slot="type" slot-scope="text, item">
{{ typeList[item.type - 1] }} {{ typeList[item.type - 1] }}
@ -24,7 +22,7 @@
<a style="margin-right: 8px" @click="handleEdit(item)">编辑</a> <a style="margin-right: 8px" @click="handleEdit(item)">编辑</a>
</template> </template>
</span> </span>
</a-table> </s-table>
<EditForm ref="EditForm" @handleSubmit="handleRefresh" /> <EditForm ref="EditForm" @handleSubmit="handleRefresh" />
</a-card> </a-card>
</template> </template>
@ -48,7 +46,11 @@ export default {
'功能新增:我想用的功能,希望能开发新增', '功能新增:我想用的功能,希望能开发新增',
'服务建议:服务商服务不到位,我有建议' '服务建议:服务商服务不到位,我有建议'
], ],
feedbackList: [], loadData: (param) => {
return Api.feedbackList({ ...param }).then((response) => {
return response.data
})
},
// //
columns: [ columns: [
{ {
@ -91,10 +93,6 @@ export default {
] ]
} }
}, },
created () {
//
this.getFeedbackList()
},
methods: { methods: {
// //
async handleEdit (record) { async handleEdit (record) {
@ -102,20 +100,8 @@ export default {
this.$refs.EditForm.add(record) this.$refs.EditForm.add(record)
}, },
// //
handleRefresh () { handleRefresh (bool = false) {
// this.$refs.table.refresh(bool)
this.getFeedbackList()
},
//
getFeedbackList () {
this.isLoading = true
Api.feedbackList()
.then((result) => {
console.log(result)
this.feedbackList = result.data.data
this.isLoading = false
})
.finally(() => (this.isLoading = false))
} }
} }
} }

Loading…
Cancel
Save