| | |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-item label="时长(分钟)" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-input :disabled="disableSubmit" placeholder="请输入时长" v-decorator="['duration', validatorRules.duration]"></a-input> |
| | | <a-input-number :min="0" :disabled="disableSubmit" placeholder="请输入时长" v-decorator="['duration', validatorRules.duration]"></a-input-number> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-form-item label="备注" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="请输入备注" ></a-textarea> |
| | | <a-textarea :maxLength="20" :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="请输入备注" ></a-textarea> |
| | | </a-form-item> |
| | | </a-row> |
| | | </a-form> |
| | |
| | | } |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("修改成功") |
| | | // that.$message.success("修改成功") |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:"修改成功" |
| | | }); |
| | | // that.$message.success(res.message) |
| | | that.$emit('ok', res.result) |
| | | } else { |
| | | that.$message.warning(res.message) |
| | | // that.$message.warning(res.message) |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | <style scoped lang="less"> |
| | | .ant-btn { |
| | | padding: 0 10px; |
| | | margin-left: 3px; |
| | |
| | | .ant-tabs-content .ant-form-item { |
| | | margin-bottom: 0px; |
| | | } |
| | | /deep/ .ant-input-number{ |
| | | width: 100%!important; |
| | | } |
| | | </style> |