全部接口加密

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. 31
      src/pages/contactUs/index.vue
  20. 31
      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. 31
      src/pages/governance/index.vue
  31. 5
      src/pages/home/index.vue
  32. 12
      src/pages/iasf/index.vue
  33. 43
      src/pages/industrial/index.vue
  34. 2
      src/pages/lightSources/index.vue
  35. 32
      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. 31
      src/pages/org/index.vue
  40. 31
      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. 176
      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. 31
      src/pages/science/index.vue
  52. 31
      src/pages/scientific/index.vue
  53. 12
      src/pages/sfel/index.vue
  54. 12
      src/pages/sfelNew/index.vue
  55. 31
      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. 31
      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", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
"integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" "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": { "jsesc": {
"version": "2.5.2", "version": "2.5.2",
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",

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

@ -49,7 +49,7 @@ export default {
methods: { methods: {
// //
getInfo () { 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 this.columns = data
}).catch(err => { }) }).catch(err => { })
}, },

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

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

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

@ -3,6 +3,7 @@ import { Message } from "element-ui";
import Router from '@/router' import Router from '@/router'
import Setting from '@/setting' import Setting from '@/setting'
import store from '@/store' import store from '@/store'
import JSEncrypt from "jsencrypt"
// 文件后缀集合 // 文件后缀集合
const exts = { const exts = {
@ -152,6 +153,12 @@ const util = {
let siteId = util.getQuery('siteId') let siteId = util.getQuery('siteId')
return Setting.enIds.includes(siteId ? +siteId : store.state.content.site) ? 'en' : 'zh' 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; export default util;

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

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

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

@ -241,7 +241,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?

@ -201,7 +201,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?

@ -136,7 +136,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?
@ -148,7 +148,7 @@ export default {
// //
const { column, site, articleNum } = json[7].form const { column, site, articleNum } = json[7].form
if (column.length) { 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)) this.articles = Util.removeTag(data.slice(0, articleNum || 6))
}).catch(err => { }) }).catch(err => { })
} }

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

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

@ -160,7 +160,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?

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

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

@ -86,23 +86,20 @@ export default {
// //
getInfo () { getInfo () {
// / // /
this.$post( this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}` if (data.length) {
) // state1theEditedJson稿0jsonBeforeEditing
.then(({ data }) => { const json = JSON.parse(
if (data.length) { this.preview
// state1theEditedJson稿0jsonBeforeEditing ? data
const json = JSON.parse( : data[data.length - 1][
this.preview data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
? data ]
: data[data.length - 1][ );
data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing" this.modules = json;
] console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
); }
this.modules = json; })
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
}
})
.catch((err) => { }); .catch((err) => { });
}, },
// id // id

@ -42,23 +42,20 @@ export default {
// //
getInfo () { getInfo () {
// / // /
this.$post( this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}` if (data.length) {
) // state1theEditedJson稿0jsonBeforeEditing
.then(({ data }) => { const json = JSON.parse(
if (data.length) { this.preview
// state1theEditedJson稿0jsonBeforeEditing ? data
const json = JSON.parse( : data[data.length - 1][
this.preview data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
? data ]
: data[data.length - 1][ );
data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing" this.modules = json;
] console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
); }
this.modules = json; })
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
}
})
.catch((err) => { }); .catch((err) => { });
}, },
}, },

@ -71,7 +71,7 @@ export default {
// //
getInfo () { 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 }) => { .then(({ data }) => {
if (data.length) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing

@ -68,7 +68,7 @@ export default {
// //
getInfo () { 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 }) => { .then(({ data }) => {
if (data.length) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing

@ -71,7 +71,7 @@ export default {
// //
getInfo () { 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 }) => { .then(({ data }) => {
if (data.length) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing

@ -96,7 +96,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?

@ -257,7 +257,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?
@ -268,7 +268,7 @@ export default {
// //
if (json[2].form.column && json[2].form.column.length) { if (json[2].form.column && json[2].form.column.length) {
const { column, articleNum } = json[2].form 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.articles = Util.removeTag(data.slice(0, articleNum || 7))
this.curArticle = this.articles[0] this.curArticle = this.articles[0]
this.carouselInterval() this.carouselInterval()
@ -276,13 +276,13 @@ export default {
} }
if (json[6].form.column && json[6].form.column.length) { if (json[6].form.column && json[6].form.column.length) {
const { column, articleNum } = json[6].form 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)) this.articles2 = Util.removeTag(data.slice(0, articleNum || 4))
}).catch(err => { }) }).catch(err => { })
} }
if (json[8].form.column && json[8].form.column.length) { if (json[8].form.column && json[8].form.column.length) {
const { column, articleNum } = json[8].form 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)) this.articles3 = Util.removeTag(data.slice(0, articleNum || 4))
}).catch(err => { }) }).catch(err => { })
} }

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

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

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

@ -105,7 +105,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?

@ -73,23 +73,20 @@ export default {
// //
getInfo () { getInfo () {
// / // /
this.$post( this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}` if (data.length) {
) // state1theEditedJson稿0jsonBeforeEditing
.then(({ data }) => { const json = JSON.parse(
if (data.length) { this.preview
// state1theEditedJson稿0jsonBeforeEditing ? data
const json = JSON.parse( : data[data.length - 1][
this.preview data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
? data ]
: data[data.length - 1][ );
data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing" this.modules = json;
] console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
); }
this.modules = json; })
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
}
})
.catch((err) => { }); .catch((err) => { });
}, },
// //

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

@ -370,7 +370,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?
@ -383,35 +383,35 @@ export default {
// //
if (json[5].form.column.length) { if (json[5].form.column.length) {
const { column, articleNum } = json[5].form 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)) this.articles = Util.removeTag(data.slice(0, articleNum || 4))
}).catch(err => { }) }).catch(err => { })
} }
if (json[6].form.column.length) { if (json[6].form.column.length) {
const { column, articleNum } = json[6].form 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)) this.articles1 = Util.removeTag(data.slice(0, articleNum || 4))
if (this.articles1.length) this.curArticle1 = this.articles1[0] if (this.articles1.length) this.curArticle1 = this.articles1[0]
}).catch(err => { }) }).catch(err => { })
} }
if (json[7].form.column.length) { if (json[7].form.column.length) {
const { column, articleNum } = json[7].form 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)) this.articles2 = Util.removeTag(data.slice(0, articleNum || 4))
if (this.articles2.length) this.curArticle2 = this.articles2[0] if (this.articles2.length) this.curArticle2 = this.articles2[0]
}).catch(err => { }) }).catch(err => { })
} }
if (json[8].form.column.length) { if (json[8].form.column.length) {
const { column, articleNum } = json[8].form 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)) this.articles3 = Util.removeTag(data.slice(0, articleNum || 4))
if (this.articles3.length) this.curArticle3 = this.articles3[0] if (this.articles3.length) this.curArticle3 = this.articles3[0]
}).catch(err => { }) }).catch(err => { })
} }
if (json[10].form.column.length) { if (json[10].form.column.length) {
const { column, articleNum } = json[10].form 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)) this.articles4 = Util.removeTag(data.slice(0, articleNum || 3))
}).catch(err => { }) }).catch(err => { })
} }

@ -156,31 +156,28 @@ export default {
// //
getInfo () { getInfo () {
// / // /
this.$post( this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}` if (data.length) {
) // state1theEditedJson稿0jsonBeforeEditing
.then(({ data }) => { const json = JSON.parse(
if (data.length) { this.preview
// state1theEditedJson稿0jsonBeforeEditing ? data
const json = JSON.parse( : data[data.length - 1][
this.preview data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
? data ]
: data[data.length - 1][ );
data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing" this.modules = json;
] console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
);
this.modules = json;
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
// //
const { column, articleNum } = json[9].form const { column, articleNum } = json[9].form
if (column.length) { 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)) this.articles = Util.removeTag(data.slice(0, articleNum || 6))
}).catch(err => { }) }).catch(err => { })
}
} }
}) }
})
.catch((err) => { }); .catch((err) => { });
}, },
}, },

@ -150,7 +150,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?

@ -68,7 +68,6 @@
<script> <script>
import mixins from "@/mixins/page"; import mixins from "@/mixins/page";
import Setting from "@/setting"; import Setting from "@/setting";
import Util from "@/libs/util";
import WOW from "wow.js"; import WOW from "wow.js";
export default { export default {
mixins: [mixins], mixins: [mixins],
@ -84,23 +83,20 @@ export default {
// //
getInfo () { getInfo () {
// / // /
this.$post( this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}` if (data.length) {
) // state1theEditedJson稿0jsonBeforeEditing
.then(({ data }) => { const json = JSON.parse(
if (data.length) { this.preview
// state1theEditedJson稿0jsonBeforeEditing ? data
const json = JSON.parse( : data[data.length - 1][
this.preview data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
? data ]
: data[data.length - 1][ );
data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing" this.modules = json;
] console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
); }
this.modules = json; })
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
}
})
.catch((err) => { }); .catch((err) => { });
}, },
}, },

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

@ -68,7 +68,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?

@ -68,7 +68,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?
@ -103,7 +103,11 @@ export default {
}, },
// //
getColumn () { 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) this.getParent(data, this.id)
}).catch(err => { }) }).catch(err => { })
}, },

@ -45,23 +45,20 @@ export default {
// //
getInfo () { getInfo () {
// / // /
this.$post( this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}` if (data.length) {
) // state1theEditedJson稿0jsonBeforeEditing
.then(({ data }) => { const json = JSON.parse(
if (data.length) { this.preview
// state1theEditedJson稿0jsonBeforeEditing ? data
const json = JSON.parse( : data[data.length - 1][
this.preview data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
? data ]
: data[data.length - 1][ );
data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing" this.modules = json;
] console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
); }
this.modules = json; })
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
}
})
.catch((err) => { }); .catch((err) => { });
}, },
} }

@ -174,23 +174,20 @@ export default {
// //
getInfo () { getInfo () {
// / // /
this.$post( this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}` if (data.length) {
) // state1theEditedJson稿0jsonBeforeEditing
.then(({ data }) => { const json = JSON.parse(
if (data.length) { this.preview
// state1theEditedJson稿0jsonBeforeEditing ? data
const json = JSON.parse( : data[data.length - 1][
this.preview data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
? data ]
: data[data.length - 1][ );
data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing" this.modules = json;
] console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
); }
this.modules = json; })
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
}
})
.catch((err) => { }); .catch((err) => { });
}, },
}, },

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

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

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

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

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

@ -1,7 +1,11 @@
<template> <template>
<div class="wrap"> <div class="wrap">
<div v-if="info.columnBanner" class="banner"> <div v-if="info.columnBanner"
<img width="100%" height="280" :src="info.columnBanner" alt=""> class="banner">
<img width="100%"
height="280"
:src="info.columnBanner"
alt="">
<div class="texts"> <div class="texts">
<p class="text">{{ info.columnName }}</p> <p class="text">{{ info.columnName }}</p>
<p class="sub">{{ info.subtitle }}</p> <p class="sub">{{ info.subtitle }}</p>
@ -10,15 +14,23 @@
<div class="inner"> <div class="inner">
<ul class="tabs"> <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>
<ul class="list"> <ul class="list">
<li v-for="(item, i) in list" :key="i" @click="toArtice(item)"> <li v-for="(item, i) in list"
<img class="pic" :src="item.titleImg" alt=""> :key="i"
@click="toArtice(item)">
<img class="pic"
:src="item.titleImg"
alt="">
<div class="texts"> <div class="texts">
<h6>{{ item.title }}</h6> <h6>{{ item.title }}</h6>
<div v-html="item.quote" class="des"></div> <div v-html="item.quote"
class="des"></div>
</div> </div>
</li> </li>
</ul> </ul>
@ -32,7 +44,7 @@ import Setting from '@/setting'
import Util from '@/libs/util' import Util from '@/libs/util'
export default { export default {
mixins: [mixins], mixins: [mixins],
data() { data () {
return { return {
info: {}, info: {},
active: 0, active: 0,
@ -43,30 +55,30 @@ export default {
total: 0, total: 0,
} }
}, },
mounted() { mounted () {
this.getInfo() this.getInfo()
this.getArticle() this.getArticle()
}, },
methods: { methods: {
// //
getInfo() { 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 this.info = data
}).catch(res => {}) }).catch(res => { })
}, },
// //
getArticle() { getArticle () {
this.$post(this.api.newlyPublishedArticles, { this.$post(this.api.newlyPublishedArticles, Util.rsa({
siteId: this.site, siteId: this.site,
columnIds: [this.id], columnIds: [this.id],
pageNum: this.page, pageNum: this.page,
pageSize: this.pageSize, pageSize: this.pageSize,
}).then(({ data }) => { })).then(({ data }) => {
this.list = Util.removeTag(data.records) this.list = Util.removeTag(data.records)
this.total = +data.total this.total = +data.total
}).catch(res => {}) }).catch(res => { })
}, },
tabChange(i) { tabChange (i) {
this.active = i this.active = i
} }
} }
@ -75,81 +87,81 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.wrap { .wrap {
background: #F8F9FB; background: #f8f9fb;
} }
.banner { .banner {
position: relative; position: relative;
height: 280px; height: 280px;
color: #fff; color: #fff;
.texts { .texts {
position: absolute; position: absolute;
top: 80px; top: 80px;
left: 243px; left: 243px;
} }
.text { .text {
font-size: 48px; font-size: 48px;
font-weight: 600; font-weight: 600;
@include ellipsis; @include ellipsis;
} }
.sub { .sub {
margin-top: 10px; margin-top: 10px;
font-size: 28px; font-size: 28px;
} }
} }
.inner { .inner {
width: 1200px; width: 1200px;
margin: 0 auto; margin: 0 auto;
} }
.tabs { .tabs {
position: relative; position: relative;
display: flex; display: flex;
margin-top: -64px; margin-top: -64px;
li { li {
width: 174px; width: 174px;
line-height: 64px; line-height: 64px;
text-align: center; text-align: center;
font-size: 18px; font-size: 18px;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
background-color: #fff; background-color: #fff;
cursor: pointer; cursor: pointer;
&.active { &.active {
color: #fff; color: #fff;
background-color: #1583FF; background-color: #1583ff;
}
} }
}
} }
.list { .list {
padding: 0 30px 50px; padding: 0 30px 50px;
background: #fff; background: #fff;
li { li {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 28px 0; padding: 28px 0;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
cursor: pointer; cursor: pointer;
&:last-child { &:last-child {
border-bottom: 0; border-bottom: 0;
}
}
.pic {
width: 90px;
height: 122px;
margin-right: 20px;
}
h6 {
font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #1583ff;
cursor: pointer;
}
.des {
margin-top: 15px;
font-size: 16px;
color: #666;
line-height: 26px;
} }
}
.pic {
width: 90px;
height: 122px;
margin-right: 20px;
}
h6 {
font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #1583FF;
cursor: pointer;
}
.des {
margin-top: 15px;
font-size: 16px;
color: #666;
line-height: 26px;
}
} }
</style> </style>

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

@ -106,7 +106,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?

@ -83,7 +83,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?

@ -98,7 +98,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?
@ -110,7 +110,7 @@ export default {
// //
const { column } = json[1].form const { column } = json[1].form
if (column.length) { 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) const articles = Util.removeTag(data)
this.allList = articles this.allList = articles
this.articles = this.sortList(articles) this.articles = this.sortList(articles)

@ -69,23 +69,20 @@ export default {
// //
getInfo () { getInfo () {
// / // /
this.$post( this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}` if (data.length) {
) // state1theEditedJson稿0jsonBeforeEditing
.then(({ data }) => { const json = JSON.parse(
if (data.length) { this.preview
// state1theEditedJson稿0jsonBeforeEditing ? data
const json = JSON.parse( : data[data.length - 1][
this.preview data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
? data ]
: data[data.length - 1][ );
data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing" this.modules = json;
] console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
); }
this.modules = json; })
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
}
})
.catch((err) => { }); .catch((err) => { });
}, },
}, },

@ -85,23 +85,20 @@ export default {
// //
getInfo () { getInfo () {
// / // /
this.$post( this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}` if (data.length) {
) // state1theEditedJson稿0jsonBeforeEditing
.then(({ data }) => { const json = JSON.parse(
if (data.length) { this.preview
// state1theEditedJson稿0jsonBeforeEditing ? data
const json = JSON.parse( : data[data.length - 1][
this.preview data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
? data ]
: data[data.length - 1][ );
data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing" this.modules = json;
] console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
); }
this.modules = json; })
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
}
})
.catch((err) => { }); .catch((err) => { });
}, },
}, },

@ -409,7 +409,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?
@ -420,14 +420,14 @@ export default {
// //
if (json[2].form.column.length) { if (json[2].form.column.length) {
const { column, articleNum } = json[2].form 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.articles = Util.removeTag(data.slice(0, articleNum || 7))
this.curArticle = this.articles[0] this.curArticle = this.articles[0]
}).catch(err => { }) }).catch(err => { })
} }
if (json[4].form.column.length) { if (json[4].form.column.length) {
const { column, articleNum } = json[4].form 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)) const articles = Util.removeTag(data.slice(0, articleNum || 11))
articles.forEach(e => { articles.forEach(e => {
// //
@ -442,19 +442,19 @@ export default {
} }
if (json[6].form.column.length) { if (json[6].form.column.length) {
const { column, articleNum } = json[6].form 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)) this.articles2 = Util.removeTag(data.slice(0, articleNum || 4))
}).catch(err => { }) }).catch(err => { })
} }
if (json[8].form.column.length) { if (json[8].form.column.length) {
const { column, articleNum } = json[8].form 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)) this.articles3 = Util.removeTag(data.slice(0, articleNum || 6))
}).catch(err => { }) }).catch(err => { })
} }
if (json[12].form.column.length) { if (json[12].form.column.length) {
const { column, articleNum } = json[12].form 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)) this.articles4 = Util.removeTag(data.slice(0, articleNum || 4))
}).catch(err => { }) }).catch(err => { })
} }

@ -278,7 +278,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?
@ -289,14 +289,14 @@ export default {
// //
if (json[2].form.column.length) { if (json[2].form.column.length) {
const { column, articleNum } = json[2].form 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.articles = Util.removeTag(data.slice(0, articleNum || 7))
this.curArticle = this.articles[0] this.curArticle = this.articles[0]
}).catch(err => { }) }).catch(err => { })
} }
if (json[4].form.column.length) { if (json[4].form.column.length) {
const { column, articleNum } = json[4].form 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)) const articles = Util.removeTag(data.slice(0, articleNum || 11))
articles.forEach(e => { articles.forEach(e => {
// //
@ -311,19 +311,19 @@ export default {
} }
if (json[6].form.column.length) { if (json[6].form.column.length) {
const { column, articleNum } = json[6].form 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)) this.articles2 = Util.removeTag(data.slice(0, articleNum || 4))
}).catch(err => { }) }).catch(err => { })
} }
if (json[8].form.column.length) { if (json[8].form.column.length) {
const { column, articleNum } = json[8].form 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)) this.articles3 = Util.removeTag(data.slice(0, articleNum || 6))
}).catch(err => { }) }).catch(err => { })
} }
if (json[12].form.column.length) { if (json[12].form.column.length) {
const { column, articleNum } = json[12].form 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)) this.articles4 = Util.removeTag(data.slice(0, articleNum || 4))
}).catch(err => { }) }).catch(err => { })
} }

@ -49,23 +49,20 @@ export default {
// //
getInfo () { getInfo () {
// / // /
this.$post( this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}` if (data.length) {
) // state1theEditedJson稿0jsonBeforeEditing
.then(({ data }) => { const json = JSON.parse(
if (data.length) { this.preview
// state1theEditedJson稿0jsonBeforeEditing ? data
const json = JSON.parse( : data[data.length - 1][
this.preview data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
? data ]
: data[data.length - 1][ );
data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing" this.modules = json;
] console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
); }
this.modules = json; })
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
}
})
.catch((err) => { }); .catch((err) => { });
}, },
}, },

@ -125,7 +125,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?

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

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

@ -53,23 +53,20 @@ export default {
// //
getInfo () { getInfo () {
// / // /
this.$post( this.$post(this.api[this.preview ? 'getRedisCache' : 'findPage'], Util.rsa(this.id)).then(({ data }) => {
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}` if (data.length) {
) // state1theEditedJson稿0jsonBeforeEditing
.then(({ data }) => { const json = JSON.parse(
if (data.length) { this.preview
// state1theEditedJson稿0jsonBeforeEditing ? data
const json = JSON.parse( : data[data.length - 1][
this.preview data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
? data ]
: data[data.length - 1][ );
data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing" this.modules = json;
] console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
); }
this.modules = json; })
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
}
})
.catch((err) => { }); .catch((err) => { });
}, },
} }

@ -85,7 +85,7 @@ export default {
// //
getInfo () { 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) { if (data.length) {
// state1theEditedJson稿0jsonBeforeEditing // state1theEditedJson稿0jsonBeforeEditing
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?

@ -4,9 +4,7 @@
const isDev = process.env.NODE_ENV === 'development' // 开发环境 const isDev = process.env.NODE_ENV === 'development' // 开发环境
let host = `${location.origin}/` let host = `${location.origin}/`
if (isDev) { if (isDev) {
// host = 'http://192.168.31.52:10000/'
host = 'http://192.168.31.51:10000/' host = 'http://192.168.31.51:10000/'
// host = 'http://10.10.11.7/'
} }
const Setting = { const Setting = {
@ -31,7 +29,8 @@ const Setting = {
/** /**
* localStorage里保存的vuex的key * 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; export default Setting;

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