反馈导入导出
This commit is contained in:
@@ -14,14 +14,15 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div style="margin: 0px 0 20px 0">-->
|
<div style="margin: 0px 0 20px 0">
|
||||||
<!-- <el-button type="primary" @click="createRow()" icon="el-icon-plus">添 加</el-button>-->
|
<el-button type="primary" @click="downloadFeedback()" icon="el-icon-download">导出反馈</el-button>
|
||||||
<!-- </div>-->
|
<el-button type="primary" @click="showImportFeedbackPage()" icon="el-icon-upload2">导入反馈</el-button>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-table :data="result.records" style="width: 100%">
|
<el-table :data="result.records" style="width: 100%">
|
||||||
<el-table-column type="index" label="行号" width="60"></el-table-column>
|
<el-table-column type="index" label="行号" width="60"></el-table-column>
|
||||||
<el-table-column prop="name" label="名称"></el-table-column>
|
<el-table-column prop="name" label="名称"></el-table-column>
|
||||||
<el-table-column prop="type" label="类型" :formatter="typeFormatter"></el-table-column>
|
<el-table-column prop="type" label="性质" :formatter="typeFormatter"></el-table-column>
|
||||||
<!-- <el-table-column label="操作" width="100">-->
|
<!-- <el-table-column label="操作" width="100">-->
|
||||||
<!-- <template slot-scope="scope">-->
|
<!-- <template slot-scope="scope">-->
|
||||||
<!-- <el-button @click.native.prevent="modifyRow(scope.row)" type="text" size="small">-->
|
<!-- <el-button @click.native.prevent="modifyRow(scope.row)" type="text" size="small">-->
|
||||||
@@ -62,7 +63,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import request from '@/utils/request';
|
import request, {getBaseUrl} from '@/utils/request';
|
||||||
|
|
||||||
var _this;
|
var _this;
|
||||||
export default {
|
export default {
|
||||||
@@ -110,6 +111,14 @@ export default {
|
|||||||
typeFormatter(row) {
|
typeFormatter(row) {
|
||||||
return this.typeMap[row.type] || "";
|
return this.typeMap[row.type] || "";
|
||||||
},
|
},
|
||||||
|
showImportFeedbackPage() {
|
||||||
|
_this.$router.push({
|
||||||
|
path: "importFeedback"
|
||||||
|
});
|
||||||
|
},
|
||||||
|
downloadFeedback() {
|
||||||
|
window.open(getBaseUrl() + '/bulk/get_bulk/feedback');
|
||||||
|
},
|
||||||
handleCurrentChange(val) {
|
handleCurrentChange(val) {
|
||||||
_this.qo.pageNo = val;
|
_this.qo.pageNo = val;
|
||||||
_this.queryData();
|
_this.queryData();
|
||||||
|
|||||||
@@ -63,6 +63,10 @@ export default new Router({
|
|||||||
path: 'feedbackType',
|
path: 'feedbackType',
|
||||||
component: () => import('@/components/menus/FeedbackType')
|
component: () => import('@/components/menus/FeedbackType')
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'importFeedback',
|
||||||
|
component: () => import('@/components/menus/feedback/ImportFeedback')
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'intelligenceRecommend',
|
path: 'intelligenceRecommend',
|
||||||
component: () => import('@/components/menus/IntelligenceRecommend')
|
component: () => import('@/components/menus/IntelligenceRecommend')
|
||||||
|
|||||||
Reference in New Issue
Block a user