Commit e7452288 by 莫晓莉

批量采用不采用

parent 9a921db3
...@@ -116,3 +116,14 @@ export function findBoard(data) { ...@@ -116,3 +116,14 @@ export function findBoard(data) {
data, data,
}) })
} }
// 是否可以进入管理系统
export function enableTurnOnSystem(data) {
return request({
url: `websiteCluster/website/enableTurnOnSystem`,
method: 'POST',
data,
})
}
...@@ -87,6 +87,10 @@ import { mapGetters, mapMutations } from "vuex"; ...@@ -87,6 +87,10 @@ import { mapGetters, mapMutations } from "vuex";
import { setUserInfo } from "@/utils/auth"; import { setUserInfo } from "@/utils/auth";
import { getInfo,logout } from "@/api/login"; import { getInfo,logout } from "@/api/login";
import { removeToken,getToken } from "@/utils/auth"; import { removeToken,getToken } from "@/utils/auth";
import {
enableTurnOnSystem
} from "@/api/homePage.js"
export default { export default {
components: { components: {
// topHead, // topHead,
...@@ -100,6 +104,7 @@ export default { ...@@ -100,6 +104,7 @@ export default {
created() { created() {
if(getToken()){ if(getToken()){
this.getUserInfo(); this.getUserInfo();
this.enableTurnOnSystem();
} }
}, },
...@@ -128,7 +133,14 @@ export default { ...@@ -128,7 +133,14 @@ export default {
removeToken(); removeToken();
console.log('loginURL222222222222==',process.env.VUE_APP_LOGIN_API); console.log('loginURL222222222222==',process.env.VUE_APP_LOGIN_API);
location.href = process.env.VUE_APP_LOGIN_API location.href = process.env.VUE_APP_LOGIN_API
}, },
enableTurnOnSystem(){
enableTurnOnSystem({fyId:32}).then((res) => {
if(res.success){
}
});
}
}, },
}; };
</script> </script>
......
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
<el-tab-pane name="third"> <el-tab-pane name="third">
<span slot="label"><i class="el-icon-date"></i>审核列表</span> <span slot="label"><i class="el-icon-date"></i>审核列表</span>
<el-table <el-table
ref="multipleTable" ref="multipleTable1"
:data="assList" :data="assList"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
...@@ -452,7 +452,7 @@ ...@@ -452,7 +452,7 @@
<el-table <el-table
border border
height="550" height="550"
ref="multipleTable" ref="multipleTable2"
:data="reportList" :data="reportList"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
...@@ -833,7 +833,7 @@ ...@@ -833,7 +833,7 @@
<!-- //创建未提交审核即保存为5,提交审核为4,审核不通过为3,通过已发布为1 --> <!-- //创建未提交审核即保存为5,提交审核为4,审核不通过为3,通过已发布为1 -->
<!-- <el-button type="primary" @click="updateNews('1')">修改</el-button> --> <!-- <el-button type="primary" @click="updateNews('1')">修改</el-button> -->
<el-button type="primary" @click="updateNews('4')">提交审核</el-button> <el-button type="primary" @click="updateNews('4')">提交审核</el-button>
<el-button type="primary" >建议</el-button> <el-button type="primary" @click="openSuggest(newsFormEdit.newsId)">建议</el-button>
<el-button type="primary" @click="updateNews('5')">保存</el-button> <el-button type="primary" @click="updateNews('5')">保存</el-button>
<el-button @click="handleCloseEdit">关闭</el-button> <el-button @click="handleCloseEdit">关闭</el-button>
</el-form-item> </el-form-item>
...@@ -1124,31 +1124,80 @@ ...@@ -1124,31 +1124,80 @@
<!-- 7、日志弹窗end --> <!-- 7、日志弹窗end -->
<!-- 8、批量打开start --> <!-- 8、审核批量打开start -->
<el-dialog <el-dialog
title="批量打开新闻" title="批量打开新闻"
:visible.sync="batchDialogVisible" :visible.sync="batchDialogVisible"
top="3%" top="3%"
width="60%" width="60%"
:before-close="handleColseAssInfo"
center> center>
<div style="height:650px;over-flow:hidden;overflow-y:auto;"> <div style="height:650px;over-flow:hidden;overflow-y:auto;">
<el-row v-for="(item,index) in batchList" :key="index"> <el-checkbox-group v-model="checkedCities" @change="handleCheckedCitiesChange">
<h2 style=" text-align: center;">{{item.newsDetail.subject}}</h2> <el-row style="padding:0 15px;" >
<div v-if="item.newsDetail.newsTime" style="color: #999999; font-size: 12px;text-align:right">发布时间:{{item.newsDetail.newsTime.substring(0,10)}}</div> <div class="mb-30" v-for="(item,index) in batchList" :key="index">
<div v-if="item.attachList"> <h2 style="color:red;font-size:13px;text-align:center!important;">{{item.newsDetail.subject}}</h2>
<el-image style="margin-top:5px;width:100%;margin-bottom:5px;" fit="contain" v-for="v in item.attachList" :key="v.id" :src="v.downloadPath"></el-image> <div v-if="item.newsDetail.newsTime" style="color: #999999; font-size: 12px;text-align:right">发布时间:{{item.newsDetail.newsTime.substring(0,10)}}</div>
</div> <div v-if="item.attachList">
<div class="view-html" style="width:100%;" v-html="item.newsDetail.content"></div> <el-image style="margin-top:5px;width:100%;margin-bottom:5px;" fit="contain" v-for="v in item.attachList" :key="v.id" :src="v.downloadPath"></el-image>
<div class="wiriter-intro">作者: {{ item.newsDetail.provider }}</div> </div>
</el-row> <div class="view-html" style="width:100%;" v-html="item.newsDetail.content"></div>
<div class="wiriter-intro">作者: {{ item.newsDetail.provider }}</div>
<div style="text-align:center;margin-top:10px;">
<el-checkbox :label="item.newsDetail.newsId" :key="item.newsDetail.newsId">标记</el-checkbox>
<el-button class="ml-15" type="primary" @click="openSuggest(item.newsDetail.newsId)">提建议</el-button>
</div>
</div>
</el-row>
</el-checkbox-group>
</div>
<span slot="footer" class="dialog-footer">
<!-- <el-button @click="batchDialogVisible = false">取 消</el-button> -->
<el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全部标记</el-checkbox>
<el-button class="ml-15" type="primary" @click="assInfoBatchOp(1)">通过</el-button>
<el-button @click="assInfoBatchOp(3)">不通过</el-button>
<el-button @click="handleColseAssInfo">关闭</el-button>
</span>
</el-dialog>
<!-- 8、审核批量打开end -->
<!-- 9、收报批量打开start -->
<el-dialog
title="批量打开新闻"
:visible.sync="opendialogVisible"
top="3%"
width="60%"
:before-close="handleCloseGet"
center>
<div style="height:650px;over-flow:hidden;overflow-y:auto;">
<el-checkbox-group v-model="checkedCities" @change="handleCheckedCitiesChangegGet">
<el-row style="padding:0 15px;" >
<div class="mb-30" v-for="(item,index) in batchList" :key="index">
<h2 style="color:red;font-size:13px;text-align:center!important;">{{item.newsDetail.subject}}</h2>
<div v-if="item.newsDetail.newsTime" style="color: #999999; font-size: 12px;text-align:right">发布时间:{{item.newsDetail.newsTime.substring(0,10)}}</div>
<div v-if="item.attachList">
<el-image style="margin-top:5px;width:100%;margin-bottom:5px;" fit="contain" v-for="v in item.attachList" :key="v.id" :src="v.downloadPath"></el-image>
</div>
<div class="view-html" style="width:100%;" v-html="item.newsDetail.content"></div>
<div class="wiriter-intro">作者: {{ item.newsDetail.provider }}</div>
<div style="text-align:center;margin-top:10px;">
<el-checkbox :label="item.newsDetail.newsId" :key="item.newsDetail.newsId">标记</el-checkbox>
<el-button class="ml-15" type="primary" @click="openSuggest(item.newsDetail.newsId)">提建议</el-button>
</div>
</div>
</el-row>
</el-checkbox-group>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<!-- <el-button @click="batchDialogVisible = false">取 消</el-button> --> <!-- <el-button @click="batchDialogVisible = false">取 消</el-button> -->
<el-button type="primary" @click="batchDialogVisible = false">关闭</el-button> <el-checkbox v-model="checkAll" @change="handleCheckAllChange2">全部标记</el-checkbox>
<el-button class="ml-15" type="primary" @click="sbBatchUseOrNot(3)">采用</el-button>
<el-button @click="sbBatchUseOrNot(1)">不采用</el-button>
<el-button @click="handleCloseGet">关闭</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!-- 8、批量打开end --> <!-- 9、收报批量打开end -->
</div> </div>
</template> </template>
<script> <script>
...@@ -1181,7 +1230,7 @@ import { removeToken } from "@/utils/auth"; ...@@ -1181,7 +1230,7 @@ import { removeToken } from "@/utils/auth";
import { getInfo,logout } from "@/api/login"; import { getInfo,logout } from "@/api/login";
import { getUserInfo } from "@/utils/auth"; import { getUserInfo } from "@/utils/auth";
// import Cookies from 'js-cookie' // import Cookies from 'js-cookie'
const cityOptions = ['上海', '北京', '广州', '深圳'];
export default { export default {
name: "show", name: "show",
components: { components: {
...@@ -1190,8 +1239,14 @@ export default { ...@@ -1190,8 +1239,14 @@ export default {
}, },
data() { data() {
return { return {
checkAll: false,
checkedCities: [],//批量打开审核的选择的标记集合
// cities: cityOptions,
isIndeterminate:false,
batchList:[],//批量打开集合 batchList:[],//批量打开集合
batchDialogVisible:false,//批量打开弹窗 batchDialogVisible:false,// 审核批量打开弹窗
opendialogVisible:false,//收报批量打开弹窗
messageDetailDataList:[], messageDetailDataList:[],
delFileList:[],//删除附件 delFileList:[],//删除附件
userInfo:{},//用户信息 userInfo:{},//用户信息
...@@ -1293,103 +1348,13 @@ export default { ...@@ -1293,103 +1348,13 @@ export default {
desc: '' desc: ''
}, },
activeName: 'first', activeName: 'first',
manageTableData: [
{
id:'1',
date: '2016-05-03',
name: '王小虎',
subject: '上海市普陀区金沙江路 1518 弄'
}, {
id:'2',
date: '2016-05-02',
name: '王小虎',
subject: '上海市普陀区金沙江路 1518 弄'
}, {
id:'3',
date: '2016-05-04',
name: '王小虎',
subject: '上海市普陀区金沙江路 1518 弄'
}, {
id:'4',
date: '2016-05-01',
name: '王小虎',
subject: '上海市普陀区金沙江路 1518 弄'
}, {
id:'5',
date: '2016-05-08',
name: '王小虎',
subject: '上海市普陀区金沙江路 1518 弄'
}, {
id:'6',
date: '2016-05-06',
name: '王小虎',
subject: '上海市普陀区金沙江路 1518 弄'
}, {
id:'7',
date: '2016-05-07',
name: '王小虎',
subject: '上海市普陀区金沙江路 1518 弄'
}],
// multipleSelection: [], // multipleSelection: [],
dataTreeFile: [ dataTreeFile: [
// {
// label: '一级 1',
// children: [{
// label: '二级 1-1',
// children: [{
// label: '三级 1-1-1'
// }]
// }]
// }, {
// label: '一级 2',
// children: [{
// label: '二级 2-1',
// children: [{
// label: '三级 2-1-1'
// }]
// }, {
// label: '二级 2-2',
// children: [{
// label: '三级 2-2-1'
// }]
// }]
// }, {
// label: '一级 3',
// children: [{
// label: '二级 3-1',
// children: [{
// label: '三级 3-1-1'
// }]
// }, {
// label: '二级 3-2',
// children: [{
// label: '三级 3-2-1'
// }]
// }]
// }
], ],
defaultProps: { defaultProps: {
children: 'children', children: 'children',
label: 'boardName' label: 'boardName'
}, },
tableData: [{
date: '2016-05-02 12:00:00',
name: '24',
address: '【广西高院队...】广西高院队伍整顿简报解放军过来了就收到了开花结果的工具打开两个换个角度思考和监控工具打开换个角度来看回家国家的客户给几个大客户就'
}, {
date: '2016-05-04 12:00:00',
name: '45',
address: '上海市普陀区金沙江路 1517 弄'
}, {
date: '2016-05-01 12:00:00',
name: '67',
address: '上海市普陀区金沙江路 1519 弄'
}, {
date: '2016-05-03 12:00:00',
name: '89',
address: '上海市普陀区金沙江路 1516 弄'
}],
} }
}, },
...@@ -1440,12 +1405,41 @@ export default { ...@@ -1440,12 +1405,41 @@ export default {
}, },
// 模糊搜索所属部门end // 模糊搜索所属部门end
methods:{ methods:{
// getUserInfoData(){ //选择标记--审核
// // let userInfo=getUserInfo(); handleCheckedCitiesChange(value) {
// // console.log('userInfo=======================',userInfo); console.log('批量选择标记=',value);
// let userInfo=Cookies.getJSON('userInfo'); this.multipleSelection2=value;//复制给勾选的值
// console.log('userInfo=======================',userInfo); },
// }, // 全部标记----审核
handleCheckAllChange(val) {
console.log('批量选择标记全选=',val);
let arr=[];
this.batchList.forEach(item=>{
arr.push(item.newsDetail.newsId);
})
this.checkedCities = val ? arr : [];
console.log('批量选择标记全选值=',this.checkedCities);
this.multipleSelection3=this.checkedCities;//复制给勾选的值
this.isIndeterminate = false;
},
//选择标记--收报
handleCheckedCitiesChangegGet(value) {
console.log('批量选择标记=',value);
this.multipleSelection2=value;//复制给勾选的值
},
// 全部标记--收报
handleCheckAllChange2(val) {
console.log('批量选择标记全选=',val);
let arr=[];
this.batchList.forEach(item=>{
arr.push(item.newsDetail.newsId);
})
this.checkedCities = val ? arr : [];
console.log('批量选择标记全选值=',this.checkedCities);
this.multipleSelection3=this.checkedCities;//复制给勾选的值
this.isIndeterminate = false;
},
getUserInfo() { getUserInfo() {
getInfo().then((res) => { getInfo().then((res) => {
this.userInfo = res.user; this.userInfo = res.user;
...@@ -1465,9 +1459,6 @@ export default { ...@@ -1465,9 +1459,6 @@ export default {
console.log('勾选2==',val); console.log('勾选2==',val);
var newsIdArr=[]; var newsIdArr=[];
val.forEach(item=>{ val.forEach(item=>{
// let obj={};
// obj.newsId=item.newsId;
// newsIdArr.push(obj);
newsIdArr.push(item.newsId); newsIdArr.push(item.newsId);
}) })
this.multipleSelection2 = newsIdArr; this.multipleSelection2 = newsIdArr;
...@@ -1495,20 +1486,13 @@ export default { ...@@ -1495,20 +1486,13 @@ export default {
this.batchDialogVisible=true;//批量打开弹窗 this.batchDialogVisible=true;//批量打开弹窗
let params={}; let params={};
params.newsIds=this.multipleSelection2; params.newsIds=this.multipleSelection2;
// params.publish
// assInfoBatch(JSON.stringify(params)).then(res=>{
batchOpenNews(JSON.stringify(params)).then(res=>{ batchOpenNews(JSON.stringify(params)).then(res=>{
if(res.success){ if(res.success){
this.batchList=res.data; this.batchList=res.data;
// this.$message({
// message:'批量打开成功!',
// type:'success'
// })
} }
}) })
}, },
//审核信息批量操作 //审核信息批量操作--通过/不通过
assInfoBatchOp(publish){ assInfoBatchOp(publish){
let params={}; let params={};
params.newsIds=this.multipleSelection2; params.newsIds=this.multipleSelection2;
...@@ -1523,20 +1507,17 @@ export default { ...@@ -1523,20 +1507,17 @@ export default {
} }
}) })
}, },
//关闭批量审核弹窗
handleColseAssInfo(){
this.batchDialogVisible=false;
this.multipleSelection2=[];//选择为空
this.checkedCities=[];//选择为空
this.$refs.multipleTable1.clearSelection();// 删除后清空之前选择的数据
this.$forceUpdate();
},
//收报批量打开 //收报批量打开
sbBatch(publish){ sbBatch(publish){
// let params={};
// params.newsIds=this.multipleSelection3;
// // params.publish=publish;
// sbBatch(JSON.stringify(params)).then(res=>{
// if(res.success){
// this.getReportList();//刷新收报列表
// this.$message({
// message:'收报批量打开成功!',
// type:'success'
// })
// }
// })
if(this.multipleSelection3.length==0){ if(this.multipleSelection3.length==0){
this.$message({ this.$message({
message:'请选择新闻!', message:'请选择新闻!',
...@@ -1544,7 +1525,7 @@ export default { ...@@ -1544,7 +1525,7 @@ export default {
}) })
return; return;
} }
this.batchDialogVisible=true;//批量打开弹窗 this.opendialogVisible=true;//批量打开弹窗
let params={}; let params={};
params.newsIds=this.multipleSelection3; params.newsIds=this.multipleSelection3;
// params.publish // params.publish
...@@ -1555,6 +1536,15 @@ export default { ...@@ -1555,6 +1536,15 @@ export default {
} }
}) })
}, },
//关闭批量收报弹窗
handleCloseGet(){
this.batchDialogVisible=false;
this.multipleSelection2=[];//选择为空
this.checkedCities=[];//选择为空
this.$refs.multipleTable2.clearSelection();// 删除后清空之前选择的数据
this.$forceUpdate();
},
// 收报批量采用不采用 // 收报批量采用不采用
sbBatchUseOrNot(status){ sbBatchUseOrNot(status){
// 是否采用,3为采用,2为不采用即已阅 // 是否采用,3为采用,2为不采用即已阅
...@@ -1579,12 +1569,6 @@ export default { ...@@ -1579,12 +1569,6 @@ export default {
}) })
}, },
//选择所属部门
// selectDeptEvent(){
// console.log(99999);
// this.$refs.refDept.findCurrentDepts();
// this.deptVisible=true;
// },
listHtml(item){ listHtml(item){
return item.name.replace(new RegExp(this.searchTxt,'g'),'<b style="color:red;">'+this.searchTxt+'</b>') return item.name.replace(new RegExp(this.searchTxt,'g'),'<b style="color:red;">'+this.searchTxt+'</b>')
}, },
...@@ -1688,13 +1672,6 @@ export default { ...@@ -1688,13 +1672,6 @@ export default {
} }
if (this.pageInfo.maxClick && this.pageInfo.minClick) { if (this.pageInfo.maxClick && this.pageInfo.minClick) {
console.log('this.pageInfo.maxClick==',this.pageInfo.maxClick); console.log('this.pageInfo.maxClick==',this.pageInfo.maxClick);
// if (this.pageInfo.minClick==0||this.pageInfo.maxClick==0) {
// this.$message({
// type: "error",
// message: "请输入点击数",
// });
// return;
// }
if (this.pageInfo.minClick>=this.pageInfo.maxClick) { if (this.pageInfo.minClick>=this.pageInfo.maxClick) {
this.$message({ this.$message({
type: "error", type: "error",
...@@ -1893,6 +1870,7 @@ export default { ...@@ -1893,6 +1870,7 @@ export default {
// if(this.newsFormEdit.fileList==null){ // if(this.newsFormEdit.fileList==null){
// this.newsFormEdit.fileList=[]; // this.newsFormEdit.fileList=[];
// } // }
delete this.newsFormEdit.attInfoList; //删除attInfoList参数不传这个参数否则接口报错
if(this.newsFormEdit.labelDept==null){ if(this.newsFormEdit.labelDept==null){
delete this.newsFormEdit.labelDept; delete this.newsFormEdit.labelDept;
} }
...@@ -1992,12 +1970,6 @@ export default { ...@@ -1992,12 +1970,6 @@ export default {
loginEvent(){ loginEvent(){
removeToken(); removeToken();
// alert('11111',process.env.VUE_APP_LOGIN_API);
// removeToken();
// console.log('loginURL11111111111111==',loginURL );
// var loginURL  = process.env.VUE_APP_LOGIN_API;
// console.log('loginURL222222222222==',loginURL );
// location.href = loginURL ; // location.href = loginURL ;
location.href = process.env.VUE_APP_LOGIN_API location.href = process.env.VUE_APP_LOGIN_API
}, },
......
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