|
@@ -0,0 +1,228 @@
|
|
|
+<!-- -->
|
|
|
+<template>
|
|
|
+ <div class="m-container">
|
|
|
+ <h2>
|
|
|
+ <div class="squrt"></div>
|
|
|
+ 乐器置换
|
|
|
+ </h2>
|
|
|
+ <div class="m-core">
|
|
|
+ <div class="btnList">
|
|
|
+ <!-- v-permission="'export/practiceGroup'" -->
|
|
|
+ <div
|
|
|
+ class="newBand"
|
|
|
+ @click="makeUrl"
|
|
|
+ style="max-width: 150px; margin-right: 10px"
|
|
|
+ >
|
|
|
+ 生成链接
|
|
|
+ </div>
|
|
|
+ <div class="newBand" @click="onExport" style="max-width: 150px">
|
|
|
+ 导出
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <save-form
|
|
|
+ :inline="true"
|
|
|
+ :model="searchForm"
|
|
|
+ @submit="search"
|
|
|
+ @reset="onReSet"
|
|
|
+ >
|
|
|
+ <el-form-item>
|
|
|
+ <el-input
|
|
|
+ v-model.trim="searchForm.search"
|
|
|
+ clearable
|
|
|
+ @keyup.enter.native="search"
|
|
|
+ placeholder="学校名称或编号"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="organIdList">
|
|
|
+ <el-select
|
|
|
+ v-model.trim="searchForm.organIdList"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ placeholder="请选择分部"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in selects.branchs"
|
|
|
+ :key="index"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="ispay">
|
|
|
+ <el-select
|
|
|
+ class="multiple"
|
|
|
+ v-model.trim="searchForm.ispay"
|
|
|
+ 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>
|
|
|
+ </el-form-item>
|
|
|
+ </save-form>
|
|
|
+ <div class="tableWrap">
|
|
|
+ <el-table
|
|
|
+ style="width: 100%"
|
|
|
+ :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
+ :data="tableList"
|
|
|
+ >
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="分部"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="合作单位"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="调查人数"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="置换人数"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="置换率"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="是否开启缴费"
|
|
|
+ ></el-table-column>
|
|
|
+ <el-table-column align="center" prop="studentId" label="操作">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ <el-button type="text" @click="lookDetail(scope.row)">详情</el-button>
|
|
|
+ <el-button type="text">调查链接</el-button>
|
|
|
+ <el-button type="text">统计链接</el-button>
|
|
|
+ <el-button type="text">开启缴费</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <pagination
|
|
|
+ sync
|
|
|
+ :total.sync="rules.total"
|
|
|
+ :page.sync="rules.page"
|
|
|
+ :limit.sync="rules.limit"
|
|
|
+ :page-sizes="rules.page_size"
|
|
|
+ @pagination="getList"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <el-dialog
|
|
|
+ title="生成链接"
|
|
|
+ :visible.sync="makeUrlVisible"
|
|
|
+ width="500px"
|
|
|
+ v-if="makeUrlVisible"
|
|
|
+ >
|
|
|
+ <addUrl ref="addUrl" @close='close'/>
|
|
|
+ <div slot="footer">
|
|
|
+ <el-button @click="makeUrlVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="addurl"
|
|
|
+ >生成链接</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ title="详情"
|
|
|
+ :visible.sync="detailVisible"
|
|
|
+ width="1000px"
|
|
|
+ v-if="detailVisible"
|
|
|
+ >
|
|
|
+ <detail ref="detail" @close='close'/>
|
|
|
+ <div slot="footer">
|
|
|
+ <el-button type="primary" @click="detailVisible = false"
|
|
|
+ >确定</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import axios from "axios";
|
|
|
+import { getToken } from "@/utils/auth";
|
|
|
+import pagination from "@/components/Pagination/index";
|
|
|
+import addUrl from './modals/addUrl'
|
|
|
+import detail from './modals/detail'
|
|
|
+import load from "@/utils/loading";
|
|
|
+export default {
|
|
|
+ components: { pagination,addUrl,detail },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ searchForm: {
|
|
|
+ search: null,
|
|
|
+ organIdList: "",
|
|
|
+ ispay: "",
|
|
|
+ },
|
|
|
+
|
|
|
+ tableList: [{}],
|
|
|
+ rules: {
|
|
|
+ // 分页规则
|
|
|
+ limit: 10, // 限制显示条数
|
|
|
+ page: 1, // 当前页
|
|
|
+ total: 0, // 总条数
|
|
|
+ page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
|
+ },
|
|
|
+ makeUrlVisible: false,
|
|
|
+ detailVisible:false
|
|
|
+ };
|
|
|
+ },
|
|
|
+ //生命周期 - 创建完成(可以访问当前this实例)
|
|
|
+ created() {},
|
|
|
+ //生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
+ mounted() {
|
|
|
+ // 获取分部
|
|
|
+
|
|
|
+ this.init();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ init() {
|
|
|
+ this.$store.dispatch("setBranchs");
|
|
|
+
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ getList() {},
|
|
|
+ search() {
|
|
|
+ this.rules.page = 1;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ onReSet() {},
|
|
|
+ makeUrl() {
|
|
|
+ this.makeUrlVisible = true;
|
|
|
+ },
|
|
|
+ addurl(){
|
|
|
+ this.$refs.addUrl.submit()
|
|
|
+ },
|
|
|
+ close(){
|
|
|
+ this.makeUrlVisible=false;
|
|
|
+ this.detailVisible = false
|
|
|
+ },
|
|
|
+ onExport() {},
|
|
|
+ lookDetail(row){
|
|
|
+ this.detailVisible = true
|
|
|
+ }
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang='scss' scoped>
|
|
|
+.btnList {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: flex-start;
|
|
|
+}
|
|
|
+</style>
|