| | |
| | | range-separator="-" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | @change="handleQuery" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | > |
| | | <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() { |
| | |
| | | if (null != this.daterangeCheckTime && "" != this.daterangeCheckTime) { |
| | | this.queryParams["createStartTime"] = this.daterangeCheckTime[0]; |
| | | this.queryParams["createEndTime"] = this.daterangeCheckTime[1]; |
| | | }else { |
| | | this.queryParams["createStartTime"] = null; |
| | | this.queryParams["createEndTime"] = null; |
| | | } |
| | | console.log("this.queryParams", this.queryParams); |
| | | listCheckResult(this.queryParams).then((response) => { |
| | |
| | | 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); |
| | | }) |