|
@@ -48,7 +48,7 @@
|
|
|
@sort-change="orderby"
|
|
@sort-change="orderby"
|
|
|
height="100%">
|
|
height="100%">
|
|
|
<el-table-column label="操作"
|
|
<el-table-column label="操作"
|
|
|
- width="120px"
|
|
|
|
|
|
|
+ width="180px"
|
|
|
align="center"
|
|
align="center"
|
|
|
fixed='right'>
|
|
fixed='right'>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -58,6 +58,13 @@
|
|
|
@click="edit(scope.row.Id)"
|
|
@click="edit(scope.row.Id)"
|
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
|
circle></el-button>
|
|
circle></el-button>
|
|
|
|
|
+ <el-button size="mini"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ title="发布"
|
|
|
|
|
+ @click="publish(scope.row)"
|
|
|
|
|
+ style="margin-left:5px;"
|
|
|
|
|
+ icon="el-icon-s-promotion"
|
|
|
|
|
+ circle></el-button>
|
|
|
<el-button size="mini"
|
|
<el-button size="mini"
|
|
|
type="danger"
|
|
type="danger"
|
|
|
title="删除"
|
|
title="删除"
|
|
@@ -75,14 +82,14 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="Year"
|
|
<el-table-column prop="Year"
|
|
|
fit
|
|
fit
|
|
|
- min-width="160px"
|
|
|
|
|
|
|
+ min-width="80px"
|
|
|
label="学年"
|
|
label="学年"
|
|
|
align="center"
|
|
align="center"
|
|
|
show-overflow-tooltip></el-table-column>
|
|
show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="Term"
|
|
<el-table-column prop="Term"
|
|
|
label="学期"
|
|
label="学期"
|
|
|
align="center"
|
|
align="center"
|
|
|
- min-width="120px"
|
|
|
|
|
|
|
+ min-width="80px"
|
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
|
:formatter="formatTerm"
|
|
:formatter="formatTerm"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
@@ -94,7 +101,7 @@
|
|
|
<el-table-column prop="Status"
|
|
<el-table-column prop="Status"
|
|
|
label="状态"
|
|
label="状态"
|
|
|
align="center"
|
|
align="center"
|
|
|
- min-width="120px"
|
|
|
|
|
|
|
+ min-width="80px"
|
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
|
:formatter="formatStatus"
|
|
:formatter="formatStatus"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
@@ -146,6 +153,7 @@ export default {
|
|
|
currpage: 1,
|
|
currpage: 1,
|
|
|
size: 10,
|
|
size: 10,
|
|
|
term: [],
|
|
term: [],
|
|
|
|
|
+ activities: [],
|
|
|
Year: '',
|
|
Year: '',
|
|
|
Title: '',
|
|
Title: '',
|
|
|
Time: '',
|
|
Time: '',
|
|
@@ -219,6 +227,10 @@ export default {
|
|
|
this.dutyId = dutyId
|
|
this.dutyId = dutyId
|
|
|
this.$refs.editDialog.dialogvisible = true
|
|
this.$refs.editDialog.dialogvisible = true
|
|
|
},
|
|
},
|
|
|
|
|
+ publish (duty) {
|
|
|
|
|
+ duty.Status = 1
|
|
|
|
|
+ DutyApi.saveDuty(duty)
|
|
|
|
|
+ },
|
|
|
// 打开二级页面
|
|
// 打开二级页面
|
|
|
handleDetail (duty) {
|
|
handleDetail (duty) {
|
|
|
let Id = parseInt(duty.Id)
|
|
let Id = parseInt(duty.Id)
|