|  | @@ -96,18 +96,24 @@
 | 
	
		
			
				|  |  |            prop="mobileNo"
 | 
	
		
			
				|  |  |            label="联系电话"
 | 
	
		
			
				|  |  |          ></el-table-column>
 | 
	
		
			
				|  |  | -        <!-- <el-table-column
 | 
	
		
			
				|  |  | -          align="center"
 | 
	
		
			
				|  |  | -          prop="question1"
 | 
	
		
			
				|  |  | -          label="是否参加市赛"
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | -        </el-table-column> -->
 | 
	
		
			
				|  |  | -        <el-table-column
 | 
	
		
			
				|  |  | -          align="center"
 | 
	
		
			
				|  |  | -          label="是否置换"
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | +        <el-table-column align="center" prop="actualAmount" label="现金">
 | 
	
		
			
				|  |  | +          <template slot-scope="scope">
 | 
	
		
			
				|  |  | +            <div>
 | 
	
		
			
				|  |  | +              {{ scope.row.actualAmount | moneyFormat }}
 | 
	
		
			
				|  |  | +            </div>
 | 
	
		
			
				|  |  | +          </template>
 | 
	
		
			
				|  |  | +        </el-table-column>
 | 
	
		
			
				|  |  | +        <el-table-column align="center" prop="balance" label="余额">
 | 
	
		
			
				|  |  | +          <template slot-scope="scope">
 | 
	
		
			
				|  |  | +            <div>
 | 
	
		
			
				|  |  | +              {{ scope.row.balance | moneyFormat }}
 | 
	
		
			
				|  |  | +            </div>
 | 
	
		
			
				|  |  | +          </template>
 | 
	
		
			
				|  |  | +        </el-table-column>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        <el-table-column align="center" label="是否置换">
 | 
	
		
			
				|  |  |            <template slot-scope="scope">
 | 
	
		
			
				|  |  | -            {{ scope.row.instrumentsId ? '是' : '否' }}
 | 
	
		
			
				|  |  | +            {{ scope.row.instrumentsId ? "是" : "否" }}
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  |          <el-table-column
 | 
	
	
		
			
				|  | @@ -144,14 +150,24 @@
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        <el-table-column align="center" prop="studentId" label="操作" width="150px">
 | 
	
		
			
				|  |  | +        <el-table-column
 | 
	
		
			
				|  |  | +          align="center"
 | 
	
		
			
				|  |  | +          prop="studentId"
 | 
	
		
			
				|  |  | +          label="操作"
 | 
	
		
			
				|  |  | +          width="150px"
 | 
	
		
			
				|  |  | +        >
 | 
	
		
			
				|  |  |            <template slot-scope="scope">
 | 
	
		
			
				|  |  |              <div>
 | 
	
		
			
				|  |  |                <el-button
 | 
	
		
			
				|  |  |                  type="text"
 | 
	
		
			
				|  |  |                  @click="openFlagMusic(scope.row)"
 | 
	
		
			
				|  |  | -                v-if="scope.row.openFlag == 0 && scope.row.instrumentsId && permission('replacementInstrumentActivity/updateOpenFlag')"
 | 
	
		
			
				|  |  | -                >开启缴费</el-button>
 | 
	
		
			
				|  |  | +                v-if="
 | 
	
		
			
				|  |  | +                  scope.row.openFlag == 0 &&
 | 
	
		
			
				|  |  | +                  scope.row.instrumentsId &&
 | 
	
		
			
				|  |  | +                  permission('replacementInstrumentActivity/updateOpenFlag')
 | 
	
		
			
				|  |  | +                "
 | 
	
		
			
				|  |  | +                >开启缴费</el-button
 | 
	
		
			
				|  |  | +              >
 | 
	
		
			
				|  |  |                <el-button
 | 
	
		
			
				|  |  |                  type="text"
 | 
	
		
			
				|  |  |                  @click="resetMusic(scope.row)"
 | 
	
	
		
			
				|  | @@ -196,7 +212,11 @@
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |  import pagination from "@/components/Pagination/index";
 | 
	
		
			
				|  |  |  import resetInfo from "./resetInfo";
 | 
	
		
			
				|  |  | -import { getInstrumentSoundList, getInstrumentActivityList, updateOpenFlag } from "../api";
 | 
	
		
			
				|  |  | +import {
 | 
	
		
			
				|  |  | +  getInstrumentSoundList,
 | 
	
		
			
				|  |  | +  getInstrumentActivityList,
 | 
	
		
			
				|  |  | +  updateOpenFlag,
 | 
	
		
			
				|  |  | +} from "../api";
 | 
	
		
			
				|  |  |  import ItemVue from "@/layout/components/Sidebar/Item.vue";
 | 
	
		
			
				|  |  |  import Tooltip from "@/components/Tooltip/index";
 | 
	
		
			
				|  |  |  import { permission } from "@/utils/directivePage";
 | 
	
	
		
			
				|  | @@ -221,8 +241,8 @@ export default {
 | 
	
		
			
				|  |  |          specification: "",
 | 
	
		
			
				|  |  |          search: "",
 | 
	
		
			
				|  |  |          subjectId: "",
 | 
	
		
			
				|  |  | -        hasYesFirstAnswer: '',
 | 
	
		
			
				|  |  | -        hasInstrumentsId: ''
 | 
	
		
			
				|  |  | +        hasYesFirstAnswer: "",
 | 
	
		
			
				|  |  | +        hasInstrumentsId: "",
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        tableList: [],
 | 
	
		
			
				|  |  |        rules: {
 | 
	
	
		
			
				|  | @@ -235,7 +255,7 @@ export default {
 | 
	
		
			
				|  |  |        dialogVisible: false,
 | 
	
		
			
				|  |  |        branchList: [],
 | 
	
		
			
				|  |  |        resetRow: null,
 | 
	
		
			
				|  |  | -      soundList:soundList
 | 
	
		
			
				|  |  | +      soundList: soundList,
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    mounted() {
 | 
	
	
		
			
				|  | @@ -254,11 +274,11 @@ export default {
 | 
	
		
			
				|  |  |            page: this.rules.page,
 | 
	
		
			
				|  |  |            rows: this.rules.limit,
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  | -         let temp = res.data.rows || []
 | 
	
		
			
				|  |  | -          temp.forEach(item => {
 | 
	
		
			
				|  |  | -              let questionResult = item.questionResult.split('')
 | 
	
		
			
				|  |  | -              item.question1 = questionResult[0] == 1 ? '是' : '否'
 | 
	
		
			
				|  |  | -          })
 | 
	
		
			
				|  |  | +        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) {}
 | 
	
	
		
			
				|  | @@ -269,22 +289,22 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      openFlagMusic(row) {
 | 
	
		
			
				|  |  |        // 开启缴费
 | 
	
		
			
				|  |  | -      this.$confirm('您是否开启缴费?', '提示', {
 | 
	
		
			
				|  |  | -        confirmButtonText: '确定',
 | 
	
		
			
				|  |  | -        cancelButtonText: '取消',
 | 
	
		
			
				|  |  | -        type: 'warning'
 | 
	
		
			
				|  |  | +      this.$confirm("您是否开启缴费?", "提示", {
 | 
	
		
			
				|  |  | +        confirmButtonText: "确定",
 | 
	
		
			
				|  |  | +        cancelButtonText: "取消",
 | 
	
		
			
				|  |  | +        type: "warning",
 | 
	
		
			
				|  |  |        }).then(async () => {
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  |            await updateOpenFlag({
 | 
	
		
			
				|  |  |              Id: row.id,
 | 
	
		
			
				|  |  | -            openFlag: 1
 | 
	
		
			
				|  |  | -          })
 | 
	
		
			
				|  |  | -          this.$message.success('开启成功')
 | 
	
		
			
				|  |  | -          this.getList()
 | 
	
		
			
				|  |  | +            openFlag: 1,
 | 
	
		
			
				|  |  | +          });
 | 
	
		
			
				|  |  | +          this.$message.success("开启成功");
 | 
	
		
			
				|  |  | +          this.getList();
 | 
	
		
			
				|  |  |          } catch {
 | 
	
		
			
				|  |  |            //
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -      })
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      onReSet() {
 | 
	
		
			
				|  |  |        this.$refs.searchForm.resetFields();
 | 
	
	
		
			
				|  | @@ -328,10 +348,10 @@ export default {
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    filters: {
 | 
	
		
			
				|  |  |      openFlagStatus(val) {
 | 
	
		
			
				|  |  | -      let template = ['否', '是']
 | 
	
		
			
				|  |  | -      return template[val]
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -  }
 | 
	
		
			
				|  |  | +      let template = ["否", "是"];
 | 
	
		
			
				|  |  | +      return template[val];
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |  
 |