| | |
| | | <el-button type="primary" text plain icon="el-icon-edit" @click="editDialog(row)"> |
| | | 编辑 |
| | | </el-button> |
| | | <el-button type="primary" text plain icon="el-icon-position" @click="dialogVisible = true"> |
| | | <el-button type="primary" text plain icon="el-icon-position" @click="publicTimeBtn(row)"> |
| | | 发布 |
| | | </el-button> |
| | | <el-button type="primary" text plain icon="el-icon-download" @click=""> |
| | |
| | | <el-dialog v-model="dialogVisible" title="发布" width="500px"> |
| | | <el-form :model="publicForm"> |
| | | <el-form-item label="评优评先截止时间:"> |
| | | <el-date-picker v-model="publicForm.publicData" type="datetime" placeholder="请选择截止时间" style="width: 100%;" /> |
| | | <el-date-picker v-model="publicForm.publicData" type="datetime" placeholder="请选择截止时间" |
| | | value-format="YYYY-MM-DD HH:mm:ss" style="width: 100%;" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button @click="dialogVisible = false">取消</el-button> |
| | | <el-button type="primary" @click="dialogVisible = false">确认</el-button> |
| | | <el-button type="primary" @click="timeSubmit">确认</el-button> |
| | | </span> |
| | | </template> |
| | | </el-dialog> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | rowData: {}, |
| | | form: {}, |
| | | query: {}, |
| | | search: {}, |
| | |
| | | }) |
| | | return deptList |
| | | }); |
| | | }, |
| | | publicTimeBtn(row) { |
| | | this.rowData = row |
| | | this.dialogVisible = true |
| | | }, |
| | | timeSubmit() { |
| | | const { id } = this.rowData |
| | | const params = { |
| | | id, |
| | | evaluateCutoffTime: this.publicForm.publicData |
| | | } |
| | | add(params).then(res => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }); |
| | | this.refreshChange() |
| | | }, error => { |
| | | this.$message({ |
| | | type: "success", |
| | | message: error |
| | | }); |
| | | }) |
| | | this.dialogVisible = false |
| | | } |
| | | } |
| | | }; |