瀏覽代碼

新增新闻字段

xiaomin 4 年之前
父節點
當前提交
2678f5fbfb
共有 1 個文件被更改,包括 20 次插入0 次删除
  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": [],