master
yujialong 2 years ago
parent f67aaddb10
commit b722f938f8
  1. 2
      src/components/modules/module.vue
  2. 5
      src/pages/article/list/index.vue
  3. 1
      src/pages/column/add/index.vue
  4. 2
      src/pages/column/list/index.vue
  5. 2
      src/pages/user/list/index.vue

@ -1,6 +1,6 @@
<template>
<div>
<el-dialog title="模块管理" :visible.sync="visible" width="700px" custom-class="module" append-to-body :close-on-click-modal="false" :before-close="close">
<el-dialog title="模块管理" :visible.sync="visible" width="700px" custom-class="module" :close-on-click-modal="false" :before-close="close">
<template v-if="data.type === 'banner' || data.type === 'introduce'">
<el-table class="module-table" :data="data.list" header-align="center" row-key="id">
<el-table-column type="index" width="60" label="序号" align="center"></el-table-column>

@ -48,7 +48,7 @@
></el-input>
<span v-else>{{ scope.row.sequence }}</span>
<i v-if="scope.row.editing" class="el-icon-check squ-icon" @click="submitSequence(scope.row)"></i>
<i v-else class="el-icon-edit squ-icon" @click="editSequence(scope.row)"></i>
<i v-auth="'/site/list:' + siteName + ':内容管理:文章管理:文章排序设置'" v-else class="el-icon-edit squ-icon" @click="editSequence(scope.row)"></i>
</template>
</el-table-column>
<el-table-column v-if="settings[2].show" prop="columnName" label="栏目" align="center" min-width="120"></el-table-column>
@ -70,11 +70,12 @@
</el-table-column>
<el-table-column v-if="settings[10].show" label="操作" align="center" width="210">
<template slot-scope="scope">
<el-button v-auth="'/site/list:' + siteName + ':内容管理:文章管理:预览'" type="text" @click="sticky(scope.row)">置顶</el-button>
<el-button v-auth="'/site/list:' + siteName + ':内容管理:文章管理:置顶'" type="text" @click="sticky(scope.row)">置顶</el-button>
<el-button v-auth="'/site/list:' + siteName + ':内容管理:文章管理:预览'" type="text" @click="preview(scope.row)">预览</el-button>
<el-button v-auth="'/site/list:' + siteName + ':内容管理:文章管理:编辑'" type="text" @click="edit(scope.row)">编辑</el-button>
<el-button v-auth="'/site/list:' + siteName + ':内容管理:文章管理:删除'" type="text" @click="handleDelete(scope.row)">删除</el-button>
<el-switch
v-auth="'/site/list:' + siteName + ':内容管理:文章管理:禁用'"
class="m-l-10"
v-model="scope.row.isDisable"
:active-value="0"

@ -68,7 +68,6 @@
type="textarea"
placeholder="请输入栏目副标题"
v-model="form.subtitle"
@change="nameChange"
></el-input>
</el-form-item>
<el-form-item prop="templateId" label="栏目模板">

@ -59,7 +59,7 @@
<el-table-column v-if="settings[6].show" prop="id" label="ID" min-width="80"></el-table-column>
<el-table-column v-if="settings[7].show" label="操作" width="270">
<template slot-scope="scope">
<el-button v-auth="'/site/list:' + siteName + ':内容管理:栏目管理:新增'" type="text" @click="edit(scope.row, 'add')">新增下级</el-button>
<el-button v-auth="'/site/list:' + siteName + ':内容管理:栏目管理:新增下级'" type="text" @click="edit(scope.row, 'add')">新增下级</el-button>
<el-button v-auth="'/site/list:' + siteName + ':内容管理:栏目管理:编辑'" type="text" @click="edit(scope.row, 'edit')">编辑</el-button>
<el-button v-auth="'/site/list:' + siteName + ':内容管理:栏目管理:删除'" type="text" @click="del(scope.row)">删除</el-button>
<el-button v-auth="'/site/list:' + siteName + ':内容管理:栏目管理:预览'" v-if="scope.row.typeId != 2" type="text" @click="preview(scope.row)">预览</el-button>

@ -521,6 +521,8 @@ export default {
const len = cas.length
if (cas && len) {
this.orgForm.pid = cas[len - 1]
} else {
form.pid = 0
}
if (!form.id) {
//

Loading…
Cancel
Save