|
@@ -47,6 +47,28 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item prop="hasYesFirstAnswer">
|
|
|
+ <el-select
|
|
|
+ v-model.trim="searchForm.hasYesFirstAnswer"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ placeholder="请选择是否参加市赛"
|
|
|
+ >
|
|
|
+ <el-option label="是" :value="1"></el-option>
|
|
|
+ <el-option label="否" :value="0"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="hasInstrumentsId">
|
|
|
+ <el-select
|
|
|
+ v-model.trim="searchForm.hasInstrumentsId"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ placeholder="请选择是置换乐器"
|
|
|
+ >
|
|
|
+ <el-option label="是" :value="true"></el-option>
|
|
|
+ <el-option label="否" :value="false"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button native-type="submit" type="primary">搜索</el-button>
|
|
|
<el-button native-type="reset" type="danger">重置</el-button>
|
|
@@ -75,6 +97,20 @@
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
+ prop="question1"
|
|
|
+ label="是否参加市赛"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ label="是否置换"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.instrumentsId ? '是' : '否' }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
prop="subjectName"
|
|
|
label="声部"
|
|
|
></el-table-column>
|
|
@@ -117,8 +153,7 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<pagination
|
|
|
- sync
|
|
|
- :total.sync="rules.total"
|
|
|
+ :total="rules.total"
|
|
|
:page.sync="rules.page"
|
|
|
:limit.sync="rules.limit"
|
|
|
:page-sizes="rules.page_size"
|
|
@@ -173,6 +208,8 @@ export default {
|
|
|
specification: "",
|
|
|
search: "",
|
|
|
subjectId: "",
|
|
|
+ hasYesFirstAnswer: '',
|
|
|
+ hasInstrumentsId: ''
|
|
|
},
|
|
|
tableList: [],
|
|
|
rules: {
|
|
@@ -204,7 +241,12 @@ export default {
|
|
|
page: this.rules.page,
|
|
|
rows: this.rules.limit,
|
|
|
});
|
|
|
- this.tableList = res.data.rows;
|
|
|
+ let temp = res.data.rows || []
|
|
|
+ temp.forEach(item => {
|
|
|
+ let questionResult = item.questionResult.split('')
|
|
|
+ item.question1 = questionResult[0] == 1 ? '是' : '否'
|
|
|
+ })
|
|
|
+ this.tableList = temp;
|
|
|
this.rules.total = res.data.total;
|
|
|
} catch (e) {}
|
|
|
},
|