| | |
| | | |
| | | <script> |
| | | import {getAuthTree,getUsedTemplateByClassifyOid,getCodeRule,addSaveCode} from '@/api/code/codeApply.js' |
| | | |
| | | import func from '@/util/func'; |
| | | export default { |
| | | name: "codeApply", |
| | | components: { FormTemplate: () => import('@/components/FormTemplate/FormTemplate') }, |
| | |
| | | resForm.codeRuleOid = this.codeRuleOid; |
| | | resForm.templateOid = this.templateOid; |
| | | // this.$emit("submit", resForm); |
| | | resForm.ts = resForm.ts.toISOString().replace("Z", ""); |
| | | if(func.notEmpty(resForm.ts)) { |
| | | resForm.ts = func.formattedDateTime(resForm.ts); |
| | | // resForm.ts = resForm.ts.toISOString().replace("Z", ""); |
| | | } |
| | | addSaveCode(resForm).then(res => { |
| | | this.$nextTick(() => { |
| | | this.addvisible = false; |