|  | @@ -0,0 +1,252 @@
 | 
	
		
			
				|  |  | +<template>
 | 
	
		
			
				|  |  | +  <div class="performance">
 | 
	
		
			
				|  |  | +    <el-alert :closable="false" class="alert" type="info">
 | 
	
		
			
				|  |  | +      <template slot="title">
 | 
	
		
			
				|  |  | +        <div class="alerTitle">
 | 
	
		
			
				|  |  | +          <div class="shapeWrap">
 | 
	
		
			
				|  |  | +            <span class="shape"></span>
 | 
	
		
			
				|  |  | +            <p style="margin-right: 5px">展演信息</p>
 | 
	
		
			
				|  |  | +          </div>
 | 
	
		
			
				|  |  | +          <auth auths="musicGroupQuestionnaire/add">
 | 
	
		
			
				|  |  | +            <el-button type="text" @click="openForm()"
 | 
	
		
			
				|  |  | +              >+新增满意度调查</el-button
 | 
	
		
			
				|  |  | +            >
 | 
	
		
			
				|  |  | +          </auth>
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +      </template>
 | 
	
		
			
				|  |  | +    </el-alert>
 | 
	
		
			
				|  |  | +    <div class="tableWrap">
 | 
	
		
			
				|  |  | +      <el-table
 | 
	
		
			
				|  |  | +        style="width: 100%"
 | 
	
		
			
				|  |  | +        :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
 | 
	
		
			
				|  |  | +        :data="tableList"
 | 
	
		
			
				|  |  | +      >
 | 
	
		
			
				|  |  | +        <el-table-column
 | 
	
		
			
				|  |  | +          align="center"
 | 
	
		
			
				|  |  | +          prop="name"
 | 
	
		
			
				|  |  | +          label="展演名称"
 | 
	
		
			
				|  |  | +        ></el-table-column>
 | 
	
		
			
				|  |  | +        <el-table-column
 | 
	
		
			
				|  |  | +          align="center"
 | 
	
		
			
				|  |  | +          prop="startTime"
 | 
	
		
			
				|  |  | +          label="预计时间"
 | 
	
		
			
				|  |  | +        ></el-table-column>
 | 
	
		
			
				|  |  | +        <el-table-column
 | 
	
		
			
				|  |  | +          align="center"
 | 
	
		
			
				|  |  | +          prop="musicScoreName"
 | 
	
		
			
				|  |  | +          label="展演曲目"
 | 
	
		
			
				|  |  | +        ></el-table-column>
 | 
	
		
			
				|  |  | +        <el-table-column
 | 
	
		
			
				|  |  | +          align="center"
 | 
	
		
			
				|  |  | +          prop="operatorName"
 | 
	
		
			
				|  |  | +          label="添加人"
 | 
	
		
			
				|  |  | +        ></el-table-column>
 | 
	
		
			
				|  |  | +        <el-table-column
 | 
	
		
			
				|  |  | +          align="center"
 | 
	
		
			
				|  |  | +          label="操作"
 | 
	
		
			
				|  |  | +          fixed="right"
 | 
	
		
			
				|  |  | +          width="220px"
 | 
	
		
			
				|  |  | +        >
 | 
	
		
			
				|  |  | +          <template slot-scope="scope">
 | 
	
		
			
				|  |  | +            <auth auths="teacherAttendance/repealComplaints">
 | 
	
		
			
				|  |  | +              <el-button
 | 
	
		
			
				|  |  | +                type="text"
 | 
	
		
			
				|  |  | +                @click="openForm(scope.row)"
 | 
	
		
			
				|  |  | +                >修改</el-button
 | 
	
		
			
				|  |  | +              >
 | 
	
		
			
				|  |  | +            </auth>
 | 
	
		
			
				|  |  | +            <auth auths="teacherAttendance/repealComplaints">
 | 
	
		
			
				|  |  | +              <el-button
 | 
	
		
			
				|  |  | +                type="text"
 | 
	
		
			
				|  |  | +                @click="remove(scope.row)"
 | 
	
		
			
				|  |  | +                >删除</el-button
 | 
	
		
			
				|  |  | +              >
 | 
	
		
			
				|  |  | +            </auth>
 | 
	
		
			
				|  |  | +          </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="FetchList"
 | 
	
		
			
				|  |  | +      />
 | 
	
		
			
				|  |  | +    </div>
 | 
	
		
			
				|  |  | +    <el-alert :closable="false" class="alert" type="info">
 | 
	
		
			
				|  |  | +      <template slot="title">
 | 
	
		
			
				|  |  | +        <div class="alerTitle">
 | 
	
		
			
				|  |  | +          <div class="shapeWrap">
 | 
	
		
			
				|  |  | +            <span class="shape"></span>
 | 
	
		
			
				|  |  | +            <p style="margin-right: 5px">获奖证书</p>
 | 
	
		
			
				|  |  | +          </div>
 | 
	
		
			
				|  |  | +          <auth auths="musicGroupQuestionnaire/add">
 | 
	
		
			
				|  |  | +            <el-button type="text"
 | 
	
		
			
				|  |  | +              >全部证书 ></el-button
 | 
	
		
			
				|  |  | +            >
 | 
	
		
			
				|  |  | +          </auth>
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +      </template>
 | 
	
		
			
				|  |  | +    </el-alert>
 | 
	
		
			
				|  |  | +    <div
 | 
	
		
			
				|  |  | +      v-for="(item) in photos"
 | 
	
		
			
				|  |  | +      :key="item.url"
 | 
	
		
			
				|  |  | +      class="img-container"
 | 
	
		
			
				|  |  | +    >
 | 
	
		
			
				|  |  | +      <el-image
 | 
	
		
			
				|  |  | +        :src="item.url"
 | 
	
		
			
				|  |  | +        class="img"
 | 
	
		
			
				|  |  | +        fit="contain"
 | 
	
		
			
				|  |  | +        :preview-src-list="photos.map(item => item.url)">
 | 
	
		
			
				|  |  | +      </el-image>
 | 
	
		
			
				|  |  | +      <el-tooltip class="item" effect="dark" :content="item.name" placement="top" :open-delay=".5">
 | 
	
		
			
				|  |  | +        <div class="name">{{item.name}}</div>
 | 
	
		
			
				|  |  | +      </el-tooltip>
 | 
	
		
			
				|  |  | +    </div>
 | 
	
		
			
				|  |  | +    <el-dialog
 | 
	
		
			
				|  |  | +      :title="detail ? '修改展演信息' : '添加展演信息'"
 | 
	
		
			
				|  |  | +      :visible.sync="formVisible"
 | 
	
		
			
				|  |  | +    >
 | 
	
		
			
				|  |  | +      <performance-form
 | 
	
		
			
				|  |  | +        v-if="formVisible"
 | 
	
		
			
				|  |  | +        @close="formVisible = false"
 | 
	
		
			
				|  |  | +        @submited="submited"
 | 
	
		
			
				|  |  | +        :detail="detail"
 | 
	
		
			
				|  |  | +      />
 | 
	
		
			
				|  |  | +    </el-dialog>
 | 
	
		
			
				|  |  | +  </div>
 | 
	
		
			
				|  |  | +</template>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +<script>
 | 
	
		
			
				|  |  | +import pagination from "@/components/Pagination/index";
 | 
	
		
			
				|  |  | +import PerformanceForm from './modals/performance-form.vue'
 | 
	
		
			
				|  |  | +import { photoQueryPage } from '@/views/resetTeaming/components/training-photos/api'
 | 
	
		
			
				|  |  | +import { musicGroupPerformanceQueryPage, musicGroupPerformanceDel } from './api'
 | 
	
		
			
				|  |  | +export default {
 | 
	
		
			
				|  |  | +  components: {
 | 
	
		
			
				|  |  | +    pagination,
 | 
	
		
			
				|  |  | +    PerformanceForm
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  data() {
 | 
	
		
			
				|  |  | +    return {
 | 
	
		
			
				|  |  | +      detail: null,
 | 
	
		
			
				|  |  | +      formVisible: false,
 | 
	
		
			
				|  |  | +      tableList: [],
 | 
	
		
			
				|  |  | +      photos: [],
 | 
	
		
			
				|  |  | +      rules: {
 | 
	
		
			
				|  |  | +        // 分页规则
 | 
	
		
			
				|  |  | +        limit: 10, // 限制显示条数
 | 
	
		
			
				|  |  | +        page: 1, // 当前页
 | 
	
		
			
				|  |  | +        total: 0, // 总条数
 | 
	
		
			
				|  |  | +        page_size: [10, 20, 40, 50], // 选择限制显示条数
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  mounted() {
 | 
	
		
			
				|  |  | +    this.FetchList()
 | 
	
		
			
				|  |  | +    this.FetchPhoto()
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  methods: {
 | 
	
		
			
				|  |  | +    openForm(detail) {
 | 
	
		
			
				|  |  | +      this.detail = detail
 | 
	
		
			
				|  |  | +      this.formVisible = true
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    submited() {
 | 
	
		
			
				|  |  | +      this.rules.page = 1
 | 
	
		
			
				|  |  | +      this.FetchList()
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    async remove(item) {
 | 
	
		
			
				|  |  | +      try {
 | 
	
		
			
				|  |  | +        await this.$confirm('是否确认删除此数据', '提示')
 | 
	
		
			
				|  |  | +        await musicGroupPerformanceDel({
 | 
	
		
			
				|  |  | +          id: item.id
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +        this.$message.success('删除成功')
 | 
	
		
			
				|  |  | +        this.submited()
 | 
	
		
			
				|  |  | +      } catch (error) {}
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    async FetchList() {
 | 
	
		
			
				|  |  | +      try {
 | 
	
		
			
				|  |  | +        const res = await musicGroupPerformanceQueryPage({
 | 
	
		
			
				|  |  | +          page: this.rules.page
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +        this.tableList = res.data.rows;
 | 
	
		
			
				|  |  | +        this.rules.total = res.data.total;
 | 
	
		
			
				|  |  | +      } catch (error) {}
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    async FetchPhoto() {
 | 
	
		
			
				|  |  | +      try {
 | 
	
		
			
				|  |  | +        const res = await photoQueryPage({
 | 
	
		
			
				|  |  | +          rows: 5,
 | 
	
		
			
				|  |  | +          type: 'SHOW',
 | 
	
		
			
				|  |  | +          musicGroupId: this.$route.query.id
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +        this.photos = res.data.rows;
 | 
	
		
			
				|  |  | +      } catch (error) {}
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +</script>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +<style lang="less" scoped>
 | 
	
		
			
				|  |  | +.performance{
 | 
	
		
			
				|  |  | +  /deep/.el-alert__content{
 | 
	
		
			
				|  |  | +    width: 100%;
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +.shapeWrap {
 | 
	
		
			
				|  |  | +  display: flex;
 | 
	
		
			
				|  |  | +  flex-direction: row;
 | 
	
		
			
				|  |  | +  justify-content: flex-start;
 | 
	
		
			
				|  |  | +  align-items: center;
 | 
	
		
			
				|  |  | +  .shape {
 | 
	
		
			
				|  |  | +    position: relative;
 | 
	
		
			
				|  |  | +    top: -1px;
 | 
	
		
			
				|  |  | +    display: block;
 | 
	
		
			
				|  |  | +    margin-right: 10px;
 | 
	
		
			
				|  |  | +    height: 14px;
 | 
	
		
			
				|  |  | +    width: 4px;
 | 
	
		
			
				|  |  | +    background-color: #14928a;
 | 
	
		
			
				|  |  | +    z-index: 500;
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +.alerTitle {
 | 
	
		
			
				|  |  | +  width: 100%;
 | 
	
		
			
				|  |  | +  display: flex;
 | 
	
		
			
				|  |  | +  flex-direction: row;
 | 
	
		
			
				|  |  | +  justify-content: space-between;
 | 
	
		
			
				|  |  | +  .el-button {
 | 
	
		
			
				|  |  | +    padding: 0 20px !important;
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +.img-container{
 | 
	
		
			
				|  |  | +  display: inline-flex;
 | 
	
		
			
				|  |  | +  margin-right: 20px;
 | 
	
		
			
				|  |  | +  margin-top: 20px;
 | 
	
		
			
				|  |  | +  flex-direction: column;
 | 
	
		
			
				|  |  | +  text-align: center;
 | 
	
		
			
				|  |  | +  position: relative;
 | 
	
		
			
				|  |  | +  >.name{
 | 
	
		
			
				|  |  | +    width: 100%;
 | 
	
		
			
				|  |  | +    height: 30px;
 | 
	
		
			
				|  |  | +    line-height: 30px;
 | 
	
		
			
				|  |  | +    text-align: center;
 | 
	
		
			
				|  |  | +    margin-top: 10px;
 | 
	
		
			
				|  |  | +    color: rgba(0, 0, 0, .65);
 | 
	
		
			
				|  |  | +    overflow: hidden;
 | 
	
		
			
				|  |  | +    text-overflow: ellipsis;
 | 
	
		
			
				|  |  | +    white-space: pre;
 | 
	
		
			
				|  |  | +    font-size: 14px;
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +.img{
 | 
	
		
			
				|  |  | +  width: 200px;
 | 
	
		
			
				|  |  | +  height: 112.5px;
 | 
	
		
			
				|  |  | +  border-radius: 3px;
 | 
	
		
			
				|  |  | +  background-color: rgba(0, 0, 0, .05);
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +.tableWrap{
 | 
	
		
			
				|  |  | +  margin-top: 20px;
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +</style>
 |