| | |
| | | > |
| | | <el-card class="box-card"> |
| | | <div slot="header" class="clearfix"> |
| | | <span>{{ item.contractName }}</span> |
| | | <span>{{ item.unitName + item.whichYear +'年'+item.whichMonth+'月考核报告' }}</span> |
| | | <el-button |
| | | style="float: right; padding: 3px 6px" |
| | | type="text" |
| | |
| | | size="small" |
| | | round |
| | | style="float: right" |
| | | disabled |
| | | @click="handlePublish(item)" |
| | | v-show="item.publish == 1" |
| | | v-hasPermi="['contract:result:publish']" |
| | | >已发布</el-button |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | this.getUnitSelect(); |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | getUnitSelect() { |
| | |
| | | let text = row.publish == 1 ? "取消发布" : "发布"; |
| | | const ids = row.id || this.ids; |
| | | this.$modal |
| | | .confirm("是否确认" + text + '考核结果编号为"' + ids + '"的数据项?') |
| | | .confirm("是否确认" + text + row.unitName + row.whichYear +'年'+row.whichMonth+'月考核报告?') |
| | | .then(function () { |
| | | return publishCheckResult(ids); |
| | | }) |