ludc
2023-10-27 a647b8fb3c96791c126dcf26c78676adc35c670f
Source/UBCS-WEB/src/views/code/codeApply.vue
@@ -53,7 +53,7 @@
<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') },
@@ -217,7 +217,10 @@
      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;