| | |
| | | </el-dialog> |
| | | <el-dialog :visible.sync="uploadDia" title="数据导入" width="500px"> |
| | | <div style="display: flex;align-items: center;"> |
| | | <div style="width: 70px">年份:</div> |
| | | <div style="width: 70px"><span class="required-span">* </span>年份:</div> |
| | | <el-date-picker v-model="planYear" type="year" value-format="yyyy" clearable size="small" format="yyyy" |
| | | placeholder="选择年"> |
| | | </el-date-picker> |
| | | </div> |
| | | <div style="display: flex;align-items: center;margin: 10px 0"> |
| | | <div style="width: 70px">审核人:</div> |
| | | <div style="width: 70px"><span class="required-span">* </span>审核人:</div> |
| | | <el-select v-model="reviewerId" clearable filterable size="small" style="width: 50%;"> |
| | | <el-option v-for="item in responsibleOptions" :key="item.id" :label="item.name" :value="item.id"> |
| | | </el-option> |
| | |
| | | }, |
| | | // 年度计划-导入 |
| | | submitUpload() { |
| | | if (!this.planYear) { |
| | | this.$message.error('请选择年份') |
| | | return |
| | | } |
| | | if (!this.reviewerId) { |
| | | this.$message.error('请选择审核人') |
| | | return |
| | | } |
| | | if (this.$refs.upload.uploadFiles.length == 0) { |
| | | this.$message.error('未选择文件') |
| | | return |