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地址, 换成自己的域名即可
// 例如: https://www.你的域名.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模块的入口地址
// 例如: https://www.你的域名.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)
uploadImageSize: 2,

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

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

Loading…
Cancel
Save