Handy_Cao 4 kuukautta sitten
vanhempi
commit
44d0ee2b9a
1 muutettua tiedostoa jossa 11 lisäystä ja 23 poistoa
  1. 11 23
      src/packages/pc/views/notice/manage/components/edit/index.vue

+ 11 - 23
src/packages/pc/views/notice/manage/components/edit/index.vue

@@ -63,30 +63,18 @@
                     <el-date-picker v-model="dateValue" type="datetimerange"
                         :disabled-date="(date: Date) => date.getTime() < Date.now() - 8.64e7"
                         :start-placeholder="t('notice.manage.edit.invailddate')"
-                        :end-placeholder="t('notice.manage.edit.结束时间')" value-format="YYYY-MM-DD HH:mm:ss" />
+                        :end-placeholder="t('notice.manage.edit.enddate')" value-format="YYYY-MM-DD HH:mm:ss" />
                 </el-form-item>
-                <el-form-item :label="t('notice.manage.edit.content2')" prop="content2"
-                    v-if="selectedTab === Language.Simplified">
-                    <app-editor v-model="formData.content2" />
-                </el-form-item>
-                <el-form-item :label="t('notice.manage.edit.content2')" prop="content2"
-                    v-if="selectedTab === Language.English">
-                    <app-editor v-model="formData.content2en" />
-                </el-form-item>
-                <el-form-item :label="t('notice.manage.edit.content2')" prop="content2"
-                    v-if="selectedTab === Language.Traditional">
-                    <app-editor v-model="formData.content2tw" />
-                </el-form-item>
-                <el-form-item :label="t('notice.manage.edit.content2')" prop="content2"
-                    v-if="selectedTab === Language.Thai">
-                    <app-editor v-model="formData.content2th" />
-                </el-form-item>
-                <el-form-item :label="t('notice.manage.edit.content2')" prop="content2"
-                    v-if="selectedTab === Language.Vietnamese">
-                    <app-editor v-model="formData.content2vi" />
-                </el-form-item>
-            </el-form>
-        </el-tabs>
+            </template>
+            <el-form-item :label="t('notice.manage.edit.startdate')" prop="date">
+                <el-date-picker v-model="dateValue" type="datetimerange"
+                    :disabled-date="(date: Date) => date.getTime() < Date.now() - 8.64e7" :start-placeholder="t('notice.manage.edit.invailddate')"
+                    :end-placeholder="t('notice.manage.edit.enddate')" value-format="YYYY-MM-DD HH:mm:ss" />
+            </el-form-item>
+            <el-form-item :label="t('notice.manage.edit.content2')" prop="content2">
+                <app-editor v-model="formData.content2" />
+            </el-form-item>
+        </el-form>
         <template #footer>
             <el-button @click="onCancel(false)">{{ t('operation.close') }}</el-button>
             <el-button type="primary" @click="onSubmit">{{ t('operation.save') }}</el-button>