Commit c9bfd38c by 莫晓莉

添加信息功能成功

parent 9bd5fdae
...@@ -24,7 +24,7 @@ export const createNews = (data) => { ...@@ -24,7 +24,7 @@ export const createNews = (data) => {
export const findCurrentDepts = (data) => { export const findCurrentDepts = (data) => {
return request({ return request({
url: 'websiteCluster/website/findCurrentDepts', url: 'websiteCluster/website/findCurrentDepts',
method: 'POST', method: 'GET',
data data
}) })
} }
...@@ -38,6 +38,16 @@ export const getManageList = (data) => { ...@@ -38,6 +38,16 @@ export const getManageList = (data) => {
}) })
} }
//管理列表--删除信息
export const deleteNews = (data) => {
return request({
url: 'websiteCluster/website/deleteNews',
method: 'POST',
data
})
}
//用户法院等级 //用户法院等级
export const userCourtLevel = (data) => { export const userCourtLevel = (data) => {
return request({ return request({
...@@ -48,6 +58,59 @@ export const userCourtLevel = (data) => { ...@@ -48,6 +58,59 @@ export const userCourtLevel = (data) => {
} }
//获取该用户审核信息列表
export const assInfoList = (data) => {
return request({
url: 'websiteCluster/website/getAssInfoList',
method: 'POST',
data
})
}
//获取收报信息列表
export const getSBList = (data) => {
return request({
url: 'websiteCluster/website/getSBList',
method: 'POST',
data
})
}
//管理列表--新闻详情
export const newsDetail = (data) => {
return request({
url: 'websiteCluster/website/newsDetail',
method: 'POST',
data
})
}
//审核列表--提建议
export const giveAdvise = (data) => {
return request({
url: 'websiteCluster/website/advise',
method: 'POST',
data
})
}
//留言详情
export const messageDetail = (data) => {
return request({
url: 'websiteCluster/website/messageDetail',
method: 'POST',
data
})
}
// /websiteCluster/website/getSBList // /websiteCluster/website/getSBList
// 获取收报信息列表 // 获取收报信息列表
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<el-tab-pane label="定时任务补偿" name="fourth">定时任务补偿</el-tab-pane> <el-tab-pane label="定时任务补偿" name="fourth">定时任务补偿</el-tab-pane>
</el-tabs>--> </el-tabs>-->
<el-tabs type="border-card" v-model="activeName"> <el-tabs type="border-card" v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane name="first"> <el-tab-pane name="first">
<span slot="label"><i class="el-icon-date"></i> 管理列表</span> <span slot="label"><i class="el-icon-date"></i> 管理列表</span>
<el-table <el-table
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
ref="multipleTable" ref="multipleTable"
:data="manageList" :data="manageList"
style="width: 100%" style="width: 100%"
> @selection-change="handleSelectionChange1">
<el-table-column <el-table-column
type="selection" type="selection"
...@@ -126,19 +126,19 @@ ...@@ -126,19 +126,19 @@
日志 日志
</el-button> </el-button>
<el-button <el-button
@click="handleEdit(scope.row.id)" @click="handleEdit(scope.row.newsId)"
type="text" type="text"
size="mini"> size="mini">
修改 修改
</el-button> </el-button>
<el-button <el-button
@click="handleDelete(scope.row.newsId)"
type="text" type="text"
size="mini"> size="mini">
删除 删除
</el-button> </el-button>
<el-button <el-button
@click="commentEvent(scope.row.id)" @click="commentEvent(scope.row.newsId)"
type="text" type="text"
size="mini"> size="mini">
评论 评论
...@@ -146,6 +146,9 @@ ...@@ -146,6 +146,9 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-row class="mt-10">
<el-button type="primary" size="mini">提交短信审批</el-button>
</el-row>
<div style="margin-top:10px;"> <div style="margin-top:10px;">
<el-pagination <el-pagination
prev-text="上一页" prev-text="上一页"
...@@ -242,6 +245,7 @@ ...@@ -242,6 +245,7 @@
name="fileList" name="fileList"
:show-file-list="true" :show-file-list="true"
:on-change="uploadSuccess" :on-change="uploadSuccess"
:on-remove="handleRemove"
> >
<el-button class="area-btn" > <el-button class="area-btn" >
浏览文件 浏览文件
...@@ -310,10 +314,11 @@ ...@@ -310,10 +314,11 @@
</div> </div>
<el-form-item align="center"> <el-form-item align="center">
<el-button type="primary" @click="createNews('1')">发布</el-button> <!-- // 然后是publish ,点击发布的话是1,提交审核是4,保存是5 -->
<el-button type="primary" >提交审核</el-button> <el-button type="primary" @click="createNewsEvent('1')">发布</el-button>
<el-button type="primary" @click="createNewsEvent('4')">提交审核</el-button>
<el-button type="primary" >建议</el-button> <el-button type="primary" >建议</el-button>
<el-button type="primary">保存</el-button> <el-button type="primary" @click="createNewsEvent('5')">保存</el-button>
<el-button>取消</el-button> <el-button>取消</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -328,7 +333,7 @@ ...@@ -328,7 +333,7 @@
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
border border
> @selection-change="handleSelectionChange2">
<el-table-column <el-table-column
type="selection" type="selection"
width="55"> width="55">
...@@ -378,13 +383,13 @@ ...@@ -378,13 +383,13 @@
width="120"> width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@click.native.prevent="openAudit(scope.row.id)" @click="openAudit(scope.row.id)"
type="text" type="text"
size="small"> size="small">
审核 审核
</el-button> </el-button>
<el-button <el-button
@click.native.prevent="openSuggest(scope.row.id)" @click="openSuggest(scope.row.id)"
type="text" type="text"
size="small"> size="small">
提建议 提建议
...@@ -393,19 +398,24 @@ ...@@ -393,19 +398,24 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- <div style="margin-top:10px;"> <el-row class="mt-10">
<el-button type="primary" size="mini">批量打开</el-button>
<el-button type="primary" size="mini">批量审核通过并发布</el-button>
<el-button type="primary" size="mini">批量审核不通过</el-button>
</el-row>
<div style="margin-top:10px;">
<el-pagination <el-pagination
prev-text="上一页" prev-text="上一页"
next-text="下一页" next-text="下一页"
layout="total,sizes,prev, pager, next,jumper" layout="total,sizes,prev, pager, next,jumper"
:total="1000" :total="pageInfoAss.total"
page-sizes="" :page-size="pageInfoAss.size"
page-size="15" :current-page="pageInfoAss.page"
current-page="1" @current-change="pageChangeAss"
@current-change="" @size-change="sizeChangeAss"
@size-change=""
/> />
</div> --> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane name="fourth"> <el-tab-pane name="fourth">
<span slot="label"><i class="el-icon-date"></i>收报信息</span> <span slot="label"><i class="el-icon-date"></i>收报信息</span>
...@@ -415,7 +425,7 @@ ...@@ -415,7 +425,7 @@
:data="tableData" :data="tableData"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
> @selection-change="handleSelectionChange3">
<el-table-column <el-table-column
type="selection" type="selection"
width="55"> width="55">
...@@ -469,84 +479,214 @@ ...@@ -469,84 +479,214 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- <div style="margin-top:10px;"> <el-row class="mt-10">
<el-button type="primary" size="mini">批量打开</el-button>
</el-row>
<div style="margin-top:10px;">
<el-pagination <el-pagination
prev-text="上一页" prev-text="上一页"
next-text="下一页" next-text="下一页"
layout="total,sizes,prev, pager, next,jumper" layout="total,sizes,prev, pager, next,jumper"
:total="1000" :total="pageInfoRe.total"
page-sizes="" :page-size="pageInfoRe.size"
page-size="15" :current-page="pageInfoRe.page"
current-page="1" @current-change="pageChangeRe"
@current-change="" @size-change="sizeChangeRe"
@size-change=""
/> />
</div> --> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane name="fifth"> <el-tab-pane name="fifth">
<span slot="label"><i class="el-icon-date"></i>查询</span> <span slot="label"><i class="el-icon-date"></i>查询</span>
<el-form ref="form" :model="form" label-width="80px"> <el-form ref="form" :model="form" label-width="80px">
<el-form-item label="格式"> <el-form-item label="格式">
<el-select v-model="form.region" placeholder="请选择活动区域"> <el-select v-model="pageInfo.geshi" placeholder="请选择格式" clearable>
<el-option label="区域一" value="shanghai"></el-option> <el-option label="普通格式" value="普通格式"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="类型"> <el-form-item label="类型">
<el-select v-model="form.region" placeholder="请选择活动区域"> <!-- 创建未提交审核为5,提交审核为4,审核不通过为3,通过已发布为1 -->
<el-option label="区域一" value="shanghai"></el-option> <el-select v-model="pageInfo.publish" placeholder="请选择类型" clearable>
<el-option label="区域二" value="beijing"></el-option> <el-option label="创建未提交审核" value="5"></el-option>
<el-option label="提交审核" value="4"></el-option>
<el-option label="审核不通过" value="3"></el-option>
<el-option label="通过已发布" value="1"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="状态"> <!-- <el-form-item label="状态">
<el-select v-model="form.region" placeholder="请选择活动区域"> <el-select v-model="form.region" placeholder="请选择状态">
<el-option label="区域一" value="shanghai"></el-option> <el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option> <el-option label="区域二" value="beijing"></el-option>
</el-select> </el-select>
</el-form-item> -->
<el-form-item label="状态">
<!-- 创建未提交审核为5,提交审核为4,审核不通过为3,通过已发布为1 -->
<el-select v-model="pageInfo.publish" placeholder="请选择类型" clearable>
<el-option label="创建未提交审核" value="5"></el-option>
<el-option label="提交审核" value="4"></el-option>
<el-option label="审核不通过" value="3"></el-option>
<el-option label="通过已发布" value="1"></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="标题"> <el-form-item label="标题">
<el-col :span="11" style="padding-left:0;padding-right:0;"> <el-col :span="11" style="padding-left:0;padding-right:0;">
<el-input v-model="form.name"></el-input> <el-input v-model="pageInfo.subject"></el-input>
</el-col> </el-col>
</el-form-item> </el-form-item>
<el-form-item label="发布日期"> <el-form-item label="发布日期">
<el-col :span="11" style="padding-left:0;padding-right:0;"> <el-col :span="11" style="padding-left:0;padding-right:0;">
<el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker> <el-date-picker
v-model="pageInfo.etime"
type="datetime"
placeholder="选择日期时间"
default-time="12:00:00"
value-format="yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
</el-col> </el-col>
<el-col class="line" :span="2" style="text-align:center;">-</el-col> <el-col class="line" :span="2" style="text-align:center;">-</el-col>
<el-col :span="11"> <el-col :span="11">
<el-time-picker placeholder="选择时间" v-model="form.date2" style="width: 100%;"></el-time-picker> <el-date-picker
v-model="pageInfo.stime"
type="datetime"
placeholder="选择日期时间"
default-time="12:00:00"
value-format="yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
</el-col> </el-col>
</el-form-item> </el-form-item>
<el-form-item label="内容"> <el-form-item label="内容">
<el-col :span="11" style="padding-left:0;padding-right:0;"> <el-col :span="11" style="padding-left:0;padding-right:0;">
<el-input v-model="form.name"></el-input> <el-input v-model="pageInfo.content"></el-input>
</el-col> </el-col>
</el-form-item> </el-form-item>
<el-form-item label="点击次数"> <el-form-item label="点击次数">
<el-col :span="11" style="padding-left:0;padding-right:0;"> <el-col :span="11" style="padding-left:0;padding-right:0;">
<el-input v-model="form.name"></el-input> <el-input v-model="pageInfo.minClick" @input="changeInput1" placeholder="只能输入大于0的正整数"></el-input>
</el-col> </el-col>
<el-col class="line" :span="2" style="text-align:center;white-space:nowrap;font-size:12px;"></el-col> <el-col class="line" :span="2" style="text-align:center;white-space:nowrap;font-size:12px;"></el-col>
<el-col :span="11"> <el-col :span="11">
<el-input v-model="form.name"></el-input> <el-input type="number" v-model="pageInfo.maxClick" @input="changeInput2" placeholder="只能输入大于0的正整数"></el-input>
</el-col> </el-col>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary">查询</el-button> <el-button type="primary" @click="pageChange()">查询</el-button>
<el-button>重填</el-button> <el-button>重填</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row>
<el-table
border
ref="multipleTable"
:data="manageList"
style="width: 100%"
>
<el-table-column
type="selection"
width="55">
</el-table-column>
<el-table-column
label="标题"
prop="subject"
>
</el-table-column>
<el-table-column
prop="boardName"
label="所属栏目"
>
</el-table-column>
<el-table-column
prop="address"
label="责任编辑"
>
</el-table-column>
<el-table-column
prop="newsTime"
label="创建/修改时间"
>
</el-table-column>
<el-table-column
prop="clickCount"
label="点击次数"
>
</el-table-column>
<el-table-column
prop="commentCount"
label="评论(条)"
>
</el-table-column>
<el-table-column
prop=""
label="建议(条)"
>
</el-table-column>
<el-table-column
prop=""
label="审核发布状态"
>
</el-table-column>
<el-table-column
prop=""
label="报送状态"
>
<template slot-scope="scope">
<el-tag :type="scope.row.status | statusFilters">
{{scope.row.status?'正常':'禁用'}}
</el-tag>
</template>
</el-table-column>
<el-table-column
label="操作"
width="120">
<template slot-scope="scope">
<el-button
type="text"
size="mini">
日志
</el-button>
<el-button
@click="handleEdit(scope.row.newsId)"
type="text"
size="mini">
修改
</el-button>
<el-button
@click="handleDelete(scope.row.newsId)"
type="text"
size="mini">
删除
</el-button>
<el-button
@click="commentEvent(scope.row.newsId)"
type="text"
size="mini">
评论
</el-button>
</template>
</el-table-column>
</el-table>
<div style="margin-top:10px;">
<el-pagination
prev-text="上一页"
next-text="下一页"
layout="total,sizes,prev, pager, next,jumper"
:total="pageInfo.total"
:page-size="pageInfo.size"
:current-page="pageInfo.page"
@current-change="pageChange"
@size-change="sizeChange"
/>
</div>
</el-row>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
</div> </div>
</el-col> </el-col>
...@@ -557,10 +697,10 @@ ...@@ -557,10 +697,10 @@
</el-row> </el-row>
<!--管理列表---修改管理列表弹窗开始 --> <!--管理列表---修改管理列表弹窗开始 -->
<el-dialog width="70%" :visible.sync="editVisible" :before-close="handleCloseEdit"> <el-dialog title="修改" width="70%" :visible.sync="editVisible" :before-close="handleCloseEdit">
<el-form ref="form" :model="newsForm" label-width="120px"> <el-form ref="form" :model="newsFormEdit" label-width="120px">
<el-form-item label="格式" > <el-form-item label="格式" >
<el-select v-model="newsForm.geshi" placeholder="请选择格式" disabled > <el-select v-model="newsForm.geshi" placeholder="请选择格式" >
<el-option label="普通格式" value="普通格式"></el-option> <el-option label="普通格式" value="普通格式"></el-option>
<!--<el-option label="区域二" value="beijing"></el-option>--> <!--<el-option label="区域二" value="beijing"></el-option>-->
</el-select> </el-select>
...@@ -691,7 +831,7 @@ ...@@ -691,7 +831,7 @@
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="handleComment">取 消</el-button> <el-button @click="handleComment">取 消</el-button>
<el-button type="primary" @click="saveComment">确 定</el-button> <el-button type="primary" >确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!--管理列表---评论弹窗end--> <!--管理列表---评论弹窗end-->
...@@ -832,37 +972,38 @@ ...@@ -832,37 +972,38 @@
<vue-ueditor-wrap v-model="htmlContent" :config="myConfig"></vue-ueditor-wrap> <vue-ueditor-wrap v-model="htmlContent" :config="myConfig"></vue-ueditor-wrap>
</div> </div>
<el-form-item align="center"> <el-form-item align="center">
<el-button type="primary" @click="createNews('1')">发布</el-button> <!-- // 然后是publish ,点击发布的话是1,提交审核是4,保存是5 -->
<el-button type="primary" >提交审核</el-button> <el-button type="primary" @click="createNewsEvent('1')">通过</el-button>
<!-- <el-button type="primary" >提交审核</el-button>
<el-button type="primary" >建议</el-button> <el-button type="primary" >建议</el-button>
<el-button type="primary">保存</el-button> <el-button type="primary">保存</el-button> -->
<el-button>取消</el-button> <el-button>不通过</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-dialog> </el-dialog>
<!--审核列表-- 审核弹窗结束 --> <!--审核列表-- 审核弹窗结束 -->
<!---审核列表--提建议弹窗start--> <!---审核列表--提建议弹窗start-->
<el-dialog <el-dialog
title="评论" title="提建议"
:visible.sync="suggestVisible" :visible.sync="suggestVisible"
width="40%" width="40%"
:before-close="handleCloseSuggest"> :before-close="handleCloseSuggest">
<div> <div>
<el-form ref="formSubmit" :model="commentForm" label-width="80px"> <el-form ref="adviceForm" :model="commentForm" label-width="80px">
<el-form-item label="审批意见:"> <el-form-item label="内容:">
<el-input type="textarea" v-model="commentForm.approvalText"></el-input> <el-input type="textarea" v-model="adviceForm.approvalText" :rows="5"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="是否通过"> <!-- <el-form-item label="是否通过">
<el-radio-group v-model="commentForm.flowStatus"> <el-radio-group v-model="adviceForm.flowStatus">
<el-radio :label="1">通过</el-radio> <el-radio :label="1">通过</el-radio>
<el-radio :label="3">不通过</el-radio> <el-radio :label="3">不通过</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item> -->
</el-form> </el-form>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="handleCloseSuggest">取 消</el-button> <el-button @click="handleCloseSuggest">取 消</el-button>
<el-button type="primary" @click="saveComment">确 定</el-button> <el-button type="primary" @click="saveAdvise">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!---审核列表--提建议弹窗end--> <!---审核列表--提建议弹窗end-->
...@@ -888,7 +1029,7 @@ ...@@ -888,7 +1029,7 @@
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="handleCloseLeave">取 消</el-button> <el-button @click="handleCloseLeave">取 消</el-button>
<el-button type="primary" @click="saveComment">确 定</el-button> <el-button type="primary" >确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!---收报信息--留言弹窗end--> <!---收报信息--留言弹窗end-->
...@@ -900,7 +1041,19 @@ ...@@ -900,7 +1041,19 @@
</template> </template>
<script> <script>
import vueUeditorWrap from 'vue-ueditor-wrap'; import vueUeditorWrap from 'vue-ueditor-wrap';
import { getBoardTree,createNews, findCurrentDepts,getManageList,userCourtLevel} from "@/api/manage/manage"; import {
getBoardTree,
createNews,
findCurrentDepts,
getManageList,
userCourtLevel,
assInfoList,//审核列表
getSBList,//收报信息
deleteNews,//删除信息
newsDetail,//新闻详情
giveAdvise,//提建议
messageDetail,//留言
} from "@/api/manage/manage";
// import { removeToken } from "@/utils/auth"; // import { removeToken } from "@/utils/auth";
export default { export default {
...@@ -910,13 +1063,33 @@ export default { ...@@ -910,13 +1063,33 @@ export default {
}, },
data() { data() {
return { return {
newsFormEdit:{},//新闻编辑修改
multipleSelection1:[],//勾选1
multipleSelection2:[],//勾选1
multipleSelection3:[],//勾选1
manageSearchList:[],//管理列表查询搜索
adviceForm:{
content:'',
},//提建议
commentDialog:false,//管理列表--评论弹窗 commentDialog:false,//管理列表--评论弹窗
commentForm:{},//评论弹窗 commentForm:{},//评论弹窗
pageInfo: { pageInfo: {
page: 1, page: 1,
size: 10, size: 10,
total:0 total:0
}, },//管理
pageInfoAss: {
page: 1,
size: 10,
total:0
},//审核列表
pageInfoRe: {
page: 1,
size: 10,
total:0
},//收报信息
assList:[],//审核列表
reportList:[],//收报信息
// sbGy:'0', // sbGy:'0',
// sbZy:'0',//中院 // sbZy:'0',//中院
editVisible:false,//修改管理列表 editVisible:false,//修改管理列表
...@@ -948,9 +1121,11 @@ export default { ...@@ -948,9 +1121,11 @@ export default {
boardId:'',//当前栏目id boardId:'',//当前栏目id
isTop:'0',//是否头条 0否1是 isTop:'0',//是否头条 0否1是
typeIds:[],//信息所属分类 typeIds:[],//信息所属分类
deptId:'',//所属部门id deptId:53,//所属部门id
sendToBoards:[],//发送到教育整顿 sendToBoards:[],//发送到教育整顿
labelDept:1,//信息所属部门 labelDept:1,//信息所属部门
sbGy: '0',//上报高院
sbZy: '0',//上报中院
// name: '', // name: '',
// region: '', // region: '',
// date1: '', // date1: '',
...@@ -1084,6 +1259,43 @@ export default { ...@@ -1084,6 +1259,43 @@ export default {
} }
}, },
methods:{ methods:{
//限制只能输入正整数
changeInput2() {
var pattern = /^[1-9][0-9]*$/ // 正整数的正则表达式
// 不符合正整数时
if (!pattern.test(this.pageInfo.maxClick)) {
// input 框绑定的内容为空
this.pageInfo.maxClick='';
}
},
//限制只能输入正整数
changeInput1() {
var pattern = /^[1-9][0-9]*$/ // 正整数的正则表达式
// 不符合正整数时
if (!pattern.test(this.pageInfo.minClick)) {
// input 框绑定的内容为空
this.pageInfo.minClick='';
}
},
//切换选项卡
handleTabClick(tab,event){
// this.getAssInfoList();//获取审核列表
// this.getReportList();//获取收报信息列表
console.log(tab,event);
if(tab.name=='first'){
this.pageInfo.page = 1;
this.getManageList();//获取管理列表
}else if(tab.name=='second'){
}else if(tab.name=='third'){
this.pageInfoAss.page = 1;
this.getAssInfoList();//获取审核列表
}else if(tab.name=='fourth'){
this.pageInfoRe.page = 1;
this.getReportList();//获取收报信息列表
}else if(tab.name=='fifth'){
}
},
//用户法院等级 //用户法院等级
getUserCourtLevel(){ getUserCourtLevel(){
userCourtLevel().then(res=>{ userCourtLevel().then(res=>{
...@@ -1116,6 +1328,30 @@ export default { ...@@ -1116,6 +1328,30 @@ export default {
getManageList(){ getManageList(){
// let params={}; // let params={};
this.pageInfo.boardId=this.curBoardId; this.pageInfo.boardId=this.curBoardId;
if(this.pageInfo.stime && this.pageInfo.etime){
console.log(1111111111);
var oDateStart = new Date(this.pageInfo.stime);
var oDateEnd = new Date(this.pageInfo.etime);
if (oDateStart>=oDateEnd) {
this.$message({
type: "error",
message: "结束时间不能小于开始时间",
});
return;
}
}
if (this.pageInfo.maxClick && this.pageInfo.minClick) {
console.log(1111111111);
if (this.pageInfo.minClick>=this.pageInfo.maxClick) {
this.$message({
type: "error",
message: "最大点击数不能小于最小点击数",
});
return;
}
}
console.log('管理列表参数==',this.pageInfo); console.log('管理列表参数==',this.pageInfo);
getManageList(JSON.stringify(this.pageInfo)).then(res=>{ getManageList(JSON.stringify(this.pageInfo)).then(res=>{
console.log('获取管理列表==',res); console.log('获取管理列表==',res);
...@@ -1125,59 +1361,41 @@ export default { ...@@ -1125,59 +1361,41 @@ export default {
} }
}) })
}, },
//上传附件
uploadSuccess(file, list) {
this.fileList = list;
console.log('fileList----',this.fileList);
},
handleRemove(file, list){
console.log('fileListHandleRemove----',list);
this.fileList = list;
},
// 发布新闻 // 发布新闻
createNews(num){ createNewsEvent(num){
// params.publish=num;// 然后是publish ,点击发布的话是1,提交审核是4,保存是5
console.log('newsForm==',this.newsForm); if(this.newsForm.subject==''){
let params={};
params=this.newsForm;
// boardId: "129"
// boardName: "法院新闻"
// content: "<p></p>"
// deptId: ""
// fileList: [,…]
// geshi: "普通格式"
// isTop: "0"
// labelDept: 1
// publish: "1"
// sendToBoards: []
// subject: "广告歌"
// typeIds: ["1"]
// params.boardId=this.newsForm.boardId;//栏目id
// params.boardName=this.newsForm.boardName;//栏目名称
// params.deptId=this.newsForm.deptId;//所属部门id
// params.geshi=this.newsForm.geshi;//格式
// params.isTop=this.newsForm.isTop;//是否头条 0否1是
// params.labelDept=this.newsForm.labelDept;//信息所属部门
// params.sendToBoards=this.newsForm.sendToBoards;//发送到教育整顿
// params.subject=this.newsForm.subject;//标题
// params.typeIds=this.newsForm.typeIds;//信息所属分类
params.publish=num;// 然后是publish ,点击发布的话是1,提交审核是4,保存是5
if(params.subject==''){
this.$message({ this.$message({
message: '请输入标题!', message: '请输入标题!',
type: 'warning' type: 'warning'
}); });
return; return;
} }
params.content=this.htmlContent;
this.fileList = [...new Set(this.fileList)]; let formData = new FormData();
params.fileList=this.fileList; for(let key in this.newsForm){
// this.fileList.forEach((item) => { formData.append(key,this.newsForm[key])
// if (item.raw) { }
// console.log(1111); formData.append('content', this.htmlContent);
// // formData.append('file', item.raw) this.fileList.forEach(item=>{
// } else { formData.append('fileList', item.raw)
// console.log(2222); })
// // formData.append('file', item)
// } formData.append('publish',num);// 然后是publish ,点击发布的话是1,提交审核是4,保存是5
// console.log('-=-=-=-=-=-=-=--=需提交的附件列表', formData.get('file'))
// }) console.log('formData==',formData);
console.log('params==',params);
createNews(JSON.stringify(params)).then(res=>{ createNews(formData).then(res=>{
if(res.success){ if(res.success){
this.$message({ this.$message({
message: '添加信息成功!', message: '添加信息成功!',
...@@ -1196,23 +1414,22 @@ export default { ...@@ -1196,23 +1414,22 @@ export default {
this.curBoardId=boardId; this.curBoardId=boardId;
this.newsForm.boardName=boardName;//当前栏目名 this.newsForm.boardName=boardName;//当前栏目名
this.getManageList();//获取管理列表 this.getManageList();//获取管理列表
this.getAssInfoList();//获取审核列表
this.getReportList();//获取收报信息列表
// this.curTreeDeptId=id; // this.curTreeDeptId=id;
// this.getDeptUserList(this.rowData.sid,id); // this.getDeptUserList(this.rowData.sid,id);
}, },
//上传附件
uploadSuccess(file, list) {
this.fileList = list;
console.log('fileList----',this.fileList);
},
loginEvent(){ loginEvent(){
// removeToken(); // removeToken();
alert('11111',process.env.VUE_APP_LOGIN_API); // alert('11111',process.env.VUE_APP_LOGIN_API);
removeToken(); // removeToken();
// console.log('loginURL11111111111111==',loginURL ); // console.log('loginURL11111111111111==',loginURL );
var loginURL  = process.env.VUE_APP_LOGIN_API; // var loginURL  = process.env.VUE_APP_LOGIN_API;
console.log('loginURL222222222222==',loginURL ); // console.log('loginURL222222222222==',loginURL );
location.href = loginURL ; // location.href = loginURL ;
}, },
// 管理列表--页面切换 // 管理列表--页面切换
pageChange(e) { pageChange(e) {
...@@ -1224,18 +1441,47 @@ export default { ...@@ -1224,18 +1441,47 @@ export default {
this.pageChange(1); this.pageChange(1);
}, },
// 管理列表--修改 // 管理列表--修改
handleEdit(id){ handleEdit(newsId){
console.log('编辑',id); console.log('编辑',newsId);
let params={};
params.newsId=newsId;
console.log('修改',newsId);
newsDetail(JSON.stringify(params)).then(res=>{
if(res.success){
this.newsListDetail=res.data;
}
})
this.editVisible=true; this.editVisible=true;
}, },
// 管理列表--修改--关闭弹窗 // 管理列表--修改--关闭弹窗
handleCloseEdit(){ handleCloseEdit(){
this.editVisible=false; this.editVisible=false;
}, },
// 管理列表--删除文章 // 管理列表--删除文章
handleDelete(id){ handleDelete(newsId){
console.log('删除',id); let params={};
params.newsId=newsId;
console.log('删除',newsId);
this.$confirm("确定删除吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
deleteNews(JSON.stringify(params)).then(res=>{
if(res.success){
//刷新列表
this.getManageList();
this.$message({
message:'删除成功',
type:'success'
})
}
})
}).catch(() => {});
}, },
// 管理列表--评论 // 管理列表--评论
commentEvent(id){ commentEvent(id){
console.log('评论',id); console.log('评论',id);
...@@ -1246,6 +1492,66 @@ export default { ...@@ -1246,6 +1492,66 @@ export default {
console.log('评论',id); console.log('评论',id);
this.commentDialog=false; this.commentDialog=false;
}, },
// 获取审核列表
getAssInfoList(){
this.pageInfoAss.boardId=this.curBoardId;
console.log('审核列表参数==',this.pageInfoAss);
assInfoList(JSON.stringify(this.pageInfoAss)).then(res=>{
if(res.success){
this.assList = res.data.records
this.pageInfoAss.total = res.data.total
}
})
},
//勾选管理列表
handleSelectionChange1(val){
console.log('勾选1==',val);
this.multipleSelection1 = val;
},
//勾选审核列表
handleSelectionChange2(val){
console.log('勾选2==',val);
this.multipleSelection2 = val;
},
//勾选收报列表
handleSelectionChange3(val){
console.log('勾选3==',val);
this.multipleSelection3 = val;
},
// 审核列表--页面切换
pageChangeAss(e) {
this.pageInfoAss.page = e;
this.getAssInfoList();
},
// 审核列表
sizeChangeAss(e) {
this.pageInfoAss.size = e;
this.pageChangeAss(1);
},
// 收报信息---列表
getReportList(){
this.pageInfoRe.boardId=this.curBoardId;
console.log('审核列表参数==',this.pageInfoRe);
getSBList(JSON.stringify(this.pageInfoRe)).then(res=>{
if(res.success){
this.reportList = res.data.records
this.pageInfoRe.total = res.data.total
}
})
},
// 收报信息--页面切换
pageChangeRe(e) {
this.pageInfoRe.page = e;
this.getReportList();
},
// 收报信息--页面切换
sizeChangeRe(e) {
this.pageInfoRe.size = e;
this.getReportList();
},
// 审核列表--审核按钮弹窗 // 审核列表--审核按钮弹窗
openAudit(){ openAudit(){
this.auditVisible=true; this.auditVisible=true;
...@@ -1257,13 +1563,31 @@ export default { ...@@ -1257,13 +1563,31 @@ export default {
// 审核列表-提建议按钮弹窗 // 审核列表-提建议按钮弹窗
openSuggest(){ openSuggest(){
this.suggestVisible=true; this.suggestVisible=true;
},
//审核列表提建议保存
saveAdvise(){
let params={};
giveAdvise(JSON.stringify(params)).then(res=>{
if(res.success){
}
})
}, },
// 审核列表-提建议 // 审核列表-提建议
handleCloseSuggest(){ handleCloseSuggest(){
this.suggestVisible=false; this.suggestVisible=false;
}, },
// 收报信息--留言 // 收报信息--留言
leaveDia(){ leaveDia(id){
let params={};
params.id=id;
messageDetail(JSON.stringify(params)).then(res=>{
if(res.success){
messageDetailData=res.data;
}
})
this.leaveVisible=true; this.leaveVisible=true;
}, },
// 收报信息--留言 // 收报信息--留言
...@@ -1381,8 +1705,8 @@ ul{ ...@@ -1381,8 +1705,8 @@ ul{
padding:15px 15px; padding:15px 15px;
border-radius:5px; border-radius:5px;
box-shadow: -5px 0px 20px 5px rgba(0,0,0,0.05); box-shadow: -5px 0px 20px 5px rgba(0,0,0,0.05);
margin-left:0; margin-left:0!important;
margin-right:0; margin-right:0 !important;
} }
.upload { .upload {
background-color: #161616; background-color: #161616;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment