全部接口加密

master
yujialong 9 months ago
parent 405f78e793
commit d0de60a0a5
  1. 5
      package-lock.json
  2. 1
      package.json
  3. 2
      src/components/breadcrumb/index.vue
  4. 14
      src/components/rightColumns/index.vue
  5. 13
      src/layouts/footer/index.vue
  6. 5
      src/layouts/navbar/index.vue
  7. 7
      src/libs/util.js
  8. 7
      src/mixins/estate/index.js
  9. 7
      src/mixins/overview/index.js
  10. 8
      src/mixins/page/index.js
  11. 2
      src/pages/about/index.vue
  12. 2
      src/pages/aboutNew/index.vue
  13. 4
      src/pages/application/index.vue
  14. 8
      src/pages/article/activity.vue
  15. 10
      src/pages/article/index.vue
  16. 2
      src/pages/careers/index.vue
  17. 42
      src/pages/column/index.vue
  18. 4
      src/pages/column/result.vue
  19. 5
      src/pages/contactUs/index.vue
  20. 5
      src/pages/devHistory/index.vue
  21. 2
      src/pages/deviceIntroBeam/index.vue
  22. 2
      src/pages/deviceIntroLayout/index.vue
  23. 2
      src/pages/deviceIntroLinear/index.vue
  24. 2
      src/pages/edu/index.vue
  25. 8
      src/pages/estate/index/index.vue
  26. 1
      src/pages/estate/location/index.vue
  27. 1
      src/pages/estate/orgSetup/index.vue
  28. 1
      src/pages/estate/survey/index.vue
  29. 2
      src/pages/exp/index.vue
  30. 5
      src/pages/governance/index.vue
  31. 5
      src/pages/home/index.vue
  32. 12
      src/pages/iasf/index.vue
  33. 7
      src/pages/industrial/index.vue
  34. 2
      src/pages/lightSources/index.vue
  35. 6
      src/pages/mission/index.vue
  36. 10
      src/pages/news/index.vue
  37. 2
      src/pages/newsPress/index.vue
  38. 8
      src/pages/newsProcurement/index.vue
  39. 5
      src/pages/org/index.vue
  40. 5
      src/pages/overview/index.vue
  41. 8
      src/pages/publication/index.vue
  42. 4
      src/pages/publication/monograph.vue
  43. 4
      src/pages/publication/patent.vue
  44. 7
      src/pages/publication/single.vue
  45. 4
      src/pages/publication/thesis.vue
  46. 36
      src/pages/publish/index.vue
  47. 10
      src/pages/publish/show.vue
  48. 2
      src/pages/research/index.vue
  49. 2
      src/pages/researchNew/index.vue
  50. 4
      src/pages/researchTeam/index.vue
  51. 5
      src/pages/science/index.vue
  52. 5
      src/pages/scientific/index.vue
  53. 12
      src/pages/sfel/index.vue
  54. 12
      src/pages/sfelNew/index.vue
  55. 5
      src/pages/speech/index.vue
  56. 2
      src/pages/talent/index.vue
  57. 12
      src/pages/talentCenter/index.vue
  58. 10
      src/pages/talentCentre/index.vue
  59. 5
      src/pages/team/index.vue
  60. 2
      src/pages/userSharing/index.vue
  61. 5
      src/setting.js
  62. 3
      vue.config.js

5
package-lock.json generated

@ -8365,6 +8365,11 @@
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
"integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
},
"jsencrypt": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/jsencrypt/-/jsencrypt-3.3.2.tgz",
"integrity": "sha512-arQR1R1ESGdAxY7ZheWr12wCaF2yF47v5qpB76TtV64H1pyGudk9Hvw8Y9tb/FiTIaaTRUyaSnm5T/Y53Ghm/A=="
},
"jsesc": {
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",

@ -17,6 +17,7 @@
"html2canvas": "^1.3.2",
"jquery": "^3.7.1",
"js-cookie": "^2.2.1",
"jsencrypt": "^3.3.2",
"jspdf": "^2.4.0",
"lru-cache": "^7.14.1",
"mavon-editor": "^2.9.1",

@ -49,7 +49,7 @@ export default {
methods: {
//
getInfo () {
this.$route.query.articleId && this.$post(`${this.api.queryArticleColumnParent}?articleId=${this.$route.query.articleId}`).then(({ data }) => {
this.$route.query.articleId && this.$post(this.api.queryArticleColumnParent, Util.rsa(this.$route.query.articleId)).then(({ data }) => {
this.columns = data
}).catch(err => { })
},

@ -71,36 +71,36 @@ export default {
methods: {
//
getColumn () {
this.$post(this.api.listWithTreeMenuVisible, {
this.$post(this.api.listWithTreeMenuVisible, Util.rsa({
siteId: this.site,
columnName: '',
templateId: '',
typeId: '',
isSort: 1
}).then(({ data }) => {
})).then(({ data }) => {
this.columns = data
this.$parent.getInfo && this.$parent.getInfo()
}).catch(err => { })
this.$post(`${this.api.hotContent}?siteId=${this.site}`).then(({ data }) => {
this.$post(this.api.hotContent, Util.rsa(this.site)).then(({ data }) => {
this.hots = Util.removeTag(data)
}).catch(err => { })
if (this.site == 2) {
this.$post(this.api.newlyPublishedArticles, {
this.$post(this.api.newlyPublishedArticles, Util.rsa({
siteId: this.site,
columnIds: [411, 412, 413],
pageNum: 1,
pageSize: 8,
}).then(({ data }) => {
})).then(({ data }) => {
this.site2News = Util.removeTag(data.records);
}).catch((res) => { });
} else {
this.$post(this.api.newlyPublishedArticles, {
this.$post(this.api.newlyPublishedArticles, Util.rsa({
pageNum: 1,
pageSize: 5,
siteId: this.site
}).then(({ data }) => {
})).then(({ data }) => {
this.news = Util.removeTag(data.records)
}).catch(res => { })
}

@ -59,6 +59,7 @@
</template>
<script>
import mixins from '@/mixins/article'
import Util from '@/libs/util'
export default {
mixins: [mixins],
data () {
@ -95,13 +96,13 @@ export default {
methods: {
//
getColumn () {
this.$post(this.api.listWithTreeMenuVisible, {
this.$post(this.api.listWithTreeMenuVisible, Util.rsa({
siteId: this.$route.query.siteId || this.$store.state.content.site,
columnName: '',
templateId: '',
typeId: '',
isSort: 1
}).then(({ data }) => {
})).then(({ data }) => {
// this.columns = data.slice(0, 5)
this.columns = data
}).catch(err => { })
@ -109,7 +110,7 @@ export default {
// iasf
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.$route.query.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.$route.query.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?
@ -133,7 +134,7 @@ export default {
if (type === 1) { //
if (link.articleId) { //
//
const data = await this.$post(`${this.api.findArticle}?id=${link.articleId}`)
const data = await this.$post(this.api.findArticle, Util.rsa(link.articleId))
if (data.data.isDisable) {
return Util.errorMsg('该文章已禁用!')
} else {
@ -147,7 +148,7 @@ export default {
} else if (type === 3) { //
if (link.otherArticleId) { //
//
const data = await this.$post(`${this.api.findArticle}?id=${link.otherArticleId}`)
const data = await this.$post(this.api.findArticle, Util.rsa(link.otherArticleId))
if (data.data.isDisable) {
return Util.errorMsg('该文章已禁用!')
} else {
@ -161,7 +162,7 @@ export default {
}
// /
if ((type === 1 && link.articleId) || (type === 3 && link.otherArticleId)) {
this.$post(`${this.api.findColumn}?id=${this.id}`).then(({ data }) => {
this.$post(this.api.findColumn, Util.rsa(this.id)).then(({ data }) => {
href = this.$router.resolve(href + '&id=' + this.id + '&columnName=' + data.columnName + '&path=' + this.$route.path.replace('/', '')).href
this.toHref(link.isOpen, href)
}).catch(res => { })

@ -28,6 +28,7 @@
import menuTree from '@/components/menuTree'
import mixins from '@/mixins/article'
import { mapMutations, mapGetters } from 'vuex'
import Util from '@/libs/util'
export default {
props: ['isHome', 'isEstate', 'isIasf', 'updateModelType'],
mixins: [mixins],
@ -87,13 +88,13 @@ export default {
]),
//
getColumn () {
this.$post(this.api.listWithTree, {
this.$post(this.api.listWithTree, Util.rsa({
siteId: this.site,
columnName: '',
templateId: '',
typeId: '',
isSort: 1
}).then(({ data }) => {
})).then(({ data }) => {
//
const menuVisibleData = data.filter(item => item.menuVisible == 0)
if (this.$store.getters.getModelType) {

@ -3,6 +3,7 @@ import { Message } from "element-ui";
import Router from '@/router'
import Setting from '@/setting'
import store from '@/store'
import JSEncrypt from "jsencrypt"
// 文件后缀集合
const exts = {
@ -152,6 +153,12 @@ const util = {
let siteId = util.getQuery('siteId')
return Setting.enIds.includes(siteId ? +siteId : store.state.content.site) ? 'en' : 'zh'
},
// rsa加密
rsa(data) {
const jse = new JSEncrypt(); // 实例化一个 jsEncrypt 对象
jse.setPublicKey(Setting.publicKey); //配置公钥
return jse.encrypt(JSON.stringify(data))
},
};
export default util;

@ -1,3 +1,4 @@
import Util from '@/libs/util'
export default {
data() {
return {
@ -12,7 +13,7 @@ export default {
// 获取文章详情
getInfo() {
// 预览/详情
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state:已发布(1)则取theEditedJson,草稿(0)则取jsonBeforeEditing
const json = JSON.parse(this.preview ?
@ -24,13 +25,13 @@ export default {
},
// 获取所有栏目
getColumn() {
this.$post(this.api.listWithTreeMenuVisible, {
this.$post(this.api.listWithTreeMenuVisible, Util.rsa({
siteId: this.site,
columnName: '',
templateId: '',
typeId: '',
isSort: 1
})
}))
.then(({ data }) => {
this.getParent(data)
})

@ -1,3 +1,4 @@
import Util from '@/libs/util'
export default {
data() {
return {
@ -12,7 +13,7 @@ export default {
// 获取文章详情
getInfo() {
// 预览/详情
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state:已发布(1)则取theEditedJson,草稿(0)则取jsonBeforeEditing
const json = JSON.parse(this.preview ?
@ -25,13 +26,13 @@ export default {
},
// 获取所有栏目
getColumn() {
this.$post(this.api.listWithTreeMenuVisible, {
this.$post(this.api.listWithTreeMenuVisible, Util.rsa({
siteId: this.site,
columnName: '',
templateId: '',
typeId: '',
isSort: 1
})
}))
.then(({ data }) => {
this.getParent(data)
})

@ -20,7 +20,7 @@ export default {
methods: {
// 获取栏目详情
getColumnInfo () {
this.$post(`${this.api.findColumn}?id=${this.id}`)
this.$post(this.api.findColumn, Util.rsa(this.id))
.then(({ data }) => {
// 栏目被禁用了,则不显示页面
data.menuVisible || this.getInfo()
@ -36,7 +36,7 @@ export default {
if (type === 1) { // 站内链接
if (link.articleId) { // 文章
// 查询文章详情。禁用的文章要提示
const data = await this.$post(`${this.api.findArticle}?id=${link.articleId}`)
const data = await this.$post(this.api.findArticle, Util.rsa(link.articleId))
if (data.data.isDisable) {
return Util.errorMsg('该文章已禁用!')
} else {
@ -50,7 +50,7 @@ export default {
} else if (type === 3) { // 站外链接
if (link.otherArticleId) { // 文章
// 查询文章详情。禁用的文章要提示
const data = await this.$post(`${this.api.findArticle}?id=${link.otherArticleId}`)
const data = await this.$post(this.api.findArticle, Util.rsa(link.otherArticleId))
if (data.data.isDisable) {
return Util.errorMsg('该文章已禁用!')
} else {
@ -64,7 +64,7 @@ export default {
}
// 如果是站内/站外链接,并且选择的是文章,则要获取当前长页名称传到文章详情里,面包屑点返回的时候需要返回到当前长页
if ((type === 1 && link.articleId) || (type === 3 && link.otherArticleId)) {
this.$post(`${this.api.findColumn}?id=${this.id}`).then(({ data }) => {
this.$post(this.api.findColumn, Util.rsa(this.id)).then(({ data }) => {
href = this.$router.resolve(href + '&id=' + this.id + '&columnName=' + data.columnName + '&path=' + this.$route.path.replace('/', '')).href
this.toHref(link.isOpen, href)
}).catch(res => {})

@ -241,7 +241,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?

@ -201,7 +201,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?

@ -136,7 +136,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?
@ -148,7 +148,7 @@ export default {
//
const { column, site, articleNum } = json[7].form
if (column.length) {
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles = Util.removeTag(data.slice(0, articleNum || 6))
}).catch(err => { })
}

@ -85,7 +85,7 @@ export default {
methods: {
//
getInfo () {
this.$post(`${this.api.findArticle}?id=${this.id}`).then(({ data }) => {
this.$post(this.api.findArticle, Util.rsa(this.id)).then(({ data }) => {
//
const { columnName, path, id } = this.$route.query
this.routes = [
@ -107,7 +107,7 @@ export default {
}).catch(err => { })
// +1
this.$post(`${this.api.articlePreview}?contentId=${this.id}`).then(({ data }) => { }).catch(err => { })
this.$post(this.api.articlePreview, Util.rsa(this.id)).then(res => { }).catch(err => { })
},
// banner
getBanner (data) {
@ -123,13 +123,13 @@ export default {
},
//
getColumn () {
this.$post(this.api.listWithTreeMenuVisible, {
this.$post(this.api.listWithTreeMenuVisible, Util.rsa({
siteId: this.site,
columnName: '',
templateId: '',
typeId: '',
isSort: 1
}).then(({ data }) => {
})).then(({ data }) => {
this.columns = data
this.getInfo()
}).catch(err => { })

@ -99,7 +99,7 @@ export default {
if (cache.releaseTime) cache.releaseTime = cache.releaseTime.split(' ')[0]
this.loaded = true
} else {
this.$post(`${this.api.findArticle}?id=${this.id}`).then(async ({ data }) => {
this.$post(this.api.findArticle, Util.rsa(this.id)).then(async ({ data }) => {
//
const { columnName, path, id } = this.$route.query
this.routes = [
@ -140,19 +140,19 @@ export default {
this.columnId = data.columnId
// banner
if (!data.bannerImg) {
const columns = await this.$post(this.api.listWithTree, {
const columns = await this.$post(this.api.listWithTree, Util.rsa({
siteId: this.site,
columnName: '',
templateId: '',
typeId: '',
isSort: 1
})
}))
this.getBanner(columns.data)
this.form.bannerImg = this.gotBanner ? this.columnBanner || require('@/assets/images/article-banner.png') : ''
}
// +1
this.$post(`${this.api.articlePreview}?contentId=${this.id}`).then(({ data }) => { }).catch(err => { })
this.$post(this.api.articlePreview, Util.rsa(this.id)).then(res => { }).catch(err => { })
this.loaded = true
}
}
@ -161,7 +161,7 @@ export default {
},
//
getColumnInfo () {
this.columnId && this.$post(`${this.api.findColumn}?id=${this.columnId}`)
this.columnId && this.$post(this.api.findColumn, Util.rsa(this.columnId))
.then(({ data }) => {
if (data.detailStyleId == 69) this.isParty = 1
})

@ -160,7 +160,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?

@ -582,7 +582,7 @@ export default {
this.loading = true
this.loaded = false
this.id &&
this.$post(`${this.api.findColumn}?id=${this.id}`)
this.$post(this.api.findColumn, Util.rsa(this.id))
.then(({ data }) => {
this.columnClick(data);
if (data.typeId !== 3 && !data.menuVisible) {
@ -602,7 +602,10 @@ export default {
if (this.info.templateId === 11) { // /publication/singletemplateId = 11/publication/index
this.$router.push(`/publication/single?siteId=${this.site}&id=${this.id}&type=${this.info.listStyleId}`)
} else {
this.$post(`${this.api.getsSublevelColumnsUnderALevel}?id=${this.id}&siteId=${this.site}`).then(({ data }) => {
this.$post(this.api.getsSublevelColumnsUnderALevel, Util.rsa({
id: this.id,
siteId: this.site
})).then(({ data }) => {
data.length && data.every(e => e.templateId == 11) && this.$router.push(`/publication?siteId=${this.site}&id=${this.id}`) //
}).catch(err => { })
}
@ -622,14 +625,17 @@ export default {
getClassification () {
//
if (this.info.templateId === 7) {
this.$post(`${this.api.queryClassif}?siteId=${this.site}&templateId=${7}`)
this.$post(this.api.queryClassif, Util.rsa({
siteId: this.site,
templateId: 7
}))
.then(({ data }) => {
this.classifications = data;
})
.catch((err) => { });
} else {
//
this.$post(`${this.api.getTheFullArticleByColumn}?id=${this.id}`)
this.$post(this.api.getTheFullArticleByColumn, Util.rsa(this.id))
.then(({ data }) => {
this.classifications = data;
})
@ -638,7 +644,7 @@ export default {
},
//
getLabel () {
this.$post(`${this.api.queryLabel}?siteId=${this.site}`)
this.$post(this.api.queryLabel, Util.rsa(this.site))
.then(({ data }) => {
this.labels = data;
// placeholder
@ -684,7 +690,11 @@ export default {
//
getLeftColumn () {
this.getAllId = []
this.$post(`${this.api.oneLevelChecksThemAll}?id=${this.id}&isSort=1&siteId=${this.site}`)
this.$post(this.api.oneLevelChecksThemAll, Util.rsa({
id: this.id,
isSort: 1,
siteId: this.site
}))
.then(({ data }) => {
const fromColumn = this.$route.query.column; // column
const { typeId } = this.info;
@ -713,19 +723,19 @@ export default {
},
//
getColumn () {
this.$post(this.api.listWithTreeMenuVisible, {
this.$post(this.api.listWithTreeMenuVisible, Util.rsa({
siteId: this.site,
columnName: '',
templateId: '',
typeId: '',
isSort: 1
})
}))
.then(({ data }) => {
this.infoColumns = data;
})
.catch((err) => { });
this.$post(`${this.api.hotContent}?siteId=${this.site}`)
this.$post(this.api.hotContent, Util.rsa(this.site))
.then(({ data }) => {
this.hots = Util.removeTag(data);
})
@ -734,22 +744,22 @@ export default {
//
getNews () {
if (this.site == 2) {
this.$post(this.api.newlyPublishedArticles, {
this.$post(this.api.newlyPublishedArticles, Util.rsa({
siteId: this.site,
columnIds: [411, 412, 413],
pageNum: 1,
pageSize: 10,
publicationTimeSort: 1
}).then(({ data }) => {
})).then(({ data }) => {
this.site2News = Util.removeTag(data.records);
}).catch((res) => { });
} else {
this.$post(this.api.newlyPublishedArticles, {
this.$post(this.api.newlyPublishedArticles, Util.rsa({
pageNum: 1,
pageSize: 5,
siteId: this.site,
publicationTimeSort: 1
}).then(({ data }) => {
})).then(({ data }) => {
this.news = Util.removeTag(data.records);
}).catch((res) => { });
}
@ -824,14 +834,14 @@ export default {
this.labels.map((e) => {
if (this.lableId.includes(e.id)) labelName.push(e.labelName);
});
this.$post(this.api.newlyPublishedArticles, {
this.$post(this.api.newlyPublishedArticles, Util.rsa({
siteId: this.site,
columnIds,
pageNum: this.page,
pageSize: this.pageSize,
labelName,
...this.form
})
}))
.then(({ data }) => {
const articles = Util.removeTag(data.records);
articles.forEach(e => {
@ -847,7 +857,7 @@ export default {
this.loading = false
// this.total == 1 && this.info.showWithDetails && this.$router.push(`/article?articleId=${this.articles[0].id}&id=${this.articles[0].columnId}`)
if (this.total) {
this.$post(`${this.api.findArticle}?id=${articles[0].id}`).then(async ({ data }) => {
this.$post(this.api.findArticle, Util.rsa(articles[0].id)).then(async ({ data }) => {
this.article = data
}).catch(err => { })
}

@ -75,12 +75,12 @@ export default {
]),
//
getArticle () {
this.$post(this.api.newlyPublishedArticles, {
this.$post(this.api.newlyPublishedArticles, Util.rsa({
siteId: this.site,
pageNum: 1,
pageSize: 1000,
title: this.title
}).then(({ data }) => {
})).then(({ data }) => {
const list = Util.removeTag(data.records)
//
list.map(e => {

@ -86,10 +86,7 @@ export default {
//
getInfo () {
// /
this.$post(
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}`
)
.then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(

@ -42,10 +42,7 @@ export default {
//
getInfo () {
// /
this.$post(
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}`
)
.then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(

@ -71,7 +71,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`)
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id))
.then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing

@ -68,7 +68,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`)
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id))
.then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing

@ -71,7 +71,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`)
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id))
.then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing

@ -96,7 +96,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?

@ -257,7 +257,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?
@ -268,7 +268,7 @@ export default {
//
if (json[2].form.column && json[2].form.column.length) {
const { column, articleNum } = json[2].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles = Util.removeTag(data.slice(0, articleNum || 7))
this.curArticle = this.articles[0]
this.carouselInterval()
@ -276,13 +276,13 @@ export default {
}
if (json[6].form.column && json[6].form.column.length) {
const { column, articleNum } = json[6].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles2 = Util.removeTag(data.slice(0, articleNum || 4))
}).catch(err => { })
}
if (json[8].form.column && json[8].form.column.length) {
const { column, articleNum } = json[8].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles3 = Util.removeTag(data.slice(0, articleNum || 4))
}).catch(err => { })
}

@ -72,6 +72,7 @@
import mixins from '@/mixins/page'
import overview from '@/mixins/estate'
import WOW from 'wow.js'
import Util from '@/libs/util'
export default {
mixins: [mixins, overview],
data () {

@ -42,6 +42,7 @@
import mixins from '@/mixins/page'
import overview from '@/mixins/estate'
import WOW from 'wow.js'
import Util from '@/libs/util'
export default {
mixins: [mixins, overview],
data () {

@ -42,6 +42,7 @@
import mixins from '@/mixins/page'
import overview from '@/mixins/estate'
import WOW from 'wow.js'
import Util from '@/libs/util'
export default {
mixins: [mixins, overview],
data () {

@ -105,7 +105,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?

@ -73,10 +73,7 @@ export default {
//
getInfo () {
// /
this.$post(
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}`
)
.then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(

@ -210,21 +210,20 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?
data :
data[data.length - 1][data[data.length - 1].state ? 'theEditedJson' : 'jsonBeforeEditing'])
console.log('JSON=>', json)
this.modules = json
console.log("🚀 ~ file: index.vue ~ line 138 ~ this.$post ~ this.modules", this.modules)
//
const { column, site, articleNum } = json[5].form
if (column.length) {
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles = Util.removeTag(data.slice(0, articleNum || 6))
}).catch(err => { })
}

@ -370,7 +370,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?
@ -383,35 +383,35 @@ export default {
//
if (json[5].form.column.length) {
const { column, articleNum } = json[5].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles = Util.removeTag(data.slice(0, articleNum || 4))
}).catch(err => { })
}
if (json[6].form.column.length) {
const { column, articleNum } = json[6].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles1 = Util.removeTag(data.slice(0, articleNum || 4))
if (this.articles1.length) this.curArticle1 = this.articles1[0]
}).catch(err => { })
}
if (json[7].form.column.length) {
const { column, articleNum } = json[7].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles2 = Util.removeTag(data.slice(0, articleNum || 4))
if (this.articles2.length) this.curArticle2 = this.articles2[0]
}).catch(err => { })
}
if (json[8].form.column.length) {
const { column, articleNum } = json[8].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles3 = Util.removeTag(data.slice(0, articleNum || 4))
if (this.articles3.length) this.curArticle3 = this.articles3[0]
}).catch(err => { })
}
if (json[10].form.column.length) {
const { column, articleNum } = json[10].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles4 = Util.removeTag(data.slice(0, articleNum || 3))
}).catch(err => { })
}

@ -156,10 +156,7 @@ export default {
//
getInfo () {
// /
this.$post(
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}`
)
.then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(
@ -175,7 +172,7 @@ export default {
//
const { column, articleNum } = json[9].form
if (column.length) {
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles = Util.removeTag(data.slice(0, articleNum || 6))
}).catch(err => { })
}

@ -150,7 +150,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?

@ -68,7 +68,6 @@
<script>
import mixins from "@/mixins/page";
import Setting from "@/setting";
import Util from "@/libs/util";
import WOW from "wow.js";
export default {
mixins: [mixins],
@ -84,10 +83,7 @@ export default {
//
getInfo () {
// /
this.$post(
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}`
)
.then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(

@ -258,7 +258,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?
@ -274,7 +274,7 @@ export default {
const id = e.column[e.column.length - 1]
e.id = id
if (e.columnTitle === 2) e.columnName = e.columnTitleCustom
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${id}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(id)).then(({ data }) => {
const list = Util.removeTag(data.slice(0, e.articleNum || 6))
this.$set(e, 'articles', list)
if (list.length && !i) this.curArticle = list[0]
@ -287,13 +287,13 @@ export default {
if (json[3].form.column.length) {
const { column, site, articleNum } = json[3].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles = Util.removeTag(data.slice(0, articleNum || 6))
}).catch(err => { })
}
if (json[5].form.column.length) {
const { column, site, articleNum } = json[5].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
if (data.length) {
//
if (data[0].releaseTime) {
@ -337,7 +337,7 @@ export default {
if (column && column.length) {
const id = column[column.length - 1]
//
this.$post(`${this.api.findColumn}?id=${id}`).then(({ data }) => {
this.$post(this.api.findColumn, Util.rsa(id)).then(({ data }) => {
const { typeId } = data
//
if (typeId === 2) {

@ -68,7 +68,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?

@ -68,7 +68,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?
@ -103,7 +103,11 @@ export default {
},
//
getColumn () {
this.$post(`${this.api.oneLevelChecksThemAll}?id=${this.id}&isSort=1&siteId=${this.site}`).then(({ data }) => {
this.$post(this.api.oneLevelChecksThemAll, Util.rsa({
id: this.id,
isSort: 1,
siteId: this.site
})).then(({ data }) => {
this.getParent(data, this.id)
}).catch(err => { })
},

@ -45,10 +45,7 @@ export default {
//
getInfo () {
// /
this.$post(
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}`
)
.then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(

@ -174,10 +174,7 @@ export default {
//
getInfo () {
// /
this.$post(
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}`
)
.then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(

@ -37,6 +37,7 @@ import mixins from '@/mixins/article'
import Thesis from './thesis'
import Patent from './patent'
import Monograph from './monograph'
import Util from '@/libs/util'
export default {
mixins: [mixins],
data () {
@ -61,7 +62,7 @@ export default {
//
getInfo () {
this.id &&
this.$post(`${this.api.findColumn}?id=${this.id}`)
this.$post(this.api.findColumn, Util.rsa(this.id))
.then(({ data }) => {
if (!data.columnBanner) data.columnBanner = require('@/assets/images/publication-bg.png');
this.info = data
@ -70,7 +71,10 @@ export default {
},
//
getColumn () {
this.$post(`${this.api.getsSublevelColumnsUnderALevel}?id=${this.id}&siteId=${this.site}`).then(({ data }) => {
this.$post(this.api.getsSublevelColumnsUnderALevel, Util.rsa({
id: this.id,
siteId: this.site
})).then(({ data }) => {
this.tabs = data
// urltabtabtabid
if (this.tab) {

@ -90,13 +90,13 @@ export default {
methods: {
//
getArticle () {
this.id && this.$post(this.api.newlyPublishedArticles, {
this.id && this.$post(this.api.newlyPublishedArticles, Util.rsa({
siteId: this.$route.query.siteId || this.$store.state.content.site,
columnIds: this.id,
pageNum: this.page,
pageSize: this.pageSize,
...this.form
})
}))
.then(({ data }) => {
this.list = Util.removeTag(data.records);
this.total = +data.total;

@ -114,13 +114,13 @@ export default {
methods: {
//
getArticle () {
this.id && this.$post(this.api.newlyPublishedArticles, {
this.id && this.$post(this.api.newlyPublishedArticles, Util.rsa({
siteId: this.$route.query.siteId || this.$store.state.content.site,
columnIds: this.id,
pageNum: this.page,
pageSize: this.pageSize,
...this.form
})
}))
.then(({ data }) => {
this.list = Util.removeTag(data.records);
this.total = +data.total;

@ -32,6 +32,7 @@ import Thesis from './thesis'
import Patent from './patent'
import Monograph from './monograph'
import Breadcrumb from '@/components/breadcrumb'
import Util from '@/libs/util'
export default {
mixins: [mixins],
data () {
@ -63,7 +64,7 @@ export default {
//
getInfo () {
this.id &&
this.$post(`${this.api.findColumn}?id=${this.id}`)
this.$post(this.api.findColumn, Util.rsa(this.id))
.then(({ data }) => {
this.info = data
})
@ -71,13 +72,13 @@ export default {
},
//
getColumn () {
this.$post(this.api.listWithTreeMenuVisible, {
this.$post(this.api.listWithTreeMenuVisible, Util.rsa({
siteId: this.site,
columnName: '',
templateId: '',
typeId: '',
isSort: 1
})
}))
.then(({ data }) => {
this.getParent(data)
const list = this.parent.children

@ -68,13 +68,13 @@ export default {
methods: {
//
getArticle () {
this.id && this.$post(this.api.newlyPublishedArticles, {
this.id && this.$post(this.api.newlyPublishedArticles, Util.rsa({
siteId: this.$route.query.siteId || this.$store.state.content.site,
columnIds: this.id,
pageNum: this.page,
pageSize: this.pageSize,
...this.form
})
}))
.then(({ data }) => {
this.articles = Util.removeTag(data.records);
this.total = +data.total;

@ -1,7 +1,11 @@
<template>
<div class="wrap">
<div v-if="info.columnBanner" class="banner">
<img width="100%" height="280" :src="info.columnBanner" alt="">
<div v-if="info.columnBanner"
class="banner">
<img width="100%"
height="280"
:src="info.columnBanner"
alt="">
<div class="texts">
<p class="text">{{ info.columnName }}</p>
<p class="sub">{{ info.subtitle }}</p>
@ -10,15 +14,23 @@
<div class="inner">
<ul class="tabs">
<li v-for="(item, i) in tabs" :key="i" :class="{active: active === i}" @click="tabChange(i)">{{ item }}</li>
<li v-for="(item, i) in tabs"
:key="i"
:class="{active: active === i}"
@click="tabChange(i)">{{ item }}</li>
</ul>
<ul class="list">
<li v-for="(item, i) in list" :key="i" @click="toArtice(item)">
<img class="pic" :src="item.titleImg" alt="">
<li v-for="(item, i) in list"
:key="i"
@click="toArtice(item)">
<img class="pic"
:src="item.titleImg"
alt="">
<div class="texts">
<h6>{{ item.title }}</h6>
<div v-html="item.quote" class="des"></div>
<div v-html="item.quote"
class="des"></div>
</div>
</li>
</ul>
@ -50,18 +62,18 @@ export default {
methods: {
//
getInfo () {
this.$post(`${this.api.findColumn}?id=${this.id}`).then(({ data }) => {
this.$post(this.api.findColumn, Util.rsa(this.id)).then(({ data }) => {
this.info = data
}).catch(res => { })
},
//
getArticle () {
this.$post(this.api.newlyPublishedArticles, {
this.$post(this.api.newlyPublishedArticles, Util.rsa({
siteId: this.site,
columnIds: [this.id],
pageNum: this.page,
pageSize: this.pageSize,
}).then(({ data }) => {
})).then(({ data }) => {
this.list = Util.removeTag(data.records)
this.total = +data.total
}).catch(res => { })
@ -75,7 +87,7 @@ export default {
<style lang="scss" scoped>
.wrap {
background: #F8F9FB;
background: #f8f9fb;
}
.banner {
position: relative;
@ -116,7 +128,7 @@ export default {
cursor: pointer;
&.active {
color: #fff;
background-color: #1583FF;
background-color: #1583ff;
}
}
}
@ -142,7 +154,7 @@ export default {
font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #1583FF;
color: #1583ff;
cursor: pointer;
}
.des {

@ -94,7 +94,7 @@ export default {
methods: {
//
getInfo () {
this.$post(`${this.api.findArticle}?id=${this.id}`).then(({ data }) => {
this.$post(this.api.findArticle, Util.rsa(this.id)).then(({ data }) => {
//
const { columnName, path, id } = this.$route.query
this.routes = [
@ -134,17 +134,15 @@ export default {
},
//
getArticle () {
this.$post(`${this.api.hotContent}?siteId=${this.$route.query.siteId || this.$store.state.content.site}`).then(({ data }) => {
this.$post(this.api.hotContent, Util.rsa(this.$route.query.siteId || this.$store.state.content.site)).then(({ data }) => {
this.hots = Util.removeTag(data)
}).catch(err => { })
this.$post(this.api.newlyPublishedArticles, {
this.$post(this.api.newlyPublishedArticles, Util.rsa({
pageNum: 1,
pageSize: 5,
siteId: this.$route.query.siteId || this.$store.state.content.site
}).then(({ data }) => {
})).then(({ data }) => {
this.news = Util.removeTag(data.records)
}).catch(res => { })
},

@ -106,7 +106,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?

@ -83,7 +83,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?

@ -98,7 +98,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?
@ -110,7 +110,7 @@ export default {
//
const { column } = json[1].form
if (column.length) {
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
const articles = Util.removeTag(data)
this.allList = articles
this.articles = this.sortList(articles)

@ -69,10 +69,7 @@ export default {
//
getInfo () {
// /
this.$post(
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}`
)
.then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(

@ -85,10 +85,7 @@ export default {
//
getInfo () {
// /
this.$post(
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}`
)
.then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(

@ -409,7 +409,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?
@ -420,14 +420,14 @@ export default {
//
if (json[2].form.column.length) {
const { column, articleNum } = json[2].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles = Util.removeTag(data.slice(0, articleNum || 7))
this.curArticle = this.articles[0]
}).catch(err => { })
}
if (json[4].form.column.length) {
const { column, articleNum } = json[4].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
const articles = Util.removeTag(data.slice(0, articleNum || 11))
articles.forEach(e => {
//
@ -442,19 +442,19 @@ export default {
}
if (json[6].form.column.length) {
const { column, articleNum } = json[6].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles2 = Util.removeTag(data.slice(0, articleNum || 4))
}).catch(err => { })
}
if (json[8].form.column.length) {
const { column, articleNum } = json[8].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles3 = Util.removeTag(data.slice(0, articleNum || 6))
}).catch(err => { })
}
if (json[12].form.column.length) {
const { column, articleNum } = json[12].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles4 = Util.removeTag(data.slice(0, articleNum || 4))
}).catch(err => { })
}

@ -278,7 +278,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?
@ -289,14 +289,14 @@ export default {
//
if (json[2].form.column.length) {
const { column, articleNum } = json[2].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles = Util.removeTag(data.slice(0, articleNum || 7))
this.curArticle = this.articles[0]
}).catch(err => { })
}
if (json[4].form.column.length) {
const { column, articleNum } = json[4].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
const articles = Util.removeTag(data.slice(0, articleNum || 11))
articles.forEach(e => {
//
@ -311,19 +311,19 @@ export default {
}
if (json[6].form.column.length) {
const { column, articleNum } = json[6].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles2 = Util.removeTag(data.slice(0, articleNum || 4))
}).catch(err => { })
}
if (json[8].form.column.length) {
const { column, articleNum } = json[8].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles3 = Util.removeTag(data.slice(0, articleNum || 6))
}).catch(err => { })
}
if (json[12].form.column.length) {
const { column, articleNum } = json[12].form
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles4 = Util.removeTag(data.slice(0, articleNum || 4))
}).catch(err => { })
}

@ -49,10 +49,7 @@ export default {
//
getInfo () {
// /
this.$post(
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}`
)
.then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(

@ -125,7 +125,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?

@ -145,7 +145,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?
@ -158,28 +158,28 @@ export default {
},
//
getColumn () {
this.$post(this.api.listWithTreeMenuVisible, {
this.$post(this.api.listWithTreeMenuVisible, Util.rsa({
siteId: this.$route.query.siteId || this.$store.state.content.site,
columnName: '',
templateId: '',
typeId: '',
isSort: 1
}).then(({ data }) => {
})).then(({ data }) => {
this.columns = data
this.getInfo()
}).catch(err => { })
this.$post(`${this.api.hotContent}?siteId=${this.$route.query.siteId || this.$store.state.content.site}`).then(({ data }) => {
this.$post(this.api.hotContent, Util.rsa(this.$route.query.siteId || this.$store.state.content.site)).then(({ data }) => {
this.hots = Util.removeTag(data)
}).catch(err => { })
},
//
getArticle () {
this.$post(this.api.newlyPublishedArticles, {
this.$post(this.api.newlyPublishedArticles, Util.rsa({
pageNum: 1,
pageSize: 5,
siteId: this.$route.query.siteId || this.$store.state.content.site
}).then(({ data }) => {
})).then(({ data }) => {
this.news = Util.removeTag(data.records)
}).catch(res => { })
},

@ -105,7 +105,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?
@ -128,7 +128,7 @@ export default {
//
const { column } = json[5].form
if (column.length) {
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.$post(this.api.queryArticlesByColumnType, Util.rsa(column[column.length - 1])).then(({ data }) => {
this.articles = Util.removeTag(data.slice(0, 5))
}).catch(err => { })
}
@ -142,15 +142,15 @@ export default {
},
//
getColumn () {
this.$post(`${this.api.hotContent}?siteId=${this.site}`).then(({ data }) => {
this.$post(this.api.hotContent, Util.rsa(this.site)).then(({ data }) => {
this.hots = Util.removeTag(data)
}).catch(err => { })
this.$post(this.api.newlyPublishedArticles, {
this.$post(this.api.newlyPublishedArticles, Util.rsa({
pageNum: 1,
pageSize: 5,
siteId: this.site
}).then(({ data }) => {
})).then(({ data }) => {
this.news = Util.removeTag(data.records)
}).catch(res => { })
},

@ -53,10 +53,7 @@ export default {
//
getInfo () {
// /
this.$post(
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}`
)
.then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(

@ -85,7 +85,7 @@ export default {
//
getInfo () {
// /
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ?

@ -4,9 +4,7 @@
const isDev = process.env.NODE_ENV === 'development' // 开发环境
let host = `${location.origin}/`
if (isDev) {
// host = 'http://192.168.31.52:10000/'
host = 'http://192.168.31.51:10000/'
// host = 'http://10.10.11.7/'
}
const Setting = {
@ -31,7 +29,8 @@ const Setting = {
/**
* localStorage里保存的vuex的key
*/
storeKey: "IASF_client_store"
storeKey: "IASF_client_store",
publicKey: 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA08Nz0zscnWtddmaNylIPt9v5ZO6U6pYyGochRrbpI+ocwoyV4E1uUu3J9/mmR8pyMBcYzE5KkBytlaiLnd6dMqo4R60aihN/TqfuI/03LzgAS/egT/Q4VB9yZSyZCmJhrgTtSX5kxotAbewp0gqsWpi+6BUYDuiwJ0WNlhDVV4FOQIppmvHh0RqYDhjiPNAuy7fEtytT+IY4rxm6LggvmNtIq5k2oLbDxEeI1GOyFHT6sLGMkmBLmHu7JYcrlyUGyGWsxh8hVame1zQsScivrZu757BTGhN4xObTivIdAbR7uFeeX4lp0X1JNtIe9TwB/aZzKJjZMPXeV7BJ01g3MQIDAQAB',
};
export default Setting;

@ -17,5 +17,6 @@ module.exports = {
},
configureWebpack: {
devtool: 'source-map'
}
},
productionSourceMap: false,
};
Loading…
Cancel
Save