Commit e7452288 by 莫晓莉

批量采用不采用

parent 9a921db3
......@@ -116,3 +116,14 @@ export function findBoard(data) {
data,
})
}
// 是否可以进入管理系统
export function enableTurnOnSystem(data) {
return request({
url: `websiteCluster/website/enableTurnOnSystem`,
method: 'POST',
data,
})
}
......@@ -87,6 +87,10 @@ import { mapGetters, mapMutations } from "vuex";
import { setUserInfo } from "@/utils/auth";
import { getInfo,logout } from "@/api/login";
import { removeToken,getToken } from "@/utils/auth";
import {
enableTurnOnSystem
} from "@/api/homePage.js"
export default {
components: {
// topHead,
......@@ -100,6 +104,7 @@ export default {
created() {
if(getToken()){
this.getUserInfo();
this.enableTurnOnSystem();
}
},
......@@ -129,6 +134,13 @@ export default {
console.log('loginURL222222222222==',process.env.VUE_APP_LOGIN_API);
location.href = process.env.VUE_APP_LOGIN_API
},
enableTurnOnSystem(){
enableTurnOnSystem({fyId:32}).then((res) => {
if(res.success){
}
});
}
},
};
</script>
......
......@@ -351,7 +351,7 @@
<el-tab-pane name="third">
<span slot="label"><i class="el-icon-date"></i>审核列表</span>
<el-table
ref="multipleTable"
ref="multipleTable1"
:data="assList"
tooltip-effect="dark"
style="width: 100%"
......@@ -452,7 +452,7 @@
<el-table
border
height="550"
ref="multipleTable"
ref="multipleTable2"
:data="reportList"
tooltip-effect="dark"
style="width: 100%"
......@@ -833,7 +833,7 @@
<!-- //创建未提交审核即保存为5,提交审核为4,审核不通过为3,通过已发布为1 -->
<!-- <el-button type="primary" @click="updateNews('1')">修改</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 @click="handleCloseEdit">关闭</el-button>
</el-form-item>
......@@ -1124,31 +1124,80 @@
<!-- 7、日志弹窗end -->
<!-- 8、批量打开start -->
<!-- 8、审核批量打开start -->
<el-dialog
title="批量打开新闻"
:visible.sync="batchDialogVisible"
top="3%"
width="60%"
:before-close="handleColseAssInfo"
center>
<div style="height:650px;over-flow:hidden;overflow-y:auto;">
<el-row v-for="(item,index) in batchList" :key="index">
<h2 style=" text-align: center;">{{item.newsDetail.subject}}</h2>
<el-checkbox-group v-model="checkedCities" @change="handleCheckedCitiesChange">
<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>
<span slot="footer" class="dialog-footer">
<!-- <el-button @click="batchDialogVisible = false">取 消</el-button> -->
<el-button type="primary" @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 -->
<!-- 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>
<span slot="footer" class="dialog-footer">
<!-- <el-button @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>
</el-dialog>
<!-- 9、收报批量打开end -->
</div>
</template>
<script>
......@@ -1181,7 +1230,7 @@ import { removeToken } from "@/utils/auth";
import { getInfo,logout } from "@/api/login";
import { getUserInfo } from "@/utils/auth";
// import Cookies from 'js-cookie'
const cityOptions = ['上海', '北京', '广州', '深圳'];
export default {
name: "show",
components: {
......@@ -1190,8 +1239,14 @@ export default {
},
data() {
return {
checkAll: false,
checkedCities: [],//批量打开审核的选择的标记集合
// cities: cityOptions,
isIndeterminate:false,
batchList:[],//批量打开集合
batchDialogVisible:false,//批量打开弹窗
batchDialogVisible:false,// 审核批量打开弹窗
opendialogVisible:false,//收报批量打开弹窗
messageDetailDataList:[],
delFileList:[],//删除附件
userInfo:{},//用户信息
......@@ -1293,103 +1348,13 @@ export default {
desc: ''
},
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: [],
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: {
children: 'children',
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 {
},
// 模糊搜索所属部门end
methods:{
// getUserInfoData(){
// // let userInfo=getUserInfo();
// // console.log('userInfo=======================',userInfo);
// let userInfo=Cookies.getJSON('userInfo');
// console.log('userInfo=======================',userInfo);
// },
//选择标记--审核
handleCheckedCitiesChange(value) {
console.log('批量选择标记=',value);
this.multipleSelection2=value;//复制给勾选的值
},
// 全部标记----审核
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() {
getInfo().then((res) => {
this.userInfo = res.user;
......@@ -1465,9 +1459,6 @@ export default {
console.log('勾选2==',val);
var newsIdArr=[];
val.forEach(item=>{
// let obj={};
// obj.newsId=item.newsId;
// newsIdArr.push(obj);
newsIdArr.push(item.newsId);
})
this.multipleSelection2 = newsIdArr;
......@@ -1495,20 +1486,13 @@ export default {
this.batchDialogVisible=true;//批量打开弹窗
let params={};
params.newsIds=this.multipleSelection2;
// params.publish
// assInfoBatch(JSON.stringify(params)).then(res=>{
batchOpenNews(JSON.stringify(params)).then(res=>{
if(res.success){
this.batchList=res.data;
// this.$message({
// message:'批量打开成功!',
// type:'success'
// })
}
})
},
//审核信息批量操作
//审核信息批量操作--通过/不通过
assInfoBatchOp(publish){
let params={};
params.newsIds=this.multipleSelection2;
......@@ -1523,20 +1507,17 @@ export default {
}
})
},
//关闭批量审核弹窗
handleColseAssInfo(){
this.batchDialogVisible=false;
this.multipleSelection2=[];//选择为空
this.checkedCities=[];//选择为空
this.$refs.multipleTable1.clearSelection();// 删除后清空之前选择的数据
this.$forceUpdate();
},
//收报批量打开
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){
this.$message({
message:'请选择新闻!',
......@@ -1544,7 +1525,7 @@ export default {
})
return;
}
this.batchDialogVisible=true;//批量打开弹窗
this.opendialogVisible=true;//批量打开弹窗
let params={};
params.newsIds=this.multipleSelection3;
// params.publish
......@@ -1555,6 +1536,15 @@ export default {
}
})
},
//关闭批量收报弹窗
handleCloseGet(){
this.batchDialogVisible=false;
this.multipleSelection2=[];//选择为空
this.checkedCities=[];//选择为空
this.$refs.multipleTable2.clearSelection();// 删除后清空之前选择的数据
this.$forceUpdate();
},
// 收报批量采用不采用
sbBatchUseOrNot(status){
// 是否采用,3为采用,2为不采用即已阅
......@@ -1579,12 +1569,6 @@ export default {
})
},
//选择所属部门
// selectDeptEvent(){
// console.log(99999);
// this.$refs.refDept.findCurrentDepts();
// this.deptVisible=true;
// },
listHtml(item){
return item.name.replace(new RegExp(this.searchTxt,'g'),'<b style="color:red;">'+this.searchTxt+'</b>')
},
......@@ -1688,13 +1672,6 @@ export default {
}
if (this.pageInfo.maxClick && this.pageInfo.minClick) {
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) {
this.$message({
type: "error",
......@@ -1893,6 +1870,7 @@ export default {
// if(this.newsFormEdit.fileList==null){
// this.newsFormEdit.fileList=[];
// }
delete this.newsFormEdit.attInfoList; //删除attInfoList参数不传这个参数否则接口报错
if(this.newsFormEdit.labelDept==null){
delete this.newsFormEdit.labelDept;
}
......@@ -1992,12 +1970,6 @@ export default {
loginEvent(){
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 = 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