wengan01 1 тиждень тому
батько
коміт
f96565a6da
1 змінених файлів з 11 додано та 1 видалено
  1. 11 1
      src/views/content/competitionZone/article/index.vue

+ 11 - 1
src/views/content/competitionZone/article/index.vue

@@ -40,7 +40,11 @@
         </template>
       </el-table-column>
       <el-table-column label="标题" align="center" prop="title" min-width="160" show-overflow-tooltip />
-      <el-table-column label="副标题" align="center" prop="subtitle" min-width="140" show-overflow-tooltip />
+      <el-table-column label="作者" align="center" prop="author" width="100">
+        <template #default="scope">
+          {{ scope.row.author || '-' }}
+        </template>
+      </el-table-column>
       <el-table-column label="封面" align="center" width="100">
         <template #default="scope">
           <el-image
@@ -97,6 +101,10 @@
           <el-input v-model="form.subtitle" placeholder="输入文字" />
         </el-form-item>
 
+        <el-form-item label="作者" prop="author">
+          <el-input v-model="form.author" placeholder="空则不显示" />
+        </el-form-item>
+
         <el-form-item label="封面配置">
           <div class="cover-upload-area">
             <div class="upload-buttons-row">
@@ -235,6 +243,7 @@ const initForm = {
   zoneId: zoneId.value,
   title: '',
   subtitle: '',
+  author: '',
   coverImage: '',
   publishTime: null,
   externalLink: ''
@@ -297,6 +306,7 @@ async function handleUpdate(row) {
         zoneId: res.data.zoneId,
         title: res.data.title || '',
         subtitle: res.data.subtitle || '',
+        author: res.data.author || '',
         coverImage: res.data.coverImage || '',
         publishTime: res.data.publishTime || null,
         externalLink: res.data.externalLink || ''