This commit is contained in:
许允枞 2025-03-03 14:14:30 +08:00
parent 89c33aefc2
commit 745d8a0dce
5 changed files with 44 additions and 53 deletions

View File

@ -105,16 +105,16 @@ public class UeditorController {
" \"imageManagerActionName\": \"listimage\",\n" + " \"imageManagerActionName\": \"listimage\",\n" +
" \"snapscreenPathFormat\": \"image/{yyyy}{mm}{dd}/{time}{rand:6}\",\n" + " \"snapscreenPathFormat\": \"image/{yyyy}{mm}{dd}/{time}{rand:6}\",\n" +
" \"scrawlPathFormat\": \"image/{yyyy}{mm}{dd}/{time}{rand:6}\",\n" + " \"scrawlPathFormat\": \"image/{yyyy}{mm}{dd}/{time}{rand:6}\",\n" +
" \"scrawlMaxSize\": 2048000,\n" + " \"scrawlMaxSize\": 104857600,\n" +
" \"imageInsertAlign\": \"none\",\n" + " \"imageInsertAlign\": \"none\",\n" +
" \"catcherPathFormat\": \"image/{yyyy}{mm}{dd}/{time}{rand:6}\",\n" + " \"catcherPathFormat\": \"image/{yyyy}{mm}{dd}/{time}{rand:6}\",\n" +
" \"catcherMaxSize\": 2048000,\n" + " \"catcherMaxSize\": 104857600,\n" +
" \"snapscreenUrlPrefix\": \"\",\n" + " \"snapscreenUrlPrefix\": \"\",\n" +
" \"imagePathFormat\": \"image/{yyyy}{mm}{dd}/{time}{rand:6}\",\n" + " \"imagePathFormat\": \"image/{yyyy}{mm}{dd}/{time}{rand:6}\",\n" +
" \"imageManagerUrlPrefix\": \"https://meevexp.oberyun.com/hgdWebsite\",\n" + " \"imageManagerUrlPrefix\": \"https://meevexp.oberyun.com/hgdWebsite\",\n" +
" \"scrawlUrlPrefix\": \"\",\n" + " \"scrawlUrlPrefix\": \"\",\n" +
" \"scrawlFieldName\": \"upfile\",\n" + " \"scrawlFieldName\": \"upfile\",\n" +
" \"imageMaxSize\": 2048000,\n" + " \"imageMaxSize\": 104857600,\n" +
" \"imageAllowFiles\": [\n" + " \"imageAllowFiles\": [\n" +
" \".png\",\n" + " \".png\",\n" +
" \".jpg\",\n" + " \".jpg\",\n" +

View File

@ -37,7 +37,7 @@
"catcherFieldName": "source", /* */ "catcherFieldName": "source", /* */
"catcherPathFormat": "image/{yyyy}{mm}{dd}/{time}{rand:6}", /* , */ "catcherPathFormat": "image/{yyyy}{mm}{dd}/{time}{rand:6}", /* , */
"catcherUrlPrefix": "", /* 访 */ "catcherUrlPrefix": "", /* 访 */
"catcherMaxSize": 2048000, /* B */ "catcherMaxSize": 104857600, /* B */
"catcherAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* */ "catcherAllowFiles": [".png", ".jpg", ".jpeg", ".gif", ".bmp"], /* */
/* */ /* */
"videoActionName": "uploadvideo", /* action */ "videoActionName": "uploadvideo", /* action */

View File

@ -122,21 +122,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert> </insert>
<insert id="insertBatchDictData"> <insert id="insertBatchDictData">
insert into sys_dict_data( insert into sys_dict_data(
<if test="dictDatas != null and dictDatas.size() > 0"> dict_sort,
<foreach collection="dictDatas" item="dictData" separator=","> dict_label,
<if test="dictData.dictSort != null">dict_sort,</if> dict_value,
<if test="dictData.dictLabel != null and dictData.dictLabel != ''">dict_label,</if> dict_type,
<if test="dictData.dictValue != null and dictData.dictValue != ''">dict_value,</if>
<if test="dictData.dictType != null and dictData.dictType != ''">dict_type,</if>
<if test="dictData.cssClass != null and dictData.cssClass != ''">css_class,</if>
<if test="dictData.listClass != null and dictData.listClass != ''">list_class,</if>
<if test="dictData.isDefault != null and dictData.isDefault != ''">is_default,</if>
<if test="dictData.status != null">status,</if>
<if test="dictData.remark != null and dictData.remark != ''">remark,</if>
<if test="dictData.createBy != null and dictData.createBy != ''">create_by,</if>
create_time create_time
</foreach>
</if>
) )
values values
<foreach collection="dictDatas" item="dictData" separator=","> <foreach collection="dictDatas" item="dictData" separator=",">

View File

@ -136,11 +136,12 @@ export default {
return return
} }
this.currentActive = value this.currentActive = value
if (value === 1) {
this.getContentByCategoryId(this.nav[value].id)
} else {
this.getContent() this.getContent()
} // if (value === 1) {
// this.getContentByCategoryId(this.nav[value].id)
// } else {
//
// }
}, },
getContentByCategoryId(id) { getContentByCategoryId(id) {
getListById(id).then(res => { getListById(id).then(res => {

View File

@ -14,12 +14,12 @@
<!-- <div class="left"><img src="../../assets/gw/home.png" alt="">--> <!-- <div class="left"><img src="../../assets/gw/home.png" alt="">-->
<!-- <p><a href="/gw">首页</a><i class="el-icon-arrow-right"></i> <span href="">中心概况</span></p>--> <!-- <p><a href="/gw">首页</a><i class="el-icon-arrow-right"></i> <span href="">中心概况</span></p>-->
<!-- </div>--> <!-- </div>-->
<div class="right"> <!-- <div class="right">-->
<div class="nav-item" v-for="(item, index) in nav" v-bind:class="[index === currentActive ? 'active' : '']" <!-- <div class="nav-item" v-for="(item, index) in nav" v-bind:class="[index === currentActive ? 'active' : '']"-->
@click="getCurrentActive(index)"> <!-- @click="getCurrentActive(index)">-->
{{ item.categoryName }} <!-- {{ item.categoryName }}-->
</div> <!-- </div>-->
</div> <!-- </div>-->
</div> </div>
</div> </div>
@ -31,11 +31,11 @@
<img src="../../assets/images/l_img.png" alt=""> <img src="../../assets/images/l_img.png" alt="">
</div> </div>
<!-- main --> <!-- main -->
<div v-for="(item, index) in nav " :key=index @click="goDeatail(item)"> <!-- <div v-for="(item, index) in nav " :key=index @click="goDeatail(item)">-->
<div class="about-conts-item1"> <div class="about-conts-item1">
<div class="neirong" v-html="pageContext"></div> <div class="neirong" v-html="pageContext"></div>
</div> </div>
</div> <!-- </div>-->
<!-- 专业平台介绍--> <!-- 专业平台介绍-->
<!-- <div class="ayptjs" v-show="currentActive == 0">--> <!-- <div class="ayptjs" v-show="currentActive == 0">-->
<!-- <div class="ayptjs">--> <!-- <div class="ayptjs">-->
@ -176,7 +176,7 @@ export default {
// }) // })
}, },
getContentDetail() { getContentDetail() {
this.routeParam.categoryId = this.nav[this.currentActive].id // this.routeParam.categoryId = this.nav[this.currentActive].id
getPageData(this.routeParam).then(response => { getPageData(this.routeParam).then(response => {
this.pageContext = response.data.list[0].contentDetail this.pageContext = response.data.list[0].contentDetail
}) })
@ -184,7 +184,7 @@ export default {
initPageData() { initPageData() {
getCategoryByParentId(this.routeParam.categoryId).then(res => { getCategoryByParentId(this.routeParam.categoryId).then(res => {
this.nav = res.data this.nav = res.data
this.categoryId = res.data[0].id this.categoryId = this.routeParam.categoryId
this.getContentDetail() this.getContentDetail()
}) })
}, },