|
|
|
@ -1,35 +1,18 @@ |
|
|
|
|
<template> |
|
|
|
|
<div class="content"> |
|
|
|
|
<div class="header flex"> |
|
|
|
|
<i class="el-icon-arrow-left" @click="back" style="cursor:pointer"> |
|
|
|
|
<span>Back</span> |
|
|
|
|
</i> |
|
|
|
|
|
|
|
|
|
<p>{{ systemName }} 判分点设置</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="footer"> |
|
|
|
|
<div class="footer_h"> |
|
|
|
|
<div class="black" style="float: left"></div> |
|
|
|
|
<p style="float: left">判分点列表</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="flex footer_h"> |
|
|
|
|
<div style="width: 300px;float: left"> |
|
|
|
|
<el-input placeholder="请输入判分点名称" style="height: 33px;width:100%" prefix-icon="el-icon-search" |
|
|
|
|
<div class="wrap"> |
|
|
|
|
<el-card shadow="hover"> |
|
|
|
|
<el-page-header content="判分点设置" @back="back"></el-page-header> |
|
|
|
|
<div class="tools"> |
|
|
|
|
<el-input placeholder="请输入判分点名称" prefix-icon="el-icon-search" size="small" style="width: 300px;" |
|
|
|
|
v-model="keyword" clearable></el-input> |
|
|
|
|
</div> |
|
|
|
|
<div style="float: right"> |
|
|
|
|
<el-button class="button" style="height: 33px;line-height: 0px" @click="HomepageJump()">新增</el-button> |
|
|
|
|
<el-button class="button" style="height: 33px;line-height: 0px" @click="deletes()">批量删除</el-button> |
|
|
|
|
<el-button v-if="systemId == 19" class="button" style="height: 33px;line-height: 0px" |
|
|
|
|
@click="batchCopy">批量复制</el-button> |
|
|
|
|
<div> |
|
|
|
|
<el-button type="primary" size="small" round @click="toAdd">新增</el-button> |
|
|
|
|
<el-button type="primary" size="small" round @click="batchDel">批量删除</el-button> |
|
|
|
|
<el-button v-if="systemId == 19" type="primary" size="small" round @click="batchCopy">批量复制</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<el-card shadow="hover"> |
|
|
|
|
<el-table :data="tableData" :cell-style="rowClass" :header-cell-style="headClass" :stripe="true" |
|
|
|
|
header-align="center" @selection-change="handleSelectionChange"> |
|
|
|
|
<el-table ref="table" class="list" :data="tableData" :cell-style="rowClass" :header-cell-style="headClass" |
|
|
|
|
size="small" :stripe="true" header-align="center" @selection-change="handleSelectionChange"> |
|
|
|
|
<el-table-column type="selection" width="55"> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column type="index" label="序号" width="80" align="center"> |
|
|
|
@ -43,7 +26,6 @@ |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
<el-table-column prop="operate" label="操作" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button v-if="systemId == 19" @click="copy(scope.row)" type="text" size="small">复制</el-button> |
|
|
|
@ -58,25 +40,20 @@ |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
</el-card> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
<!-- 分页 --> |
|
|
|
|
<div class="block"> |
|
|
|
|
<div class="pagination"> |
|
|
|
|
<el-pagination background @current-change="handleCurrentChange" :current-page="pageNum" :page-size="10" |
|
|
|
|
layout="total,prev, pager, next, jumper" :total="dataTotal"></el-pagination> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-dialog title="复制" :visible.sync="copyVisible" width="500px" center :close-on-click-modal="false"> |
|
|
|
|
<el-form label-width="90px" v-loading="beforeCopying"> |
|
|
|
|
<el-form-item v-if="curRow" prop="name" label="判分点名称"> |
|
|
|
|
<el-input size="small" placeholder="请输入判分点名称" v-model="form.name"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item prop="checkpointId" label="关联关卡"> |
|
|
|
|
<el-select size="small" v-model="form.checkpointId" placeholder="请选择关联关卡"> |
|
|
|
|
<el-form-item prop="checkpointId" label="复制至关卡"> |
|
|
|
|
<el-select size="small" v-model="form.checkpointId" placeholder="请选择要复制至的关卡"> |
|
|
|
|
<el-option v-for="(item, i) in checkpoints" :key="i" :label="item.customsPassName" |
|
|
|
|
:value="item.checkpointId"> |
|
|
|
|
</el-option> |
|
|
|
@ -100,7 +77,7 @@ export default { |
|
|
|
|
keyword: '', |
|
|
|
|
searchTimer: null, |
|
|
|
|
tableData: [], |
|
|
|
|
dataTotal: 0, // 总条数,根据接口获取数据长度(注意:这里不能为空) |
|
|
|
|
dataTotal: 0, |
|
|
|
|
pageNum: 1, |
|
|
|
|
pageSize: 10, |
|
|
|
|
currentPage: 1, |
|
|
|
@ -124,7 +101,8 @@ export default { |
|
|
|
|
keyword: function (val) { |
|
|
|
|
clearTimeout(this.searchTimer) |
|
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
|
this.pageNum = 1; |
|
|
|
|
this.$refs.table.clearSelection() |
|
|
|
|
this.pageNum = 1 |
|
|
|
|
this.initData() |
|
|
|
|
}, 500) |
|
|
|
|
}, |
|
|
|
@ -142,6 +120,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
handleCurrentChange (val) { // 切换页码 |
|
|
|
|
this.$refs.table.clearSelection() |
|
|
|
|
this.pageNum = val; |
|
|
|
|
this.initData(); |
|
|
|
|
}, |
|
|
|
@ -172,17 +151,14 @@ export default { |
|
|
|
|
} else { |
|
|
|
|
this.$message.error(res.message); |
|
|
|
|
} |
|
|
|
|
}).catch(err => { |
|
|
|
|
console.log(err); |
|
|
|
|
}); |
|
|
|
|
}).catch(err => { }); |
|
|
|
|
}, |
|
|
|
|
// |
|
|
|
|
handleSelectionChange (val) { |
|
|
|
|
console.log(val) |
|
|
|
|
this.multipleSelection = val; |
|
|
|
|
}, |
|
|
|
|
//批量删除 |
|
|
|
|
deletes () { |
|
|
|
|
batchDel () { |
|
|
|
|
let bcIdList = []; |
|
|
|
|
let nameList = []; |
|
|
|
|
let lcIdList = []; |
|
|
|
@ -226,16 +202,9 @@ export default { |
|
|
|
|
if (this.nameList.length === this.tableData.length && this.pageNum > 1) { |
|
|
|
|
this.handleCurrentChange(this.pageNum - 1) |
|
|
|
|
} |
|
|
|
|
}).catch(() => { |
|
|
|
|
this.$message.info("已取消删除"); |
|
|
|
|
}); |
|
|
|
|
}).catch(() => { }); |
|
|
|
|
} else { |
|
|
|
|
this.$alert('请选择需要删除的判分点', '提示', { |
|
|
|
|
confirmButtonText: '好的', |
|
|
|
|
callback: action => { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$message.error('请选择数据') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
getProgrammingClassData (params) { // 获取编程类判分点列表数据 |
|
|
|
@ -246,31 +215,20 @@ export default { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
getCHProgrammingClassData () { |
|
|
|
|
let systemId = this.$route.query.systemId |
|
|
|
|
let userId = this.$route.query.userId |
|
|
|
|
let pageNum = this.$route.query.pageNum |
|
|
|
|
let pageSize = this.$route.query.pageSize |
|
|
|
|
let queryName = this.$route.query.queryName |
|
|
|
|
let userIdList = this.$route.query.userIdList |
|
|
|
|
this.$post(`${this.api.QueryPointOfJudgement}?systemId=${systemId}&userId=${userId}&pageNum=${pageNum}&pageSize=${pageSize}&queryName=${queryName}&userIdList=${userIdList}`).then(res => { |
|
|
|
|
const { query } = this.$route |
|
|
|
|
this.$post(`${this.api.QueryPointOfJudgement}?systemId=${query.systemId}&userId=${query.userId}&pageNum=${query.pageNum}&pageSize=${query.pageSize}&queryName=${query.queryName}&userIdList=${query.userIdList}`).then(res => { |
|
|
|
|
this.tableData = res.message.records; |
|
|
|
|
this.dataTotal = res.message.total; |
|
|
|
|
}).catch(err => { |
|
|
|
|
console.log(err); |
|
|
|
|
}); |
|
|
|
|
}).catch(err => { }); |
|
|
|
|
}, |
|
|
|
|
HomepageJump () { //新增 |
|
|
|
|
if (this.isProcess) { |
|
|
|
|
// 交易类 |
|
|
|
|
this.$router.push(`Transaction?isAdd=true&systemId=${this.systemId}`); |
|
|
|
|
} else { |
|
|
|
|
// 编程类 |
|
|
|
|
this.$router.push(`program?isAdd=true&systemId=${this.systemId}`); |
|
|
|
|
} |
|
|
|
|
//新增 |
|
|
|
|
toAdd () { |
|
|
|
|
this.$router.push(`${this.isProcess ? 'Transaction' : 'program'}?isAdd=true&systemId=${this.systemId}`) |
|
|
|
|
}, |
|
|
|
|
// 批量复制 |
|
|
|
|
batchCopy () { |
|
|
|
|
if (this.multipleSelection.length) { |
|
|
|
|
// 有选中的情况下直接打开复制弹框 |
|
|
|
|
this.form = { |
|
|
|
|
name: '', |
|
|
|
|
checkpointId: '', |
|
|
|
@ -278,7 +236,21 @@ export default { |
|
|
|
|
this.curRow = null |
|
|
|
|
this.copyVisible = true |
|
|
|
|
} else { |
|
|
|
|
this.$message.warning("请先选择数据 !"); |
|
|
|
|
// 没选中就提示是否要复制全部数据 |
|
|
|
|
this.$confirm('当前未选中任何数据,是否需要复制当前列表的全部数据?', '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning' |
|
|
|
|
}).then(async () => { |
|
|
|
|
const res = await this.$post(this.api.queryAllJudgmentPoint, { |
|
|
|
|
name: this.keyword, |
|
|
|
|
pageNum: 1, |
|
|
|
|
pageSize: 1000, |
|
|
|
|
systemId: this.systemId |
|
|
|
|
}) |
|
|
|
|
this.multipleSelection = res.message.records |
|
|
|
|
this.batchCopy() |
|
|
|
|
}).catch(() => { }) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 复制 |
|
|
|
@ -430,182 +402,40 @@ export default { |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
/deep/ .ql-toolbar { |
|
|
|
|
height: 0; |
|
|
|
|
padding: 0; |
|
|
|
|
border-bottom: 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//分页 |
|
|
|
|
.footer /deep/ .el-pagination span:not([class*='suffix']), |
|
|
|
|
.el-pagination button { |
|
|
|
|
font-size: 16px; |
|
|
|
|
margin-right: 30px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.footer /deep/ .el-pagination { |
|
|
|
|
text-align: right; |
|
|
|
|
margin: 20px 0 0 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/deep/ .el-button { |
|
|
|
|
//line-height: 33px; |
|
|
|
|
//height: 33px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.footer { |
|
|
|
|
background-color: #ffffff; |
|
|
|
|
margin-top: 10px; |
|
|
|
|
padding: 10px 20px 20px 20px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.footer_h { |
|
|
|
|
position: relative; |
|
|
|
|
height: 50px; |
|
|
|
|
line-height: 50px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.footer_h .black { |
|
|
|
|
width: 8px; |
|
|
|
|
height: 18px; |
|
|
|
|
background-color: #333; |
|
|
|
|
margin-top: 15px; |
|
|
|
|
.wrap { |
|
|
|
|
padding: 20px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.footer_h p { |
|
|
|
|
padding-left: 10px; |
|
|
|
|
// padding-right: 980px; |
|
|
|
|
font-size: 14px; |
|
|
|
|
font-weight: 600; |
|
|
|
|
margin: 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 文本框 |
|
|
|
|
.footer /deep/ .el-textarea__inner { |
|
|
|
|
height: 60px; |
|
|
|
|
width: 540px; |
|
|
|
|
resize: none; |
|
|
|
|
border: 1px solid #9278ff; |
|
|
|
|
font-size: 12px; |
|
|
|
|
border-radius: 5px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.footer /deep/ .el-textarea__inner:hover { |
|
|
|
|
border: 1px solid #9278ff; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.footer /deep/ .el-table th.is-leaf, |
|
|
|
|
.el-table td { |
|
|
|
|
border-bottom: none; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.footer /deep/ .el-table--group::after, |
|
|
|
|
.el-table--border::after, |
|
|
|
|
.el-table::before { |
|
|
|
|
background: rgba(255, 255, 255, 1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 滚动条的宽度 |
|
|
|
|
/deep/ ::-webkit-scrollbar { |
|
|
|
|
width: 6px; // 横向滚动条 |
|
|
|
|
height: 6px; // 纵向滚动条 必写 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 滚动条的滑块 |
|
|
|
|
/deep/ ::-webkit-scrollbar-thumb { |
|
|
|
|
background-color: #9278ff; |
|
|
|
|
border-radius: 3px; |
|
|
|
|
-webkit-box-shadow: inset 0 0 5px #dddddd; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/deep/ ::-webkit-scrollbar-track { |
|
|
|
|
/*滚动条里面轨道*/ |
|
|
|
|
-webkit-box-shadow: inset 0 0 5px #dddddd; |
|
|
|
|
border-radius: 0; |
|
|
|
|
background: #dddddd; |
|
|
|
|
.tools { |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
margin: 20px 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.footer /deep/ .el-card__body { |
|
|
|
|
/deep/ .ql-toolbar { |
|
|
|
|
height: 0; |
|
|
|
|
padding: 0; |
|
|
|
|
border-bottom: 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.footer /deep/ .el-card { |
|
|
|
|
border: none; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.footer /deep/ .el-table th { |
|
|
|
|
font-size: 14px; |
|
|
|
|
font-family: Microsoft YaHei; |
|
|
|
|
color: rgba(255, 255, 255, 1); |
|
|
|
|
background-color: #9278ff; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.footer /deep/ .el-table--striped .el-table__body tr.el-table__row--striped td { |
|
|
|
|
background-color: #f5f2ff; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.footer /deep/ .el-button--text { |
|
|
|
|
padding-right: 20px; |
|
|
|
|
color: #9278ff; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.footer /deep/ .el-button--text:focus, |
|
|
|
|
.el-button--text:hover { |
|
|
|
|
color: #9278ff; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.button { |
|
|
|
|
margin: 7px; |
|
|
|
|
border: none; |
|
|
|
|
background-color: #9278ff; |
|
|
|
|
color: #ffffff; |
|
|
|
|
border-radius: 20px; |
|
|
|
|
float: right; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.button:focus { |
|
|
|
|
outline: 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.header /deep/ [class*=' el-icon-'], |
|
|
|
|
[class^='el-icon-'] { |
|
|
|
|
line-height: 3; |
|
|
|
|
padding-left: 10px; |
|
|
|
|
} |
|
|
|
|
/deep/.list.el-table { |
|
|
|
|
border-radius: 8px; |
|
|
|
|
border: 1px solid rgba(0, 0, 0, 0.06); |
|
|
|
|
border-bottom: 0; |
|
|
|
|
|
|
|
|
|
.header { |
|
|
|
|
display: flex; |
|
|
|
|
background-color: #ffffff; |
|
|
|
|
height: 50px; |
|
|
|
|
.cell { |
|
|
|
|
font-size: 12px; |
|
|
|
|
line-height: 50px; |
|
|
|
|
font-weight: 600; |
|
|
|
|
} |
|
|
|
|
line-height: 35px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.header span { |
|
|
|
|
font-size: 16px; |
|
|
|
|
font-weight: 600; |
|
|
|
|
padding-left: 5px; |
|
|
|
|
} |
|
|
|
|
th { |
|
|
|
|
background: #9278ff !important; |
|
|
|
|
|
|
|
|
|
.header p { |
|
|
|
|
.cell { |
|
|
|
|
color: #fff; |
|
|
|
|
font-size: 14px; |
|
|
|
|
padding-left: 20px; |
|
|
|
|
margin: 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.flex { |
|
|
|
|
//display: flex; |
|
|
|
|
justify-content: flex-start; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.flex-end { |
|
|
|
|
//display: flex; |
|
|
|
|
justify-content: flex-end; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.content { |
|
|
|
|
position: relative; |
|
|
|
|
top: 10px; |
|
|
|
|
font-weight: normal; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|