guoziyun 9 месяцев назад
Родитель
Сommit
ce858ae070

+ 1 - 1
oms/public/app/index.html

@@ -9,5 +9,5 @@
   <style>body,html{width:100%;height:100%}*,:after,:before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}body{margin:0;color:#000000d9;font-size:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-variant:tabular-nums;line-height:1.5715;background-color:#fff;font-feature-settings:"tnum"}html{--antd-wave-shadow-color:#1890ff;--scroll-bar:0}</style><link rel="stylesheet" href="styles-LXBSU6DF.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-LXBSU6DF.css"></noscript></head>
   <style>body,html{width:100%;height:100%}*,:after,:before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}body{margin:0;color:#000000d9;font-size:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-variant:tabular-nums;line-height:1.5715;background-color:#fff;font-feature-settings:"tnum"}html{--antd-wave-shadow-color:#1890ff;--scroll-bar:0}</style><link rel="stylesheet" href="styles-LXBSU6DF.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-LXBSU6DF.css"></noscript></head>
   <body>
   <body>
     <app-root></app-root>
     <app-root></app-root>
-  <script src="polyfills-B6TNHZQ6.js" type="module"></script><script src="main-3P5NBQDT.js" type="module"></script></body>
+  <script src="polyfills-B6TNHZQ6.js" type="module"></script><script src="main-IYMHUKNB.js" type="module"></script></body>
 </html>
 </html>

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
oms/public/app/main-IYMHUKNB.js


+ 3 - 14
omsapp/src/app/pages/message-template.component.ts

@@ -251,17 +251,13 @@ import {
         <!-- 新增字段 -->
         <!-- 新增字段 -->
         <nz-form-item>
         <nz-form-item>
           <nz-form-label>图片URL</nz-form-label>
           <nz-form-label>图片URL</nz-form-label>
-          <nz-form-control [nzErrorTip]="imageErrorTpl">
+          <nz-form-control>
             <input
             <input
               nz-input
               nz-input
               formControlName="image"
               formControlName="image"
-              placeholder="输入图片URL(可选,支持HTTP/HTTPS)"
+              placeholder="输入图片URL(可选)"
             />
             />
           </nz-form-control>
           </nz-form-control>
-          <ng-template #imageErrorTpl let-control>
-            @if (control.hasError('pattern')) {
-            请输入有效的图片URL(支持HTTP/HTTPS协议) }
-          </ng-template>
         </nz-form-item>
         </nz-form-item>
 
 
         <nz-form-item>
         <nz-form-item>
@@ -539,14 +535,7 @@ export class MessageTemplateComponent implements OnInit, OnDestroy {
         [Validators.required, Validators.pattern(/^[a-zA-Z0-9_-]+$/)],
         [Validators.required, Validators.pattern(/^[a-zA-Z0-9_-]+$/)],
       ],
       ],
       templateType: [TemplateType.OTHER, Validators.required],
       templateType: [TemplateType.OTHER, Validators.required],
-      image: [
-        null,
-        [
-          Validators.pattern(
-            /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([\/\w .-]*)*\/?$/
-          ),
-        ],
-      ],
+      image: [null],
       bigger: [false],
       bigger: [false],
       action: [null],
       action: [null],
       param: [null],
       param: [null],

Некоторые файлы не были показаны из-за большого количества измененных файлов