| | |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="resetForm('workForm')">重置</el-button> |
| | | <el-button type="primary" @click="confirmSend('workForm')">确认下发</el-button> |
| | | <el-button type="primary" v-stop-re-click @click="confirmSend('workForm')">确认下发</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </template> |
| | |
| | | methods:{ |
| | | confirmSend(formName){ |
| | | const t = this |
| | | console.log(t.workForm,'66666666666') |
| | | t.$refs[formName].validate((valid) => { |
| | | if (valid) { |
| | | this.$confirm('此操作将把任务下发给所有单位, 是否继续?', '提示', { |
| | |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(async () => { |
| | | const loading = this.$loading({ |
| | | lock: true, |
| | | text: '正在下发', |
| | | spinner: 'el-icon-loading' |
| | | }); |
| | | let res = await sendCheckTask(t.workForm) |
| | | if(res.data.code === "200"){ |
| | | t.$message({ |
| | |
| | | message:res.data.message |
| | | }) |
| | | } |
| | | loading.close(); |
| | | t.dialogVisible = false |
| | | t.$parent.getSpecialCheckTask(); |
| | | }).catch(() => { |