|
|
@ -8,8 +8,12 @@ |
|
|
|
<div class="single-choice"> |
|
|
|
<div class="single-choice"> |
|
|
|
<dl> |
|
|
|
<dl> |
|
|
|
<dd> |
|
|
|
<dd> |
|
|
|
<el-radio-group v-model="form.month" @change="changeType"> |
|
|
|
<el-radio-group v-model="form.month" |
|
|
|
<el-radio v-for="(item,index) in dateList" :key="index" :label="item.id" border>{{ item.name }}</el-radio> |
|
|
|
@change="changeType"> |
|
|
|
|
|
|
|
<el-radio v-for="(item,index) in dateList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.id" |
|
|
|
|
|
|
|
border>{{ item.name }}</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-radio-group> |
|
|
|
</dd> |
|
|
|
</dd> |
|
|
|
</dl> |
|
|
|
</dl> |
|
|
@ -17,11 +21,22 @@ |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>创建区间:</label> |
|
|
|
<label>创建区间:</label> |
|
|
|
<el-date-picker v-model="date" align="right" unlink-panels type="daterange" start-placeholder="开始日期" end-placeholder="结束日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" clearable></el-date-picker> |
|
|
|
<el-date-picker v-model="date" |
|
|
|
|
|
|
|
align="right" |
|
|
|
|
|
|
|
unlink-panels |
|
|
|
|
|
|
|
type="daterange" |
|
|
|
|
|
|
|
start-placeholder="开始日期" |
|
|
|
|
|
|
|
end-placeholder="结束日期" |
|
|
|
|
|
|
|
format="yyyy-MM-dd" |
|
|
|
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
|
|
|
|
clearable></el-date-picker> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<label>搜索:</label> |
|
|
|
<label>搜索:</label> |
|
|
|
<el-input placeholder="请输入竞赛名称/创建人" suffix-icon="el-icon-search" v-model="keyword" clearable></el-input> |
|
|
|
<el-input placeholder="请输入竞赛名称/创建人" |
|
|
|
|
|
|
|
suffix-icon="el-icon-search" |
|
|
|
|
|
|
|
v-model="keyword" |
|
|
|
|
|
|
|
clearable></el-input> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -31,81 +46,144 @@ |
|
|
|
<label>状态:</label> |
|
|
|
<label>状态:</label> |
|
|
|
<dl> |
|
|
|
<dl> |
|
|
|
<dd> |
|
|
|
<dd> |
|
|
|
<el-radio-group v-model="form.publishStatus" @change="changeType"> |
|
|
|
<el-radio-group v-model="form.publishStatus" |
|
|
|
<el-radio v-for="(item,index) in statuses" :key="index" :label="item.id" border>{{ item.name }}</el-radio> |
|
|
|
@change="changeType"> |
|
|
|
|
|
|
|
<el-radio v-for="(item,index) in statuses" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
|
|
|
|
:label="item.id" |
|
|
|
|
|
|
|
border>{{ item.name }}</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-radio-group> |
|
|
|
</dd> |
|
|
|
</dd> |
|
|
|
</dl> |
|
|
|
</dl> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" round @click="add" v-auth>创建竞赛</el-button> |
|
|
|
<el-button type="primary" |
|
|
|
<el-button type="primary" round @click="delAllSelection" v-auth>批量删除</el-button> |
|
|
|
round |
|
|
|
|
|
|
|
@click="add" |
|
|
|
|
|
|
|
v-auth>创建竞赛</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" |
|
|
|
|
|
|
|
round |
|
|
|
|
|
|
|
@click="delAllSelection" |
|
|
|
|
|
|
|
v-auth>批量删除</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-table ref="table" :data="matchData" class="table" stripe header-align="center" @selection-change="handleSelectionChange" row-key="id"> |
|
|
|
<el-table ref="table" |
|
|
|
<el-table-column type="selection" width="55" align="center" :reserve-selection="true"></el-table-column> |
|
|
|
:data="matchData" |
|
|
|
<el-table-column type="index" width="60" label="序号" align="center"> |
|
|
|
class="table" |
|
|
|
|
|
|
|
stripe |
|
|
|
|
|
|
|
header-align="center" |
|
|
|
|
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
|
|
|
|
row-key="id"> |
|
|
|
|
|
|
|
<el-table-column type="selection" |
|
|
|
|
|
|
|
width="55" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
:reserve-selection="true"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column type="index" |
|
|
|
|
|
|
|
width="60" |
|
|
|
|
|
|
|
label="序号" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.$index + (page - 1) * pageSize + 1 }} |
|
|
|
{{ scope.$index + (page - 1) * pageSize + 1 }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="competitionName" label="竞赛名称" align="center"></el-table-column> |
|
|
|
<el-table-column prop="competitionName" |
|
|
|
<el-table-column prop="applicantNum" label="报名人数" align="center" width="150"></el-table-column> |
|
|
|
label="竞赛名称" |
|
|
|
<el-table-column prop="status" label="状态" align="center" width="90"> |
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="applicantNum" |
|
|
|
|
|
|
|
label="报名人数" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
width="150"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="status" |
|
|
|
|
|
|
|
label="状态" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
width="90"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.publishStatus ? '已发布' : '未发布' }} |
|
|
|
{{ scope.row.publishStatus ? '已发布' : '未发布' }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="time" label="竞赛时间" align="center" width="300"> |
|
|
|
<el-table-column prop="time" |
|
|
|
|
|
|
|
label="竞赛时间" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
width="300"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.playStartTime }} ~ {{ scope.row.playEndTime }} |
|
|
|
{{ scope.row.playStartTime }} ~ {{ scope.row.playEndTime }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="createTime" label="创建时间" align="center" width="160"></el-table-column> |
|
|
|
<el-table-column prop="createTime" |
|
|
|
<el-table-column prop="founderName" label="创建人" align="center" width="130"> |
|
|
|
label="创建时间" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
width="160"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="founderName" |
|
|
|
|
|
|
|
label="创建人" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
width="130"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.founderName || '学校超管' }} |
|
|
|
{{ scope.row.founderName || '学校超管' }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" align="center" width="170"> |
|
|
|
<el-table-column label="操作" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
width="170"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button v-if="scope.row.playingStages && scope.row.playingStages.length" type="text" @click="editEndTime(scope.row)" v-auth>修改结束时间</el-button> |
|
|
|
<el-button v-if="scope.row.playingStages && scope.row.playingStages.length" |
|
|
|
<el-button v-auth type="text" @click="manage(scope.row)">管理</el-button> |
|
|
|
type="text" |
|
|
|
<el-button v-auth type="text" @click="delData(scope.row)">删除</el-button> |
|
|
|
@click="editEndTime(scope.row)" |
|
|
|
|
|
|
|
v-auth>修改结束时间</el-button> |
|
|
|
|
|
|
|
<el-button v-auth |
|
|
|
|
|
|
|
type="text" |
|
|
|
|
|
|
|
@click="manage(scope.row)">管理</el-button> |
|
|
|
|
|
|
|
<el-button v-auth |
|
|
|
|
|
|
|
type="text" |
|
|
|
|
|
|
|
@click="delData(scope.row)">删除</el-button> |
|
|
|
<!-- 列表展示中台的禁启用依据zt_open展示,职站的禁启用依据is_open展示 --> |
|
|
|
<!-- 列表展示中台的禁启用依据zt_open展示,职站的禁启用依据is_open展示 --> |
|
|
|
<!-- 中台禁用了这个学校发布的学校这边还能看到,但是学校这边不能启用。 --> |
|
|
|
<!-- 中台禁用了这个学校发布的学校这边还能看到,但是学校这边不能启用。 --> |
|
|
|
<el-switch |
|
|
|
<el-switch v-if="scope.row.publishStatus" |
|
|
|
v-if="scope.row.publishStatus" |
|
|
|
|
|
|
|
v-auth="'禁用'" |
|
|
|
v-auth="'禁用'" |
|
|
|
v-model="scope.row.isOpen" |
|
|
|
v-model="scope.row.isOpen" |
|
|
|
:active-value="0" |
|
|
|
:active-value="0" |
|
|
|
:inactive-value="1" |
|
|
|
:inactive-value="1" |
|
|
|
style="margin: 0 10px 0 5px" |
|
|
|
style="margin: 0 10px 0 5px" |
|
|
|
:active-text="scope.row.isOpen ? '关' : '开'" |
|
|
|
:active-text="scope.row.isOpen ? '关' : '开'" |
|
|
|
@change="switchOff($event,scope.row,scope.$index)" |
|
|
|
@change="switchOff($event,scope.row,scope.$index)"></el-switch> |
|
|
|
></el-switch> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
<div class="pagination"> |
|
|
|
<div class="pagination"> |
|
|
|
<el-pagination background layout="total, prev, pager, next" :total="total" @current-change="handleCurrentChange" :current-page="page"> |
|
|
|
<el-pagination background |
|
|
|
|
|
|
|
layout="total, prev, pager, next" |
|
|
|
|
|
|
|
:total="total" |
|
|
|
|
|
|
|
@current-change="handleCurrentChange" |
|
|
|
|
|
|
|
:current-page="page"> |
|
|
|
</el-pagination> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="修改当前阶段结束时间" :visible.sync="modifyVisible" width="900px" :close-on-click-modal="false"> |
|
|
|
<el-dialog title="修改当前阶段结束时间" |
|
|
|
<el-table :data="curRow.playingStages" class="table" ref="table" stripe header-align="center"> |
|
|
|
:visible.sync="modifyVisible" |
|
|
|
<el-table-column prop="stageName" label="阶段名称" min-width="100" align="center"></el-table-column> |
|
|
|
width="900px" |
|
|
|
<el-table-column label="竞赛起止时间" width="300" align="center"> |
|
|
|
:close-on-click-modal="false"> |
|
|
|
|
|
|
|
<el-table :data="curRow.playingStages" |
|
|
|
|
|
|
|
class="table" |
|
|
|
|
|
|
|
ref="table" |
|
|
|
|
|
|
|
stripe |
|
|
|
|
|
|
|
header-align="center"> |
|
|
|
|
|
|
|
<el-table-column prop="stageName" |
|
|
|
|
|
|
|
label="阶段名称" |
|
|
|
|
|
|
|
min-width="100" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="竞赛起止时间" |
|
|
|
|
|
|
|
width="300" |
|
|
|
|
|
|
|
align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.startTime + ' ~ ' + scope.row.endTime }} |
|
|
|
{{ scope.row.startTime + ' ~ ' + scope.row.endTime }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="结束时间调整为" align="center" width="280"> |
|
|
|
<el-table-column label="结束时间调整为" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
width="280"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-date-picker |
|
|
|
<el-date-picker popper-class="no-atTheMoment" |
|
|
|
popper-class="no-atTheMoment" |
|
|
|
|
|
|
|
v-model="scope.row.newEndTime" |
|
|
|
v-model="scope.row.newEndTime" |
|
|
|
placeholder="请选择结束时间" |
|
|
|
placeholder="请选择结束时间" |
|
|
|
type="datetime" |
|
|
|
type="datetime" |
|
|
@ -114,9 +192,13 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<span slot="footer" |
|
|
|
<el-button size="small" @click="modifyVisible = false">取 消</el-button> |
|
|
|
class="dialog-footer"> |
|
|
|
<el-button size="small" type="primary" @click="modifySubmit">确 定</el-button> |
|
|
|
<el-button size="small" |
|
|
|
|
|
|
|
@click="modifyVisible = false">取 消</el-button> |
|
|
|
|
|
|
|
<el-button size="small" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
@click="modifySubmit">确 定</el-button> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -130,7 +212,7 @@ import { Loading } from 'element-ui' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: "match", |
|
|
|
name: "match", |
|
|
|
data() { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
return { |
|
|
|
timer: null, |
|
|
|
timer: null, |
|
|
|
keyword: "", |
|
|
|
keyword: "", |
|
|
@ -178,7 +260,7 @@ export default { |
|
|
|
page: +this.$route.query.page || 1, |
|
|
|
page: +this.$route.query.page || 1, |
|
|
|
pageSize: 10, |
|
|
|
pageSize: 10, |
|
|
|
total: 0, |
|
|
|
total: 0, |
|
|
|
transferPublishStatus: [ "未发布", "已发布"], |
|
|
|
transferPublishStatus: ["未发布", "已发布"], |
|
|
|
modifyVisible: false, |
|
|
|
modifyVisible: false, |
|
|
|
curRow: { |
|
|
|
curRow: { |
|
|
|
playingStages: [] |
|
|
|
playingStages: [] |
|
|
@ -188,7 +270,7 @@ export default { |
|
|
|
pickerOptions: { |
|
|
|
pickerOptions: { |
|
|
|
shortcuts: [{ |
|
|
|
shortcuts: [{ |
|
|
|
text: '此刻', |
|
|
|
text: '此刻', |
|
|
|
onClick(picker) { |
|
|
|
onClick (picker) { |
|
|
|
picker.$emit('pick', new Date(Date.now() + 5000)) |
|
|
|
picker.$emit('pick', new Date(Date.now() + 5000)) |
|
|
|
} |
|
|
|
} |
|
|
|
}] |
|
|
|
}] |
|
|
@ -196,7 +278,7 @@ export default { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
"form.month": function(val) { |
|
|
|
"form.month": function (val) { |
|
|
|
if (val) { |
|
|
|
if (val) { |
|
|
|
let unit = 24 * 60 * 60 * 1000; |
|
|
|
let unit = 24 * 60 * 60 * 1000; |
|
|
|
this.date = [util.formatDate("yyyy-MM-dd", new Date(new Date().getTime() - unit * 30 * val)), util.formatDate("yyyy-MM-dd", new Date(new Date().getTime() + unit))]; |
|
|
|
this.date = [util.formatDate("yyyy-MM-dd", new Date(new Date().getTime() - unit * 30 * val)), util.formatDate("yyyy-MM-dd", new Date(new Date().getTime() + unit))]; |
|
|
@ -204,7 +286,7 @@ export default { |
|
|
|
this.date = []; |
|
|
|
this.date = []; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
date: function(val) { |
|
|
|
date: function (val) { |
|
|
|
if (val) { |
|
|
|
if (val) { |
|
|
|
this.form.startTime = val[0]; |
|
|
|
this.form.startTime = val[0]; |
|
|
|
this.form.endTime = val[1]; |
|
|
|
this.form.endTime = val[1]; |
|
|
@ -214,16 +296,16 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
this.initData(); |
|
|
|
this.initData(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
keyword: function(val) { |
|
|
|
keyword: function (val) { |
|
|
|
clearTimeout(this.searchTimer); |
|
|
|
clearTimeout(this.searchTimer); |
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
this.initData(); |
|
|
|
this.initData(); |
|
|
|
}, 500); |
|
|
|
}, 500); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted () { |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
this.$once('hook:beforeDestroy', function() { |
|
|
|
this.$once('hook:beforeDestroy', function () { |
|
|
|
clearInterval(this.timer) |
|
|
|
clearInterval(this.timer) |
|
|
|
clearInterval(this.redisTimer) |
|
|
|
clearInterval(this.redisTimer) |
|
|
|
}) |
|
|
|
}) |
|
|
@ -232,7 +314,7 @@ export default { |
|
|
|
...mapMutations('match', [ |
|
|
|
...mapMutations('match', [ |
|
|
|
'setPage' |
|
|
|
'setPage' |
|
|
|
]), |
|
|
|
]), |
|
|
|
getList() { |
|
|
|
getList () { |
|
|
|
// const load = Loading.service() |
|
|
|
// const load = Loading.service() |
|
|
|
const { form } = this |
|
|
|
const { form } = this |
|
|
|
this.$post(this.api.competitionPageConditionQueryByOccupationlab, { |
|
|
|
this.$post(this.api.competitionPageConditionQueryByOccupationlab, { |
|
|
@ -284,37 +366,37 @@ export default { |
|
|
|
// load.close() |
|
|
|
// load.close() |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
getData() { |
|
|
|
getData () { |
|
|
|
this.getList() |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
}, |
|
|
|
initData() { |
|
|
|
initData () { |
|
|
|
this.page = 1; |
|
|
|
this.page = 1; |
|
|
|
this.getData(); |
|
|
|
this.getData(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 获取redis缓存 |
|
|
|
// 获取redis缓存 |
|
|
|
getRedis() { |
|
|
|
getRedis () { |
|
|
|
this.$post(this.api.getRedisCacheCompetition).then(({ data }) => { |
|
|
|
this.$post(this.api.getRedisCacheCompetition).then(({ data }) => { |
|
|
|
data && this.getList() |
|
|
|
data && this.getList() |
|
|
|
}).catch(res => {}) |
|
|
|
}).catch(res => { }) |
|
|
|
}, |
|
|
|
}, |
|
|
|
getData() { |
|
|
|
getData () { |
|
|
|
this.getList() |
|
|
|
this.getList() |
|
|
|
// if (!Setting.isDev) { |
|
|
|
if (!Setting.isDev) { |
|
|
|
clearInterval(this.redisTimer) |
|
|
|
clearInterval(this.redisTimer) |
|
|
|
this.redisTimer = setInterval(this.getRedis, 1000) |
|
|
|
this.redisTimer = setInterval(this.getRedis, 1000) |
|
|
|
// } |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
add() { |
|
|
|
add () { |
|
|
|
this.$router.push("/match/add"); |
|
|
|
this.$router.push("/match/add"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 修改结束时间 |
|
|
|
// 修改结束时间 |
|
|
|
editEndTime(row) { |
|
|
|
editEndTime (row) { |
|
|
|
this.modifyVisible = true |
|
|
|
this.modifyVisible = true |
|
|
|
row.newEndTime = '' |
|
|
|
row.newEndTime = '' |
|
|
|
this.curRow = row |
|
|
|
this.curRow = row |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 修改结束时间提交 |
|
|
|
// 修改结束时间提交 |
|
|
|
modifySubmit() { |
|
|
|
modifySubmit () { |
|
|
|
const row = this.curRow |
|
|
|
const row = this.curRow |
|
|
|
const data = [] |
|
|
|
const data = [] |
|
|
|
row.competitionStageList.map(e => { |
|
|
|
row.competitionStageList.map(e => { |
|
|
@ -328,17 +410,17 @@ export default { |
|
|
|
util.successMsg('修改成功') |
|
|
|
util.successMsg('修改成功') |
|
|
|
this.modifyVisible = false |
|
|
|
this.modifyVisible = false |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
}).catch(err => {}) |
|
|
|
}).catch(err => { }) |
|
|
|
}, |
|
|
|
}, |
|
|
|
manage(row) { |
|
|
|
manage (row) { |
|
|
|
this.$router.push(`/match/manage?id=${row.id}&name=${row.competitionName}`) |
|
|
|
this.$router.push(`/match/manage?id=${row.id}&name=${row.competitionName}`) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
changeType() { |
|
|
|
changeType () { |
|
|
|
this.$refs.table.clearSelection(); |
|
|
|
this.$refs.table.clearSelection(); |
|
|
|
this.initData(); |
|
|
|
this.initData(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
delData(row) { |
|
|
|
delData (row) { |
|
|
|
this.$confirm("此删除操作不可逆,是否确认删除选中项?", "提示", { |
|
|
|
this.$confirm("此删除操作不可逆,是否确认删除选中项?", "提示", { |
|
|
|
type: "warning" |
|
|
|
type: "warning" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -352,11 +434,11 @@ export default { |
|
|
|
.catch(() => { |
|
|
|
.catch(() => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleSelectionChange(val) { |
|
|
|
handleSelectionChange (val) { |
|
|
|
this.multipleSelection = val; |
|
|
|
this.multipleSelection = val; |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 批量删除 |
|
|
|
// 批量删除 |
|
|
|
delAllSelection() { |
|
|
|
delAllSelection () { |
|
|
|
if (this.multipleSelection.length) { |
|
|
|
if (this.multipleSelection.length) { |
|
|
|
this.$confirm("确定要删除吗?", "提示", { |
|
|
|
this.$confirm("确定要删除吗?", "提示", { |
|
|
|
type: "warning" |
|
|
|
type: "warning" |
|
|
@ -374,24 +456,24 @@ export default { |
|
|
|
this.$message.warning("请先选择赛事 !"); |
|
|
|
this.$message.warning("请先选择赛事 !"); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleCurrentChange(val) { |
|
|
|
handleCurrentChange (val) { |
|
|
|
this.page = val; |
|
|
|
this.page = val; |
|
|
|
this.$router.push(`list?page=${val}`) |
|
|
|
this.$router.push(`list?page=${val}`) |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
this.setPage(val) |
|
|
|
this.setPage(val) |
|
|
|
}, |
|
|
|
}, |
|
|
|
transferTime(date, type) { |
|
|
|
transferTime (date, type) { |
|
|
|
if (date == "0000-00-00 00:00:00") return "---"; |
|
|
|
if (date == "0000-00-00 00:00:00") return "---"; |
|
|
|
return date; |
|
|
|
return date; |
|
|
|
}, |
|
|
|
}, |
|
|
|
switchOff(val, row) { |
|
|
|
switchOff (val, row) { |
|
|
|
this.$post(this.api.disabledEventsCompetition, { |
|
|
|
this.$post(this.api.disabledEventsCompetition, { |
|
|
|
competitionId: row.id, |
|
|
|
competitionId: row.id, |
|
|
|
isOpen: val, |
|
|
|
isOpen: val, |
|
|
|
type: 1 // 禁用平台来源(0中台,1职站) |
|
|
|
type: 1 // 禁用平台来源(0中台,1职站) |
|
|
|
}).then(res => { |
|
|
|
}).then(res => { |
|
|
|
util.successMsg(val == 1 ? '禁用成功' : '启用成功') |
|
|
|
util.successMsg(val == 1 ? '禁用成功' : '启用成功') |
|
|
|
}).catch(err => {}) |
|
|
|
}).catch(err => { }) |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
@ -406,7 +488,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@media(max-width: 1640px) { |
|
|
|
@media (max-width: 1640px) { |
|
|
|
.page .page-content .tool .filter { |
|
|
|
.page .page-content .tool .filter { |
|
|
|
flex-wrap: wrap; |
|
|
|
flex-wrap: wrap; |
|
|
|
margin-bottom: -15px; |
|
|
|
margin-bottom: -15px; |
|
|
|