clay commit : 通知公告
This commit is contained in:
@@ -45,6 +45,14 @@ export function getArticleNav() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询系统文章详细
|
||||||
|
export function getArticleAllNav() {
|
||||||
|
return request({
|
||||||
|
url: '/sist/article/all-nav',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export function getArticleApprove(type) {
|
export function getArticleApprove(type) {
|
||||||
return request({
|
return request({
|
||||||
url: '/sist/article/approve/'+type,
|
url: '/sist/article/approve/'+type,
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
|
<hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
|
||||||
|
|
||||||
<!-- <breadcrumb id="breadcrumb-container" class="breadcrumb-container" />-->
|
<!-- <breadcrumb id="breadcrumb-container" class="breadcrumb-container" />-->
|
||||||
|
<div id="notice" style="position: absolute; top: 20px; left: 300px; width: 700px;">
|
||||||
|
<!-- <span></span>-->
|
||||||
|
111122222222222222222222222222222222222222
|
||||||
|
</div>
|
||||||
<breadcrumb
|
<breadcrumb
|
||||||
id="breadcrumb-container"
|
id="breadcrumb-container"
|
||||||
class="breadcrumb-container"
|
class="breadcrumb-container"
|
||||||
@@ -108,6 +112,23 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@keyframes slidein {
|
||||||
|
from {
|
||||||
|
margin-left: 56%;
|
||||||
|
width: 300%;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
margin-left: 0%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#notice{
|
||||||
|
//animation-duration: 3s;
|
||||||
|
//animation-name: slidein;
|
||||||
|
//animation-iteration-count: infinite;
|
||||||
|
animation: 3s linear 1s slidein;
|
||||||
|
}
|
||||||
.navbar {
|
.navbar {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -128,6 +149,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.breadcrumb-container {
|
.breadcrumb-container {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,11 +13,13 @@ const defaultSettings = require('@/settings.js')
|
|||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
NProgress.start()
|
NProgress.start()
|
||||||
|
// debugger
|
||||||
if (getToken()) {
|
if (getToken()) {
|
||||||
/* has token*/
|
/* has token*/
|
||||||
if (to.path === '/login') {
|
if (to.path === '/login') {
|
||||||
next({ path: '/' })
|
// next({ path: '/' })
|
||||||
NProgress.done()
|
console.log("ce")
|
||||||
|
// NProgress.done()
|
||||||
} else {
|
} else {
|
||||||
if (store.getters.roles.length === 0) {
|
if (store.getters.roles.length === 0) {
|
||||||
// 判断当前用户是否已拉取完user_info信息
|
// 判断当前用户是否已拉取完user_info信息
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="审批人">
|
<el-form-item label="审批人" v-show="isAuditShow.sist">
|
||||||
<el-select v-model="params.sistApprove" placeholder="请选择文章类型" clearable :style="{width: '100%'}">
|
<el-select v-model="params.sistApprove" placeholder="请选择文章类型" clearable :style="{width: '100%'}">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in sistApproveOption"
|
v-for="dict in sistApproveOption"
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="审批人">
|
<el-form-item label="审批人" v-show="isAuditShow.lab">
|
||||||
<el-select v-model="params.labApprove" placeholder="请选择文章类型" clearable :style="{width: '100%'}">
|
<el-select v-model="params.labApprove" placeholder="请选择文章类型" clearable :style="{width: '100%'}">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in labApproveOption"
|
v-for="dict in labApproveOption"
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
<el-col :span="24" class="submitForm">
|
<el-col :span="24" class="submitForm">
|
||||||
<el-form-item size="large">
|
<el-form-item size="large">
|
||||||
<el-button type="success" @click="saveDrafts">保存草稿</el-button>
|
<el-button type="success" @click="saveDrafts">保存草稿</el-button>
|
||||||
<el-button type="primary" @click="submitForm">提交审核</el-button>
|
<el-button type="primary" @click="submitForm">{{(isAuditShow.sist || isAuditShow.lab) ? "提交审核":"发布"}}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -154,8 +154,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
// import ArticleFile from './ArticleFile'
|
|
||||||
// import Editor from '@/views/utils/Editor'
|
|
||||||
import TinymceEditor from '@/views/utils/tinymce/Tinymce'
|
import TinymceEditor from '@/views/utils/tinymce/Tinymce'
|
||||||
import {updateArticle, getArticle, drafts, getArticleType, getArticleApprove} from "@/api/sist/article";
|
import {updateArticle, getArticle, drafts, getArticleType, getArticleApprove} from "@/api/sist/article";
|
||||||
import {Message} from "element-ui";
|
import {Message} from "element-ui";
|
||||||
@@ -195,6 +193,10 @@ export default {
|
|||||||
sist: true,
|
sist: true,
|
||||||
lab: true,
|
lab: true,
|
||||||
},
|
},
|
||||||
|
isAuditShow:{
|
||||||
|
sist:false,
|
||||||
|
lab:false
|
||||||
|
},
|
||||||
params: {
|
params: {
|
||||||
sistArticleType: null,
|
sistArticleType: null,
|
||||||
sistApprove: null,
|
sistApprove: null,
|
||||||
@@ -353,12 +355,22 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getSistApprove(navId) {
|
getSistApprove(navId) {
|
||||||
|
if (!navId){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.isAuditShow.sist = false
|
||||||
|
this.auditShow(navId,1)
|
||||||
this.judgeThumbnail(navId)
|
this.judgeThumbnail(navId)
|
||||||
getArticleApprove(navId).then(res => {
|
getArticleApprove(navId).then(res => {
|
||||||
this.sistApproveOption = res.data
|
this.sistApproveOption = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getLabApprove(navId) {
|
getLabApprove(navId) {
|
||||||
|
if (!navId){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.isAuditShow.lab = false
|
||||||
|
this.auditShow(navId,2)
|
||||||
this.judgeThumbnail(navId)
|
this.judgeThumbnail(navId)
|
||||||
getArticleApprove(navId).then(res => {
|
getArticleApprove(navId).then(res => {
|
||||||
this.labApproveOption = res.data
|
this.labApproveOption = res.data
|
||||||
@@ -374,6 +386,19 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
auditShow(navId,type){
|
||||||
|
let typeList = this.articleTypeOptions
|
||||||
|
for (let item of typeList) {
|
||||||
|
if (navId === item.id && item.isAudit == 1){
|
||||||
|
if (type == 1){
|
||||||
|
this.isAuditShow.sist = true
|
||||||
|
}else {
|
||||||
|
this.isAuditShow.lab = true
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
submitForm() {
|
submitForm() {
|
||||||
let that_ = this
|
let that_ = this
|
||||||
this.$refs['elForm'].validate(valid => {
|
this.$refs['elForm'].validate(valid => {
|
||||||
|
|||||||
@@ -232,7 +232,7 @@
|
|||||||
import { listArticle, delArticle, exportArticle, offline, putIndex } from '@/api/sist/article'
|
import { listArticle, delArticle, exportArticle, offline, putIndex } from '@/api/sist/article'
|
||||||
import Editor from '@/components/Editor'
|
import Editor from '@/components/Editor'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
import { getArticleNav } from '../../../api/sist/article'
|
import { getArticleAllNav } from '../../../api/sist/article'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Article',
|
name: 'Article',
|
||||||
@@ -356,7 +356,7 @@ export default {
|
|||||||
this.isAdmin = true
|
this.isAdmin = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getArticleNav().then(res=>{
|
getArticleAllNav().then(res=>{
|
||||||
let data = res.data
|
let data = res.data
|
||||||
this.articleTypeOptions = data
|
this.articleTypeOptions = data
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -147,6 +147,16 @@
|
|||||||
</el-radio-button>
|
</el-radio-button>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="审核" prop="isAudit" v-show="isThumbnailShow">
|
||||||
|
<el-radio-group v-model="form.isAudit">
|
||||||
|
<el-radio-button
|
||||||
|
v-for="dict in auditOptions"
|
||||||
|
:key="dict.key"
|
||||||
|
:label="dict.key"
|
||||||
|
>{{ dict.label }}
|
||||||
|
</el-radio-button>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="模板" prop="isSimple" v-show="isThumbnailShow">
|
<el-form-item label="模板" prop="isSimple" v-show="isThumbnailShow">
|
||||||
<el-radio-group v-model="form.isSimple">
|
<el-radio-group v-model="form.isSimple">
|
||||||
<el-radio-button
|
<el-radio-button
|
||||||
@@ -291,6 +301,16 @@ export default {
|
|||||||
label: '有'
|
label: '有'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
auditOptions: [
|
||||||
|
{
|
||||||
|
key: 1,
|
||||||
|
label: '审核'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 0,
|
||||||
|
label: '自动审核'
|
||||||
|
}
|
||||||
|
],
|
||||||
simpleOptions:[
|
simpleOptions:[
|
||||||
{
|
{
|
||||||
key: 0,
|
key: 0,
|
||||||
@@ -449,6 +469,9 @@ export default {
|
|||||||
sort: 0,
|
sort: 0,
|
||||||
refId: null,
|
refId: null,
|
||||||
enRefId: null,
|
enRefId: null,
|
||||||
|
isThumbnail: null,
|
||||||
|
isSimple: null,
|
||||||
|
isAudit: null,
|
||||||
displayType: '1'
|
displayType: '1'
|
||||||
}
|
}
|
||||||
this.anvTypeEdit = true
|
this.anvTypeEdit = true
|
||||||
@@ -472,6 +495,9 @@ export default {
|
|||||||
this.form.pid = row.id
|
this.form.pid = row.id
|
||||||
this.form.sitetype = row.sitetype
|
this.form.sitetype = row.sitetype
|
||||||
this.form.type = '0'
|
this.form.type = '0'
|
||||||
|
this.form.isThumbnail = 0
|
||||||
|
this.form.isAudit = 1
|
||||||
|
this.form.isSimple = 0
|
||||||
this.title = '添加下级导航'
|
this.title = '添加下级导航'
|
||||||
},
|
},
|
||||||
handleUpdateDetails(refId,navId) {
|
handleUpdateDetails(refId,navId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user