Kaynağa Gözat

新增新闻字段

xiaomin 4 yıl önce
ebeveyn
işleme
2678f5fbfb
1 değiştirilmiş dosya ile 20 ekleme ve 0 silme
  1. 20 0
      src/views/journalism/journalism.vue

+ 20 - 0
src/views/journalism/journalism.vue

@@ -84,6 +84,14 @@
               <el-input v-model="formList.newsAbstract" auto-complete="off" placeholder="请输入新闻摘要"></el-input>
             </el-form-item>
 
+            <el-form-item label="新闻作者" prop="author">
+              <el-input v-model="formList.author" auto-complete="off" placeholder="请输入新闻作者"></el-input>
+            </el-form-item>
+
+            <el-form-item label="文章来源" prop="sourcet">
+              <el-input v-model="formList.sourcet" auto-complete="off" placeholder="请输入文章来源"></el-input>
+            </el-form-item>
+
             <el-form-item label="新闻封面">
               <el-upload
                 ref='upload'
@@ -164,6 +172,14 @@
               <el-input v-model="formChangeList.newsAbstract" auto-complete="off" placeholder="请输入新闻摘要"></el-input>
             </el-form-item>
 
+            <el-form-item label="新闻作者">
+              <el-input v-model="formChangeList.author" auto-complete="off" placeholder="请输入新闻作者"></el-input>
+            </el-form-item>
+
+            <el-form-item label="文章来源">
+              <el-input v-model="formChangeList.sourcet" auto-complete="off" placeholder="请输入文章来源"></el-input>
+            </el-form-item>
+
              <el-form-item label="新闻封面">
             <el-upload
               ref='upload'
@@ -257,6 +273,8 @@ export default {
           formList: {
             "urlList": [],
             "title": "",
+            "author": "",
+            "source": "",
             "newsAbstract": "",
             "photo": "",
             "navigationBarIds": [],
@@ -275,6 +293,8 @@ export default {
             "id": "",
             "urlList": [],
             "title": "",
+            "author": "",
+            "source": "",
             "newsAbstract": "",
             "photo": "",
             "navigationBarIds": [],