|
@@ -1,27 +1,46 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="list-view">
|
|
<div class="list-view">
|
|
|
<div class="filters-container">
|
|
<div class="filters-container">
|
|
|
- <!-- <el-input placeholder="输入关键字" v-model="search" clearable class="filter-item"></el-input>
|
|
|
|
|
- <el-button @click="getData" type="primary" icon="el-icon-search" class="filter-item">搜索 </el-button>
|
|
|
|
|
- <el-button @click="addRow" type="primary" icon="el-icon-plus" class="filter-item">添加 </el-button>
|
|
|
|
|
- <el-button
|
|
|
|
|
- @click="download"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- icon="el-icon-download"
|
|
|
|
|
- :loading="downloading"
|
|
|
|
|
- class="filter-item"
|
|
|
|
|
- >导出EXCEL
|
|
|
|
|
- </el-button> -->
|
|
|
|
|
<el-form :model="form" inline size="mini">
|
|
<el-form :model="form" inline size="mini">
|
|
|
<el-row>
|
|
<el-row>
|
|
|
- <el-col :span="8"
|
|
|
|
|
- ><el-form-item label="考级机构名称">
|
|
|
|
|
- <el-input placeholder="考级机构名称" v-model="search" clearable></el-input> </el-form-item
|
|
|
|
|
- ></el-col>
|
|
|
|
|
- <el-col :span="8"
|
|
|
|
|
- ><el-form-item label="承办单位名称">
|
|
|
|
|
- <el-input placeholder="承办单位名称" v-model="search" clearable></el-input> </el-form-item
|
|
|
|
|
- ></el-col>
|
|
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="考级机构名称">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="gradingOrganizationId"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ filterable
|
|
|
|
|
+ placeholder="考级机构"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in gradingOrganizationIdOptions"
|
|
|
|
|
+ :key="item.value"
|
|
|
|
|
+ :label="item.label"
|
|
|
|
|
+ :value="item.value"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="承办单位名称">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="organizationId"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ filterable
|
|
|
|
|
+ placeholder="承办单位"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in organizationIdOptions"
|
|
|
|
|
+ :key="item.value"
|
|
|
|
|
+ :label="item.label"
|
|
|
|
|
+ :value="item.value"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
<el-col :span="8"
|
|
<el-col :span="8"
|
|
|
><el-form-item label="考级点名称">
|
|
><el-form-item label="考级点名称">
|
|
|
<el-input placeholder="考级点名称" v-model="search" clearable></el-input> </el-form-item
|
|
<el-input placeholder="考级点名称" v-model="search" clearable></el-input> </el-form-item
|
|
@@ -29,12 +48,12 @@
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="8"
|
|
<el-col :span="8"
|
|
|
- ><el-form-item label="参赛专业">
|
|
|
|
|
|
|
+ ><el-form-item label="节目参赛专业">
|
|
|
<el-input placeholder="参赛专业" v-model="search" clearable></el-input> </el-form-item
|
|
<el-input placeholder="参赛专业" v-model="search" clearable></el-input> </el-form-item
|
|
|
></el-col>
|
|
></el-col>
|
|
|
<el-col :span="8"
|
|
<el-col :span="8"
|
|
|
- ><el-form-item label="参赛组别">
|
|
|
|
|
- <el-select v-model="competitionGroup" clearable filterable placeholder="请选择">
|
|
|
|
|
|
|
+ ><el-form-item label="节目参赛组别">
|
|
|
|
|
+ <el-select v-model="competitionGroup" clearable filterable placeholder="参赛组别">
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in competitionGroupOptions"
|
|
v-for="item in competitionGroupOptions"
|
|
|
:key="item.value"
|
|
:key="item.value"
|
|
@@ -50,7 +69,7 @@
|
|
|
v-model="levelSettingId"
|
|
v-model="levelSettingId"
|
|
|
clearable
|
|
clearable
|
|
|
filterable
|
|
filterable
|
|
|
- placeholder="请选择"
|
|
|
|
|
|
|
+ placeholder="参赛级别"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
v-if="competitionGroup == 'SINGLE'"
|
|
v-if="competitionGroup == 'SINGLE'"
|
|
|
>
|
|
>
|
|
@@ -85,13 +104,13 @@
|
|
|
</el-form-item></el-col
|
|
</el-form-item></el-col
|
|
|
>
|
|
>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
- <br />
|
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
<el-button @click="getData" type="primary" icon="el-icon-search">搜索 </el-button>
|
|
<el-button @click="getData" type="primary" icon="el-icon-search">搜索 </el-button>
|
|
|
- <el-button @click="addRow" type="primary" icon="el-icon-plus">添加 </el-button>
|
|
|
|
|
- <!-- <el-button @click="download" type="primary" icon="el-icon-download" :loading="downloading"
|
|
|
|
|
|
|
+ <el-button @click="clearSearch" type="primary">清空 </el-button>
|
|
|
|
|
+ <!-- <el-button @click="addRow" type="primary" icon="el-icon-plus">添加 </el-button> -->
|
|
|
|
|
+ <el-button @click="download" type="primary" icon="el-icon-download" :loading="downloading"
|
|
|
>导出EXCEL
|
|
>导出EXCEL
|
|
|
- </el-button> -->
|
|
|
|
|
|
|
+ </el-button>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</div>
|
|
</div>
|
|
@@ -108,16 +127,16 @@
|
|
|
<el-table-column v-if="multipleMode" align="center" type="selection" width="50"> </el-table-column>
|
|
<el-table-column v-if="multipleMode" align="center" type="selection" width="50"> </el-table-column>
|
|
|
<!-- <el-table-column prop="id" label="ID" width="100"> </el-table-column> -->
|
|
<!-- <el-table-column prop="id" label="ID" width="100"> </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="specialtyId" label="参赛专业"> </el-table-column>
|
|
|
|
|
|
|
+ <el-table-column prop="specialty" label="参赛专业"> </el-table-column>
|
|
|
<el-table-column prop="competitionGroup" label="参赛组别" :formatter="competitionGroupFormatter">
|
|
<el-table-column prop="competitionGroup" label="参赛组别" :formatter="competitionGroupFormatter">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="levelSettingId" label="参赛级别"> </el-table-column>
|
|
|
|
|
|
|
+ <el-table-column prop="level" label="参赛级别"> </el-table-column>
|
|
|
<el-table-column prop="durationOfWork" label="作品时长"> </el-table-column>
|
|
<el-table-column prop="durationOfWork" label="作品时长"> </el-table-column>
|
|
|
<el-table-column prop="quantity" label="参赛人数"> </el-table-column>
|
|
<el-table-column prop="quantity" label="参赛人数"> </el-table-column>
|
|
|
<el-table-column prop="contact" label="联系人"> </el-table-column>
|
|
<el-table-column prop="contact" label="联系人"> </el-table-column>
|
|
|
<el-table-column prop="phone" label="联系电话"> </el-table-column>
|
|
<el-table-column prop="phone" label="联系电话"> </el-table-column>
|
|
|
- <el-table-column prop="gradingOrganizationId" label="考级机构"> </el-table-column>
|
|
|
|
|
- <el-table-column prop="gradingOrganizationId" label="承办单位"> </el-table-column>
|
|
|
|
|
|
|
+ <el-table-column prop="gradingOrganization" label="考级机构"> </el-table-column>
|
|
|
|
|
+ <el-table-column prop="organization" label="承办单位"> </el-table-column>
|
|
|
<el-table-column prop="examPoint" label="考级点"> </el-table-column>
|
|
<el-table-column prop="examPoint" label="考级点"> </el-table-column>
|
|
|
<el-table-column prop="video" label="节目视频"> </el-table-column>
|
|
<el-table-column prop="video" label="节目视频"> </el-table-column>
|
|
|
<el-table-column label="操作" align="center" fixed="right" min-width="280">
|
|
<el-table-column label="操作" align="center" fixed="right" min-width="280">
|
|
@@ -170,7 +189,7 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
multipleMode: false,
|
|
multipleMode: false,
|
|
|
search: '',
|
|
search: '',
|
|
|
- url: '/programme/all',
|
|
|
|
|
|
|
+ url: '/programme/backAll',
|
|
|
downloading: false,
|
|
downloading: false,
|
|
|
competitionGroupOptions: [
|
|
competitionGroupOptions: [
|
|
|
{ label: '个人', value: 'SINGLE' },
|
|
{ label: '个人', value: 'SINGLE' },
|
|
@@ -182,7 +201,11 @@ export default {
|
|
|
levelCollectiveOptions: [],
|
|
levelCollectiveOptions: [],
|
|
|
levelSettingId: '',
|
|
levelSettingId: '',
|
|
|
dialogUrl: '',
|
|
dialogUrl: '',
|
|
|
- dialogCode: false
|
|
|
|
|
|
|
+ dialogCode: false,
|
|
|
|
|
+ gradingOrganizationIdOptions: [],
|
|
|
|
|
+ organizationIdOptions: [],
|
|
|
|
|
+ gradingOrganizationId: '',
|
|
|
|
|
+ organizationId: ''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -220,6 +243,38 @@ export default {
|
|
|
console.log(e);
|
|
console.log(e);
|
|
|
this.$message.error(e.error);
|
|
this.$message.error(e.error);
|
|
|
});
|
|
});
|
|
|
|
|
+ this.$http
|
|
|
|
|
+ .post('/gradingOrganization/all', { size: 1000, query: { del: false } }, { body: 'json' })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ if (res.content.length > 0) {
|
|
|
|
|
+ res.content.forEach(item => {
|
|
|
|
|
+ this.gradingOrganizationIdOptions.push({
|
|
|
|
|
+ label: item.name,
|
|
|
|
|
+ value: item.id
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(e => {
|
|
|
|
|
+ console.log(e);
|
|
|
|
|
+ this.$message.error(e.error);
|
|
|
|
|
+ });
|
|
|
|
|
+ this.$http
|
|
|
|
|
+ .post('/organization/all', { size: 1000, query: { del: false } }, { body: 'json' })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ if (res.content.length > 0) {
|
|
|
|
|
+ res.content.forEach(item => {
|
|
|
|
|
+ this.organizationIdOptions.push({
|
|
|
|
|
+ label: item.name,
|
|
|
|
|
+ value: item.id
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(e => {
|
|
|
|
|
+ console.log(e);
|
|
|
|
|
+ this.$message.error(e.error);
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
|
QrcodeVue
|
|
QrcodeVue
|
|
@@ -238,7 +293,23 @@ export default {
|
|
|
return '';
|
|
return '';
|
|
|
},
|
|
},
|
|
|
beforeGetData() {
|
|
beforeGetData() {
|
|
|
- return { search: this.search };
|
|
|
|
|
|
|
+ let data = {
|
|
|
|
|
+ sort: 'createdAt,desc',
|
|
|
|
|
+ query: {}
|
|
|
|
|
+ };
|
|
|
|
|
+ if (this.competitionGroup) {
|
|
|
|
|
+ data.query.competitionGroup = this.competitionGroup;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.levelSettingId) {
|
|
|
|
|
+ data.query.levelSettingId = this.levelSettingId;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.gradingOrganizationId) {
|
|
|
|
|
+ data.query.gradingOrganizationId = this.gradingOrganizationId;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.organizationId) {
|
|
|
|
|
+ data.query.organizationId = this.organizationId;
|
|
|
|
|
+ }
|
|
|
|
|
+ return data;
|
|
|
},
|
|
},
|
|
|
toggleMultipleMode(multipleMode) {
|
|
toggleMultipleMode(multipleMode) {
|
|
|
this.multipleMode = multipleMode;
|
|
this.multipleMode = multipleMode;
|
|
@@ -317,6 +388,13 @@ export default {
|
|
|
row.performanceId +
|
|
row.performanceId +
|
|
|
'&performanceApplyId=' +
|
|
'&performanceApplyId=' +
|
|
|
row.id;
|
|
row.id;
|
|
|
|
|
+ },
|
|
|
|
|
+ clearSearch() {
|
|
|
|
|
+ this.competitionGroup = '';
|
|
|
|
|
+ this.levelSettingId = '';
|
|
|
|
|
+ this.gradingOrganizationId = '';
|
|
|
|
|
+ this.organizationId = '';
|
|
|
|
|
+ this.getData();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|