Browse Source

新闻按钮,标题修改,菜单新增

gks 1 year ago
parent
commit
a854cdc8de
2 changed files with 7 additions and 7 deletions
  1. 3 3
      src/views/news/edit.vue
  2. 4 4
      src/views/news/index.vue

+ 3 - 3
src/views/news/edit.vue

@@ -5,7 +5,7 @@
         <el-input v-model="form.title" placeholder="请输入标题"></el-input>
       </el-form-item>
       <el-row>
-        <el-col :span="12">
+        <!-- <el-col :span="12">
           <el-form-item label="新闻类型" prop="type">
             <el-select
               v-model="form.type"
@@ -20,7 +20,7 @@
               ></el-option>
             </el-select>
           </el-form-item>
-        </el-col>
+        </el-col> -->
         <el-col :span="12">
           <el-form-item label="新闻来源">
             <el-input v-model="form.source" placeholder="请输入来源"></el-input>
@@ -81,7 +81,7 @@ export default {
         title: [{ required: true, message: "标题不能为空", trigger: "blur" }],
         content: [{ required: true, message: "内容不能为空", trigger: "blur" }],
         fileUrl: [{ required: true, message: "附件不能为空", trigger: "blur" }],
-        type: [{ required: true, message: "类型不能为空", trigger: "change" }],
+        // type: [{ required: true, message: "类型不能为空", trigger: "change" }],
         typeName: [
           { required: true, message: "字典类型名称不能为空", trigger: "blur" },
         ],

+ 4 - 4
src/views/news/index.vue

@@ -21,7 +21,7 @@
     </el-form>
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
-        <el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-if="checkPermi(['business:NEWS:add'])">新增新闻</el-button>
+        <el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-if="checkPermi(['business:NEWS:add'])">新增</el-button>
       </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
@@ -140,7 +140,7 @@ export default {
     checkPermi,
     showDetail(row){
       const id = row.id || this.ids;
-      this.iframe({ obj: detail, param: { id: id }, title: '网站新闻详情', width: '1050px', height: '750px' });
+      this.iframe({ obj: detail, param: { id: id }, title: '详情', width: '1050px', height: '750px' });
     },
     hanleTop(row) {
       row = { ...row };
@@ -203,12 +203,12 @@ export default {
     },
     /** 新增按钮操作 */
     handleAdd() {
-      this.iframe({ obj: edit, param: {type:this.queryParams.type}, title: '添加网站新闻', width: '1050px', height: '750px' });
+      this.iframe({ obj: edit, param: {type:this.queryParams.type}, title: `新增`, width: '1050px', height: '750px' });
     },
     /** 修改按钮操作 */
     handleUpdate(row) {
       const id = row.id || this.ids;
-      this.iframe({ obj: edit, param: { id: id }, title: '修改网站新闻', width: '1050px', height: '750px' });
+      this.iframe({ obj: edit, param: { id: id }, title: '修改', width: '1050px', height: '750px' });
     },
     handleCommit(row) {
       let CbNewsVo = row;