Commit be9d0904 authored by anxixi's avatar anxixi

开发内容管理相关

parent dcf5019e
......@@ -860,6 +860,11 @@ i {
}
}
.pagination{
padding: 20px 0;
text-align: center;
}
//个人认证上传附件
.uploadImg {
text-align:left;
......@@ -1131,6 +1136,8 @@ i {
.projectTabadd {
background: #ffffff;
border-radius: 3px;
margin-top: 10px;
min-height: 700px;
.el-tabs__nav-wrap::after {
background: transparent !important;
height: 1px !important;
......
......@@ -18,7 +18,8 @@ const i18n = new VueI18n({
import { Loading,MessageBox } from 'element-ui';
let base = "",isMobile = publicFunc.isWhichBrowe().mobile;
var type = navigator.appName,language;
//检测是否移动或PC
var clientCode = publicFun.judgeBrand();
//检测唯一标识码
if(!publicFun.getCookie("getGuid32")){
publicFun.setUserInfoCookie("getGuid32",publicFun.getGuid32());
......@@ -54,7 +55,8 @@ export default {
}),
headers: {
accessToken:publicFun.getCookie("userInfo")?JSON.parse(require('js-base64').Base64.decode(publicFun.getCookie("userInfo"))).accessToken:'',
deviceId:publicFun.getCookie("getGuid32")
deviceId:publicFun.getCookie("getGuid32"),
clientCode:clientCode,
},
},{
// 单独配置
......@@ -167,7 +169,8 @@ export default {
}),
headers: {
accessToken:publicFun.getCookie("userInfo")?JSON.parse(require('js-base64').Base64.decode(publicFun.getCookie("userInfo"))).accessToken:'',
deviceId:publicFun.getCookie("getGuid32")
deviceId:publicFun.getCookie("getGuid32"),
clientCode:clientCode,
},
},{
// 单独配置
......@@ -277,7 +280,8 @@ export default {
}),
headers: {
accessToken:publicFun.getCookie("userInfo")?JSON.parse(require('js-base64').Base64.decode(publicFun.getCookie("userInfo"))).accessToken:'',
deviceId:publicFun.getCookie("getGuid32")
deviceId:publicFun.getCookie("getGuid32"),
clientCode:clientCode,
},
},{
// 单独配置
......@@ -395,7 +399,8 @@ export default {
}),
headers: {
accessToken:publicFun.getCookie("userInfo")?JSON.parse(require('js-base64').Base64.decode(publicFun.getCookie("userInfo"))).accessToken:'',
deviceId:publicFun.getCookie("getGuid32")
deviceId:publicFun.getCookie("getGuid32"),
clientCode:clientCode,
},
},{
// 单独配置
......@@ -514,7 +519,8 @@ export default {
data: params,
headers: {
accessToken:publicFun.getCookie("userInfo")?JSON.parse(require('js-base64').Base64.decode(publicFun.getCookie("userInfo"))).accessToken:'',
deviceId:publicFun.getCookie("getGuid32")
deviceId:publicFun.getCookie("getGuid32"),
clientCode:clientCode,
},
},{
// 单独配置
......@@ -637,7 +643,8 @@ export default {
}),
headers: {
accessToken:publicFun.getCookie("userInfo")?JSON.parse(require('js-base64').Base64.decode(publicFun.getCookie("userInfo"))).accessToken:'',
deviceId:publicFun.getCookie("getGuid32")
deviceId:publicFun.getCookie("getGuid32"),
clientCode:clientCode,
},
},{
// 单独配置
......@@ -757,7 +764,8 @@ export default {
}),
headers: {
accessToken:publicFun.getCookie("userInfo")?JSON.parse(require('js-base64').Base64.decode(publicFun.getCookie("userInfo"))).accessToken:'',
deviceId:publicFun.getCookie("getGuid32")
deviceId:publicFun.getCookie("getGuid32"),
clientCode:clientCode,
},
}).then((response) => {
if(response.headers.loginstatus==2){
......@@ -867,7 +875,8 @@ export default {
}),
headers: {
accessToken:publicFun.getCookie("userInfo")?JSON.parse(require('js-base64').Base64.decode(publicFun.getCookie("userInfo"))).accessToken:'',
deviceId:publicFun.getCookie("getGuid32")
deviceId:publicFun.getCookie("getGuid32"),
clientCode:clientCode,
},
}).then((response) => {
if(response.headers.loginstatus==2){
......@@ -981,7 +990,8 @@ export default {
headers: {
'Content-Type': 'multipart/form-data',
accessToken:publicFun.getCookie("userInfo")?JSON.parse(require('js-base64').Base64.decode(publicFun.getCookie("userInfo"))).accessToken:'',
deviceId:publicFun.getCookie("getGuid32")
deviceId:publicFun.getCookie("getGuid32"),
clientCode:clientCode,
},
},{
// 单独配置
......@@ -1051,7 +1061,8 @@ export default {
data: params,
headers: {
accessToken:publicFun.getCookie("userInfo")?JSON.parse(require('js-base64').Base64.decode(publicFun.getCookie("userInfo"))).accessToken:'',
deviceId:publicFun.getCookie("getGuid32")
deviceId:publicFun.getCookie("getGuid32"),
clientCode:clientCode,
},
},{
// 单独配置
......
......@@ -313,6 +313,37 @@ export default {
//a 长度返回 b 长度是否满足 newStr 截取后返回
},
//获取是否pc、h5、小程序设备
judgeBrand(){
var userAgentInfo = navigator.userAgent;
var ua = navigator.userAgent.toLowerCase();
var Agents = ["Android", "iPhone","SymbianOS", "Windows Phone","iPad", "iPod"];
//初始化为PC
var flag = 'aa2d6a49';
for (var v = 0; v < Agents.length; v++) {
//判断是否移动端
if (userAgentInfo.indexOf(Agents[v]) > 0) {
flag = 'bbc5d0ee';
//判断是否在微信
if(ua.match(/MicroMessenger/i)=="micromessenger") {
//判断是否在小程序
wx.miniProgram.getEnv((res)=>{
if (res.miniprogram) {
flag = 'cc276b08';
} else {
flag = 'bbc5d0ee';
}
})
}else{
flag = 'bbc5d0ee';
}
break;
}
}
return flag;
},
//将秒数转换为时分秒格式
formatSeconds(value) {
......
......@@ -626,6 +626,11 @@ export default new Router({
component: resolve => require(['views/innovatecompany/bannerconfig/homeconfigs.vue'], resolve),
meta: {title: '开机报'}
},
{
path: '/conmanagement',
component: resolve => require(['views/conmanagementpage/conmanagement.vue'], resolve),
meta: {title: '内容管理'}
},
]
},
{
......
import api from '../../../api/api';
import Qs from 'qs';
export default {
selectCityList(params) {
return api.fetchGet('/business/geo/selectCityList?geoId=' + params);
},
//频道列表
searchContentChannel (params){
return api.fetchPost('/base/article/searchContentChannel',params);
},
//添加频道
addContentChannel (url,params){
return api.fetchPost(url,params);
},
//获取单个频道信息
getContentChannel(params) {
return api.fetchGet('/base/article/getContentChannel?channelId=' + params);
},
//删除单个频道信息
removeContentChannel(params) {
return api.fetchGet('/base/article/removeContentChannel?channelId=' + params);
},
//修改频道序号
changeContentChannelSort (params){
return api.fetchPost('/base/article/changeContentChannelSort',params);
},
//获取单个分类信息
getContentClassify(params) {
return api.fetchGet('/base/article/getContentClassify?classifyId=' + params);
},
//删除单个分类信息
removeContentClassify(params) {
return api.fetchGet('/base/article/removeContentClassify?classifyId=' + params);
},
//修改频道序号
changeContentClassifySort (params){
return api.fetchPost('/base/article/changeContentClassifySort',params);
},
//分类列表
searchContentClassify (params){
return api.fetchPost('/base/article/searchContentClassify',params);
},
//添加分类
addContentClassify (url,params){
return api.fetchPost(url,params);
},
}
\ No newline at end of file
<template>
<div class="projectTabadd">
<el-row class="contentPadding">
<el-row class="tabPdding">
<el-row class="statebottm">
<el-col :span="12">
<!-- <page-screen :screenlist="peopleTypelist" :checkboxGroupstate="empTypeed" :screenchildListIf="true" ref="peopletypechild" :titleName="$t('operationjson.usertype')" @changecheck="peopletypeData"></page-screen>-->
</el-col>
<el-col :span="12">
<page-screen :screenlist="authTypelist" :checkboxGroupstate="registerTypeed" :screenchildListIf="true" ref="authtypechild" :titleName="$t('operationjson.accounttype')" @changecheck="typeData"></page-screen>
</el-col>
</el-row>
<el-row class="statebottm">
<el-col :span="12">
<page-screen :screenlist="authenticationstate" :checkboxGroupstate="authenticationStateed" :screenchildListIf="true" ref="peopletypechild" :titleName="$t('operationjson.Certificationstate')" @changecheck="authenticationData"></page-screen>
</el-col>
<el-col :span="12">
<page-screen :screenlist="accountstate" :checkboxGroupstate="frozenStateed" :screenchildListIf="true" ref="authtypechild" :titleName="$t('usermanagement.accountstatus')" @changecheck="accountData"></page-screen>
</el-col>
</el-row>
<el-row style="margin: 20px 0 0 10px" class="contnetform">
<el-form :inline="true" label-width="120px" label-position="left" :class="diven_zh?'':'contnetformen'" style="width: 100%;">
<el-form-item :label="$t('usermanagement.registrationtime')">
<template slot-scope="scope">
<div style="display:flex;">
<el-date-picker style="width: 200px;" v-model="search.startTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" :placeholder="$t('operationjson.authBegin')"></el-date-picker>
<p style="width: 50px;text-align: center">{{$t('operationjson.tos')}}</p>
<el-date-picker style="width: 200px;" v-model="search.endTime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" :placeholder="$t('operationjson.authEnd')"></el-date-picker>
<el-input style="width: 240px;margin-left: 20px;" v-model="search.empAccount"
:placeholder="$t('commonTitle.searchThree')"></el-input>
<el-button type="primary" style="width: 140px;margin-left: 20px" @click="searchCik">{{$t('operationjson.search')}}</el-button>
</div>
</template>
</el-form-item>
</el-form>
</el-row>
</el-row>
<el-row>
<el-table :data="tydata" tooltip-effect="dark" class="projectTable2">
<el-table-column label="ID" prop="channelId" align="center" width="50">
</el-table-column>
<el-table-column prop="channelName" label="频道名称" align="center">
</el-table-column>
<el-table-column prop="channelNameEn" label="英文名称" align="center">
</el-table-column>
<el-table-column prop="contentNum" label="内容数量" align="center">
</el-table-column>
<el-table-column label="操作" width="150" align='center'>
<template slot-scope="scope">
<el-button type="text" @click="editBaseShow(scope.row)">查看</el-button>
<el-button type="text" @click="editBaseShow(scope.row)">编辑</el-button>
<el-button type="text" @click="deleteBase(scope.row)">删除</el-button>
</template>
</el-table-column>
<el-table-column label="排序" width="120" align='center'>
<template slot-scope="scope">
<el-input @blur="blursort(scope.row)" v-model="scope.row.sort" maxlength="6" style="width: 60px;"></el-input>
</template>
</el-table-column>
<template slot="empty">
<i class="iconfont icon-hezi501 datai"></i>
<p class="datap">{{$t('listjson.notfoundyet')}}</p>
</template>
</el-table>
<div class="pagination">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
background
:page-sizes="[10, 20, 30, 40, 50]"
:page-size="10"
:current-page="cur_page"
layout=" total, prev, pager, next"
:total="totalListResult">
</el-pagination>
</div>
</el-row>
</el-row>
</div>
</template>
<script>
export default {
name: "articleservice",
data() {
return {
}
},
methods: {
},
mounted(){
}
}
</script>
<style scoped>
</style>
\ No newline at end of file
<template>
<div>
文章设置
</div>
</template>
<script>
export default {
name: "articlesettings",
data() {
return {
}
},
methods: {
},
mounted(){
}
}
</script>
<style scoped>
</style>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
<template>
<div class="soutform loginedWrapper">
<div class="breadcrumb">
<el-breadcrumb separator="/">
<el-breadcrumb-item :to="{ path: '/projectdynamics' }">{{$t("releasejson.wrkbench")}}</el-breadcrumb-item>
<el-breadcrumb-item>内容管理</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div class="projectTabadd">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="文章" name="first">
<articleservice ref="childone"></articleservice>
</el-tab-pane>
<el-tab-pane label="频道" name="second">
<channelservice ref="childtwo"></channelservice>
</el-tab-pane>
<el-tab-pane label="分类" name="third">
<classification ref="childthree"></classification>
</el-tab-pane>
<el-tab-pane label="文章设置" name="fourth">
<articlesettings ref="childfour"></articlesettings>
</el-tab-pane>
</el-tabs>
</div>
</div>
</template>
<script>
import api from './api/api'
import channelservice from "./channelservice";
import classification from "./classification";
import articleservice from "./articleservice";
import articlesettings from "./articlesettings";
export default {
name : "totceldata",
data() {
return {
activeName:'first',
}
},
components:{
channelservice,classification,articleservice,articlesettings
},
methods: {
handleClick(tab, event) {
if(tab.name == 'first'){
}else if(tab.name == 'second'){
this.$refs.childtwo.getsearchContentChannel();
}else if(tab.name == 'third'){
this.$refs.childthree.searchContentClassify();
}else if(tab.name == 'fourth'){
}
},
},
mounted(){
}
}
</script>
<style scoped>
</style>
\ No newline at end of file
......@@ -6,7 +6,7 @@
<el-breadcrumb-item>开机报</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div class="projectTabadd" style="margin-top: 10px;position: relative;border-radius: 3px;min-height: 700px">
<div class="projectTabadd">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="开机报" name="first"></el-tab-pane>
<!-- <el-tab-pane label="小程序轮播图" name="second"></el-tab-pane>-->
......@@ -386,10 +386,6 @@
</script>
<style scoped lang="scss">
.pagination {
padding: 20px 0;
text-align: center;
}
.formcontentnk {
float: right;
}
......
......@@ -13,7 +13,8 @@
return {
editor: null,
editorContent: '',
uploadHostHeader:'/base/upload/uploadPicture'
uploadHostHeader:'/base/upload/uploadPicture',
ischannelIntroduction:true,
};
},
props: ['catchData','channelIntroduction'],
......@@ -78,8 +79,11 @@
},
watch:{
channelIntroduction(val){
if(val){
this.editor.txt.html(val)
if(this.ischannelIntroduction){
if(val){
this.editor.txt.html(val)
this.ischannelIntroduction = false;
}
}
}
}
......
......@@ -117,8 +117,8 @@
</el-table-column>
<el-table-column :label="$t('listjson.action')" width="80" align='center'>
<template slot-scope="scope">
<el-button plain size="mini" type="primary" @click="addproject(scope.row)">
添加
<el-button :disabled="scope.row.ischecked" plain size="mini" type="primary" @click="addproject(scope.row)">
{{scope.row.ischecked?'已添加':'添加'}}
</el-button>
</template>
</el-table-column>
......@@ -513,6 +513,13 @@
api.searchSubjectProject(params).then(response => {
if(response.code == 0) {
this.searchprolist = response.result.records;
for(let i in this.searchprolist){
for(let t in this.selectedprolist){
if(this.searchprolist[i].projectId == this.selectedprolist[t].projectId){
this.$set(this.searchprolist, i, { ...this.searchprolist[i], ischecked: true })
}
}
};
this.totalListResult = response.result.total;
} else {
this.$message.error(response.msg);
......@@ -524,11 +531,11 @@
});
},
addproject(row){
if(this.selectedprolist.length == 0){
this.selectedprolist.push(row);
this.$refs.projectList.clearValidate();
return;
}
// if(this.selectedprolist.length == 0){
// this.selectedprolist.push(row);
// this.$refs.projectList.clearValidate();
// return;
// }
for(let i in this.selectedprolist){
if(this.selectedprolist[i].projectId == row.projectId){
return
......@@ -539,6 +546,13 @@
return
}
this.selectedprolist.push(row);
for(let i in this.searchprolist){
for(let t in this.selectedprolist){
if(this.searchprolist[i].projectId == this.selectedprolist[t].projectId){
this.$set(this.searchprolist, i, { ...this.searchprolist[i], ischecked: true })
}
}
};
this.$refs.projectList.clearValidate();
},
removepro(row){
......@@ -547,6 +561,11 @@
this.selectedprolist.splice(i, 1);
}
}
for(let i in this.searchprolist){
if(this.searchprolist[i].projectId == row.projectId){
this.$set(this.searchprolist, i, { ...this.searchprolist[i], ischecked: false })
}
};
},
//上移
moveUp(index,row){
......
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