Handy_Cao преди 4 месеца
родител
ревизия
d1ddb24397
променени са 1 файла, в които са добавени 22 реда и са изтрити 10 реда
  1. 22 10
      src/packages/pc/views/notice/manage/components/edit/index.vue

+ 22 - 10
src/packages/pc/views/notice/manage/components/edit/index.vue

@@ -65,16 +65,28 @@
                         :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>
-            </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>
+                <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 #footer>
             <el-button @click="onCancel(false)">{{ t('operation.close') }}</el-button>
             <el-button type="primary" @click="onSubmit">{{ t('operation.save') }}</el-button>