|  | @@ -120,6 +120,13 @@
 | 
	
		
			
				|  |  |              <div>{{ scope.row.brand }}{{ scope.row.specification }}</div>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  | +        <el-table-column align="center" prop="payStatus" label="是否开启缴费">
 | 
	
		
			
				|  |  | +          <template slot-scope="scope">
 | 
	
		
			
				|  |  | +            <div>
 | 
	
		
			
				|  |  | +              {{ scope.row.openFlag | openFlagStatus }}
 | 
	
		
			
				|  |  | +            </div>
 | 
	
		
			
				|  |  | +          </template>
 | 
	
		
			
				|  |  | +        </el-table-column>
 | 
	
		
			
				|  |  |          <el-table-column align="center" prop="payStatus" label="缴费状态">
 | 
	
		
			
				|  |  |            <template slot-scope="scope">
 | 
	
		
			
				|  |  |              <div>
 | 
	
	
		
			
				|  | @@ -137,11 +144,16 @@
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  |          </el-table-column>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        <el-table-column align="center" prop="studentId" label="操作">
 | 
	
		
			
				|  |  | +        <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>
 | 
	
		
			
				|  |  | +              <el-button
 | 
	
		
			
				|  |  | +                type="text"
 | 
	
		
			
				|  |  |                  @click="resetMusic(scope.row)"
 | 
	
		
			
				|  |  |                  v-if="
 | 
	
		
			
				|  |  |                    permission('replacementInstrumentActivity/update') &&
 | 
	
	
		
			
				|  | @@ -184,7 +196,7 @@
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |  import pagination from "@/components/Pagination/index";
 | 
	
		
			
				|  |  |  import resetInfo from "./resetInfo";
 | 
	
		
			
				|  |  | -import { getInstrumentSoundList, getInstrumentActivityList } 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";
 | 
	
	
		
			
				|  | @@ -255,6 +267,25 @@ export default {
 | 
	
		
			
				|  |  |        this.rules.page = 1;
 | 
	
		
			
				|  |  |        this.getList();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    openFlagMusic(row) {
 | 
	
		
			
				|  |  | +      // 开启缴费
 | 
	
		
			
				|  |  | +      this.$confirm('您是否开启缴费?', '提示', {
 | 
	
		
			
				|  |  | +        confirmButtonText: '确定',
 | 
	
		
			
				|  |  | +        cancelButtonText: '取消',
 | 
	
		
			
				|  |  | +        type: 'warning'
 | 
	
		
			
				|  |  | +      }).then(async () => {
 | 
	
		
			
				|  |  | +        try {
 | 
	
		
			
				|  |  | +          await updateOpenFlag({
 | 
	
		
			
				|  |  | +            Id: row.id,
 | 
	
		
			
				|  |  | +            openFlag: 1
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +          this.$message.success('开启成功')
 | 
	
		
			
				|  |  | +          this.getList()
 | 
	
		
			
				|  |  | +        } catch {
 | 
	
		
			
				|  |  | +          //
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      onReSet() {
 | 
	
		
			
				|  |  |        this.$refs.searchForm.resetFields();
 | 
	
		
			
				|  |  |        this.searchForm.cooperationId = this.detail.id;
 | 
	
	
		
			
				|  | @@ -295,6 +326,12 @@ export default {
 | 
	
		
			
				|  |  |        return permission(str, parent);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | +  filters: {
 | 
	
		
			
				|  |  | +    openFlagStatus(val) {
 | 
	
		
			
				|  |  | +      let template = ['否', '是']
 | 
	
		
			
				|  |  | +      return template[val]
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |  
 |