Przeglądaj źródła

修改bug

修改bug
dangyunlong 6 dni temu
rodzic
commit
c2784d2291

+ 4 - 4
src/api/template.js

@@ -12,9 +12,9 @@ export function getWebsiteintel(data) {
 }
 
 //1.2 添加网站基本信息 如果只传入website_id,则验证是否已经关联导航池
-export function addWebsiteTemplateintel(data) {
+export function checkWebsiteBuild(data) {
   return request({
-    url: '/website/addWebsiteTemplateintel',
+    url: '/website/checkWebsiteBuild',
     method: 'post',
     data
   })
@@ -75,9 +75,9 @@ export function getWebsiteTemplateclassintel(data) {
 }
 
 //1.9 保存模板配置
-export function addWebsiteTemplate(data) {
+export function saveWebsiteTemplate(data) {
   return request({
-    url: '/website/addWebsiteTemplate',
+    url: '/public/saveWebsiteTemplate',
     method: 'post',
     data
   })

+ 12 - 8
src/store/modules/template.js

@@ -2,8 +2,8 @@
 import { getSiteInfo, getSiteCategory, getFooterCategoryList} from '@/api/cms'
 //自助建站的接口 用于添加基本信息
 import {
-    getWebsiteintel, addWebsiteTemplateintel, getAdminSiteInfo, upWebsiteTemplateintel, getAllTemplateClass, getWebsiteTemplateList, addWebsiteTemplateclassintel,
-    getWebsiteTemplateclassintel, addWebsiteTemplate, getWebsiteTemplateInfo, getWebsiteTemplateData, getAdminWebsiteFootAll, addTwinAdPlace
+    getWebsiteintel, checkWebsiteBuild, getAdminSiteInfo, upWebsiteTemplateintel, getAllTemplateClass, getWebsiteTemplateList, addWebsiteTemplateclassintel,
+    getWebsiteTemplateclassintel, saveWebsiteTemplate, getWebsiteTemplateInfo, getWebsiteTemplateData, getAdminWebsiteFootAll, addTwinAdPlace
 } from '@/api/template'
 
 import { Message,MessageBox } from 'element-ui'; //注意在这里引入是非常不符合规范的
@@ -161,6 +161,7 @@ const state = {
         adName: "",//广告名称
         titleName: "",//标题名称
         windowKey:0,//级联选择器的key
+        price:0//广告价格
     }
     //5.组件回显数据 start------------------------------------------------------------>
 }
@@ -252,6 +253,7 @@ const mutations = {
             if (state.editComponentType == 2) {
                 //state.componentViewData.adName = state.pageData.index[targetModuleIndex].content.componentList[data.sort].componentData.text;
                 state.componentViewData.adName = state.pageData.index[targetModuleIndex].content.ad.name;
+                state.componentViewData.price = state.pageData.index[targetModuleIndex].content.ad.price;                
             }
         }
         //pageStatus==2 分类页
@@ -268,7 +270,8 @@ const mutations = {
             }
             //2=设置广告名称
             if (state.editComponentType == 2) {
-                state.componentViewData.adName = state.pageData.list[targetModuleIndex].content.componentList[data.sort].componentData.text;
+                state.componentViewData.adName = state.pageData.list[targetModuleIndex].content.ad.name;
+                state.componentViewData.price = state.pageData.list[targetModuleIndex].content.ad.price; 
             }
         }
         //pageStatus==4 详情页
@@ -282,7 +285,8 @@ const mutations = {
             }
             //2=设置广告名称
             if (state.editComponentType == 2) {
-                state.componentViewData.adName = state.pageData.article[targetModuleIndex].content.componentList[data.sort].componentData.text;
+                state.componentViewData.adName = state.pageData.article[targetModuleIndex].content.ad.name;
+                state.componentViewData.price = state.pageData.article[targetModuleIndex].content.ad.price; 
             }
         }
         //pageStatus==5 搜索页
@@ -1571,9 +1575,9 @@ const actions = {
         })
     },
     //2.2 添加网站基本信息 如果只传入website_id,则验证是否已经关联导航池
-    addWebsiteTemplateintel({ commit }, data) {
+    checkWebsiteBuild({ commit }, data) {
         return new Promise((resolve, reject) => {
-            addWebsiteTemplateintel(data).then(response => {
+            checkWebsiteBuild(data).then(response => {
                 resolve(response)
             }).catch(error => {
                 reject(error)
@@ -1643,9 +1647,9 @@ const actions = {
         })
     },
     //2.9 保存模板
-    addWebsiteTemplate({ commit }, data) {
+    saveWebsiteTemplate({ commit }, data) {
         return new Promise((resolve, reject) => {
-            addWebsiteTemplate(data).then(response => {
+            saveWebsiteTemplate(data).then(response => {
                 resolve(response)
             }).catch(error => {
                 reject(error)

+ 13 - 13
src/views/dashboard/admin/index.vue

@@ -42,7 +42,7 @@
                                     <span @click="goToList(5)">{{ jobHuntingCount }}</span>
                                 </div>
                             </div>
-                            <!--<div class="topDataLi4">
+                            <div class="topDataLi4">
                                 <div class="topDataMain">
                                     <span @click="goToList(6)">待审核行政通知</span>
                                     <span @click="goToList(6)">{{noticeCount}}</span>
@@ -51,7 +51,7 @@
                                     <span @click="goToList(7)">待审核行政投诉</span>
                                     <span @click="goToList(7)">{{complaintCount}}</span>
                                 </div>
-                            </div> -->
+                            </div>
                         </div>
                     </div>
                 </el-col>
@@ -205,7 +205,7 @@
                                     <span @click="goToList(5)">{{ jobHuntingCount }}</span>
                                 </div>
                             </div>
-                            <!-- <div class="topDataLi4">
+                            <div class="topDataLi4">
                                 <div class="topDataMain">
                                     <span @click="goToList(6)">待审核行政通知</span>
                                     <span @click="goToList(6)">{{noticeCount}}</span>
@@ -214,7 +214,7 @@
                                     <span @click="goToList(7)">待审核行政投诉</span>
                                     <span @click="goToList(7)">{{complaintCount}}</span>
                                 </div>
-                            </div> -->
+                            </div>
                         </div>
                     </div>
                 </el-col>
@@ -295,7 +295,7 @@
                                     <span @click="goToList(3)">{{ bookCount }}</span>
                                 </div>
                             </div>
-                            <!-- <div class="topDataLi4">
+                            <div class="topDataLi4">
                                 <div class="topDataMain">
                                     <span @click="goToList(6)">待审核行政通知</span>
                                     <span @click="goToList(6)">{{noticeCount}}</span>
@@ -304,7 +304,7 @@
                                     <span @click="goToList(7)">待审核行政投诉</span>
                                     <span @click="goToList(7)">{{complaintCount}}</span>
                                 </div>
-                            </div> -->
+                            </div>
                         </div>
                     </div>
                 </el-col>
@@ -343,7 +343,7 @@
                         <div class="twbNumber">{{ allBookCount }}</div>
                     </div>
                 </el-col>
-                <!-- <el-col :xs="24" :sm="24" :lg="6">
+                <el-col :xs="24" :sm="24" :lg="6">
                     <div class="topWindowBox">
                         <div class="twbTitle">
                             <div class="twbIconbg bg8">
@@ -362,7 +362,7 @@
                             </div>
                         </div>
                     </div>
-                </el-col> -->
+                </el-col>
             </el-row>
 
             <!-- <div class="chartBox">
@@ -421,7 +421,7 @@
                                     <span @click="goToList(4)">{{ jobRecruitingCount }}</span>
                                 </div>
                             </div>
-                            <!--<div class="topDataLi4">
+                            <div class="topDataLi4">
                                 <div class="topDataMain">
                                     <span @click="goToList(6)">待审核行政通知</span>
                                     <span @click="goToList(6)">{{noticeCount}}</span>
@@ -430,7 +430,7 @@
                                     <span @click="goToList(7)">待审核行政投诉</span>
                                     <span @click="goToList(7)">{{complaintCount}}</span>
                                 </div>
-                            </div> -->
+                            </div>
                         </div>
                     </div>
                 </el-col>
@@ -511,7 +511,7 @@
                                     <span @click="goToList(3)">{{ bookCount }}</span>
                                 </div>
                             </div>
-                            <!-- <div class="topDataLi4">
+                            <div class="topDataLi4">
                                 <div class="topDataMain">
                                     <span @click="goToList(6)">待审核行政通知</span>
                                     <span @click="goToList(6)">{{noticeCount}}</span>
@@ -520,7 +520,7 @@
                                     <span @click="goToList(7)">待审核行政投诉</span>
                                     <span @click="goToList(7)">{{complaintCount}}</span>
                                 </div>
-                            </div> -->
+                            </div>
                         </div>
                     </div>
                 </el-col>
@@ -791,7 +791,7 @@ export default {
     .topDataLi2,
     .topDataLi3 {
         width: 359px;
-        //border-right: 1px solid #fff;
+        border-right: 1px solid #fff;
         height: 70px;
 
         .topDataMainCenter:nth-child(1) {

+ 9 - 9
src/views/role/roleList.vue

@@ -206,15 +206,15 @@ export default {
         console.log("当前删除:" + id)
         this.$store.dispatch('userRole/delRole',{id:id}).then(res=> {
           this.getData();
-          this.$message({
-            type: 'success',
-            message: '删除成功!'
-          });
-        }).catch(() => {
-          this.$message({
-            type: 'warning',
-            message: '网络错误,请重试!'
-          });
+          
+          if(res.code==200){
+            this.$message({
+                type: 'success',
+                message: '删除成功!'
+            });
+          }else{
+            this.$message.error(res.message);
+          }
         })
       }).catch(() => {
         this.$message({

+ 380 - 0
src/views/template/page/pageClass.vue

@@ -0,0 +1,380 @@
+<template>
+    <div>
+        <!-- 全局组件:页头 -->
+        <div :class="['FixedModuleBox', { sectorBorder: this.$store.state.template.previewStatus == false }]">
+            <headSector />
+        </div>
+        <!-- 全局组件:导航 -->
+        <div :class="['FixedModuleBox', { sectorBorder: this.$store.state.template.previewStatus == false }]">
+            <menuSector />
+        </div>
+        <!-- 无内容占位符 -->
+        <!-- <div :class="['FixedMainModuleBox', { FixedMainModuleBoxBorder: this.$store.state.template.previewStatus == false }]"
+            v-if="this.$store.state.template.pageData.index.length == 0">
+            <img src="@/assets/template/creat.png">
+            <div>请点击一个左侧板块,开始您的网站创建</div>
+        </div> -->
+        <!--使用gridKey来强制更新视图-->
+        <div 
+            id="content" 
+            class="canvasBox"
+        >
+            <grid-layout 
+                :auto-size="true"
+                :class="this.$store.state.template.pageData.index.length == 0 ? 'FixedMainModuleBox' : 'FixedMainModuleBoxAuto'"
+                ref="gridlayout" 
+                :layout="this.$store.state.template.pageData.index"
+                :layout.sync="this.$store.state.template.pageData.index" 
+                :col-num="12" 
+                :row-height="rowHeight"
+                :margin="[0,0]" 
+                :is-draggable="true" 
+                :is-resizable="true" 
+                :key="this.$store.state.template.gridKey"
+            >
+                <grid-item 
+                    v-for="(item, index) in this.$store.state.template.pageData.index" 
+                    :key="item.i" 
+                    :i="item.i"
+                    :x="item.x" 
+                    :y="item.y" 
+                    :w="item.w" 
+                    :h="item.h" 
+                    :is-resizable="false"
+                >
+                    <div class="grid-item-content">
+                        <!--右侧悬浮按钮-->
+                        <div class="grid-tools-menu" v-if="$store.state.template.previewStatus == false">
+                            <!-- 移动板块-->
+                            <!-- <span @click="moveModule(item.i,'up')"><i class="el-icon-sort-up"></i></span>
+                            <span @click="moveModule(item.i,'down')"><i class="el-icon-sort-down"></i></span> -->
+                            <span @click="deleteModule(item.i, item.dataSort)"><i class="el-icon-close"></i></span>
+                        </div>
+                        <!-- 1.广告通栏 -->
+                        <div v-if="item.type == 'adSector'" class="moduleBox">
+                            <adSector :dataSort="item.dataSort" :id="item.i" :y="item.y" />
+                        </div>
+                         <!-- 2.头条通栏 -->
+                         <div v-if="item.type == 'headLineSector'" class="moduleBox">
+                            <headLineSector :dataSort="item.dataSort" :id="item.i" :y="item.y" />
+                        </div>
+                        <!-- 3.焦点图通栏 -->
+                        <div v-if="item.type == 'bannerSector'" class="moduleBox">
+                            <bannerSector :dataSort="item.dataSort" :id="item.i" :y="item.y" />
+                        </div>
+                        <!-- 4.新闻多图组合1 -->
+                        <div v-if="item.type == 'manyPictureSector'" class="moduleBox">
+                            <manyPictureSector :dataSort="item.dataSort" :id="item.i" :y="item.y" />
+                        </div>
+                        <!-- 5.新闻多图组合2 -->
+                        <div v-if="item.type == 'commentSector'" class="moduleBox">
+                            <commentSector :dataSort="item.dataSort" :id="item.i" :y="item.y" />
+                        </div>
+                        <!-- 6.新闻多图组合3 -->
+                        <div v-if="item.type == 'listSector'" class="moduleBox">
+                            <listSector :dataSort="item.dataSort" :id="item.i" :y="item.y" />
+                        </div>
+                        <!-- 7.带广告新闻组合 -->
+                        <div v-if="item.type == 'onlyImgSector'" class="moduleBox">
+                            <onlyImgSector :dataSort="item.dataSort" :id="item.i" :y="item.y" />
+                        </div>
+                    </div>
+                </grid-item>
+            </grid-layout>
+        </div>
+
+        <!-- 全局组件:页尾 -->
+        <div class="FixedModuleBoxBottom">
+            <footerSector />
+        </div>
+    </div>
+</template>
+
+<script>
+//页面公用组件 start------------------------------------------------------------>
+//引入公用样式
+import '@/styles/global.less';
+import { GridLayout, GridItem } from "vue-grid-layout";
+//1.页面公用组件 end------------------------------------------------------------>
+
+//引入自助建站组件 start------------------------------------------------------------>
+//全局组件
+//顶部
+import headSector from '../style/sector/head/1.vue';
+//一级菜单导肮
+import menuSector from '../style/sector/menu/1.vue';
+//底部
+import footerSector from '../style/sector/foot/1.vue';
+//通栏组件 开始:
+//通栏广告
+import adSector from '../style/sector/body/ad/1200x90/1.vue';
+//首页头条
+import headLineSector from '../style/sector/body/index/headLine/1200x140/1.vue';
+//焦点图
+import bannerSector from '../style/sector/body/index/banner/1200x410/1.vue';
+//新闻图文组合1
+import manyPictureSector from '../style/sector/body/index/list/1200x470/1.vue';
+//新闻图文组合2
+import commentSector from '../style/sector/body/index/list/1200x470/2.vue';
+//新闻图文组合3
+import listSector from '../style/sector/body/index/list/1200x980/1.vue';
+//带广告图文组合
+import onlyImgSector from '../style/sector/body/index/list/1200x480/1.vue';
+//2.引入自助建站组件 end------------------------------------------------------------>
+
+
+export default {
+    components: {
+        GridLayout,//画布
+        GridItem,//画布组件
+        headSector,//全局页头
+        menuSector,//全局导航
+        adSector,//通栏广告
+        headLineSector,//首页头条
+        bannerSector,//焦点图
+        manyPictureSector,//新闻图文组合1
+        commentSector,//新闻图文组合2
+        listSector,//新闻图文组合3
+        onlyImgSector,
+        footerSector
+    },
+    data() {
+        return {
+            //0.全局配置 start------------------------------------------------------------>
+            windowStatus: false,
+            rowHeight: 10,
+            //0.全局配置 end------------------------------------------------------------>
+            //1.编辑模块 start------------------------------------------------------------>
+            formLabelWidth: '120px',
+            editModule: "",//待编辑的模块
+            //1.编辑模块 end------------------------------------------------------------>
+        }
+    },
+    mounted() {
+        //必备操作
+        //1.获得vuex中的鼠标对象
+        let mouseObj = this.$store.state.template.mouseXY;
+        //2.获得gridlayout对象
+        this.$store.commit('template/setGridlayoutObj', this.$refs.gridlayout);
+        //3.监听鼠标按住以后的移动事件
+        document.addEventListener("dragover", function (e, store) {
+            mouseObj.x = e.clientX;
+            mouseObj.y = e.clientY;
+            // mouseXY.x = e.clientX;
+            // mouseXY.y = e.clientY;
+        }, false);
+    },
+    methods: {
+        //0.全局操作 start ------------------------------------------------------------>
+        //0.1上一步  
+        goStyle() {
+            this.$router.push({
+                path: '/templateStyle',
+                query: {
+                    id: this.editId
+                }
+            });
+        },
+        //0.2下一步
+        gotoList() {
+            this.$router.push({
+                path: '/templateList'
+            });
+        },
+        //0.全局操作 end ------------------------------------------------------------>
+
+        //1.模块操作 start ------------------------------------------------------------>
+        //1.1 移动模块
+        moveModule(i, moveType) {
+            this.$store.commit('template/moveModule', { i: i, moveType: moveType });
+        },
+        //1.2 删除模块
+        deleteModule(i, dataSort) {
+            let data = {
+                i: i,
+                dataSort: dataSort
+            }
+            this.$store.commit('template/deleteModule', data);
+        },
+        //1.3 打开弹出框
+        openWindow(item) {
+            this.editModule = item.i;
+            this.windowStatus = true;
+        },
+        //1.4 关闭弹出框
+        closeWindow() {
+            this.windowStatus = false;
+        }
+        //1.模块操作 end ------------------------------------------------------------>
+    }
+}
+</script>
+
+<style scoped lang="less">
+//拖拽demo
+.droppable-element {
+    width: 150px;
+    text-align: center;
+    background: #fdd;
+    border: 1px solid black;
+    margin: 10px 0;
+    padding: 10px;
+}
+
+//模块 start------------------------------------------------------------> 
+.sectorBorder {
+    border: 2px dashed #eee;
+}
+
+.moduleBox {
+    display: flex;
+    width: 100%;
+    height: 100%;
+    position: relative;
+    justify-content: space-between;
+    box-sizing: border-box;
+    //border: 2px dashed #eee;
+}
+
+.moduleBoxBorder {
+    border: 2px dashed #eee;
+}
+
+//固定的模块
+.FixedModuleBox {
+    width: 100%;
+    //margin-bottom: 20px;
+    //border: 2px dashed #eee;
+}
+
+.FixedModuleBoxBottom {
+    width: 100%;
+}
+
+.FixedMainModuleBox {
+    width: 100%;
+    font-size: 18px;
+    color: #999;
+    text-align: center;
+
+    img {
+        margin-bottom: 20px;
+    }
+
+    padding: 100px;
+    //background: #F5F7FB;
+    //margin-bottom: 20px;
+}
+
+.FixedMainModuleBoxBorder {
+    border: 2px dashed #eee;
+}
+
+//模块 end------------------------------------------------------------> 
+//栅格布局 start------------------------------------------------------------> 
+
+.grid-item-content {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    background-color: #fff;
+    height: 100%;
+    overflow: hidden;
+    position: relative;
+
+    .grid-tools-menu {
+        position: absolute;
+        top: 0;
+        right:10px;
+        z-index: 99;
+        display: flex;
+        align-items: center;
+        justify-content: center;
+
+        span {
+            width: 38px;
+            height: 38px;
+            line-height: 38px;
+            text-align: center;
+            font-size: 30px;
+            cursor: pointer;
+            color: #999;
+            border: 2px dashed #999;
+            border-radius: 8px;
+            background-color: #fff1cc;
+            // display: flex;
+            // align-items: center;
+            // justify-content: center;
+            // cursor: pointer;
+            // margin: 5px;
+            // color: #000;
+            // background: #fff;
+            // border: 1px solid #000;
+            // border-radius: 5px;
+            // width: 24px;
+            // height: 24px;
+            // line-height: 24px;
+            // text-align: center;
+            // font-size: 14px;
+            // transition: all 0.3s;
+            // &:hover {
+            //   color: #fff;
+            //   background: #000;
+            // }
+            transition: all 0.3s;
+
+            &:hover {
+                color: #333;
+            }
+        }
+    }
+}
+
+.grid-layout {
+    grid-gap: 0;
+    row-gap: 0;
+}
+
+//画布调整
+.canvasBox {
+    margin-top: 20px;
+}
+
+.FixedMainModuleBox {
+  min-height: 450px;
+  background-color: #fff;
+  background: url('../../../assets/template/creat.png') no-repeat center center;
+}
+
+.FixedMainModuleBoxAuto {
+  min-height: 450px;
+  background-color: #fff;
+}
+
+//占位元素颜色
+::v-deep .vue-grid-placeholder {
+  background: #ccc !important;
+  opacity: 0.3;
+}
+
+//栅格布局 end------------------------------------------------------------> 
+//执行v-deep穿透scope选择器 start------------------------------------------------------------>*/
+::v-deep .custom-form-item>.el-form-item__label {
+    line-height: 140px !important;
+}
+
+::v-deep .custom-textarea .el-textarea__inner {
+    resize: none;
+    /* 禁止用户拖拽调整大小 */
+}
+
+::v-deep .custom-align-right .el-form-item__label {
+    text-align: right;
+    /* 设置标签文字右对齐 */
+}
+
+::v-deep .shadowBox .el-button--mini.is-circle {
+    border-radius: 50% !important;
+}
+
+//执行v-deep穿透scope选择器 end------------------------------------------------------------>*/</style>

+ 19 - 2
src/views/template/public/checkWindow.vue

@@ -200,9 +200,26 @@ export default {
             if(this.$store.state.template.webSiteData.ad.aloneList.length>0){}
             if(this.$store.state.template.webSiteData.ad.aloneArticle.length>0){}
 
-            console.log(data)
+            //第二步:创建广告位
             this.$store.dispatch('template/addTwinAdPlace',data).then(res=>{
-                console.log(res)
+                if(res.code==200){
+                    //创建成功后,开始保存模板
+                    //第三步:保存网站
+                    let data = JSON.stringify(this.$store.state.template.webSiteData);
+                    this.$store.dispatch('template/saveWebsiteTemplate',{
+                        website_id:this.$route.query.website_id,
+                        template_data:data
+                    }).then(res=>{
+                        if(res.code==200){
+                            console.log("保存成功!")
+                        }else{
+                            this.$message.error(res.message);
+                        }
+                    })
+                }else{
+                    //创建广告位失败
+                    this.$message.error(res.message);
+                }
             });
         }
     },

+ 6 - 0
src/views/template/public/editWindow.vue

@@ -225,8 +225,14 @@ export default {
         getKey(newVal, oldVal) {
             console.log("级联选择器key改变了!")
             console.log(newVal, oldVal)
+            //更新级联选择器
             this.form.type1data.pid_arr = this.$store.state.template.componentViewData.pid_arr;
             this.parentKey ++;
+            if(this.$store.state.template.componentViewData.price==0){
+                this.form.type3data.price = "";
+            }else{
+                this.form.type3data.price = this.$store.state.template.componentViewData.price;
+            }
         }
     },
     methods: {

+ 1 - 1
src/views/template/templateBase.vue

@@ -350,7 +350,7 @@ export default {
             //console.log(this.form);
             this.$refs.form.validate(valid => {
                 if (valid) {
-                    this.$store.dispatch('template/addWebsiteTemplateintel', this.form).then(res => {
+                    this.$store.dispatch('template/checkWebsiteBuild', this.form).then(res => {
                         if (res.code == 200) {
                             this.$message.success('网站基本信息保存成功!');
                             //跳转到风格选择页面

+ 3 - 0
src/views/template/templateCreat.vue

@@ -33,6 +33,7 @@
         <div v-if="this.$store.state.template.showPage.aloneArticle==true" :class="['pageTabsItem', this.$store.state.template.pageStatus === 7 ? 'active' : '']" @click="openPage(7)">自定义详情页</div>
       </div>
       <pageIndex v-if="this.$store.state.template.pageStatus == 1"/>
+      <pageClass v-if="this.$store.state.template.pageStatus == 2"/>
       <pageList v-if="this.$store.state.template.pageStatus == 3"/>
       <pageArticle v-if="this.$store.state.template.pageStatus == 4"/>
     </div>
@@ -71,6 +72,7 @@ import checkWindow from './public/checkWindow.vue';
 
 //页面组件 start------------------------------------------------------------>
 import pageIndex from './page/pageIndex.vue';
+import pageClass from './page/pageClass.vue';
 import pageList from './page/pageList.vue';
 import pageArticle from './page/pageArticle.vue';
 //页面组件 end------------------------------------------------------------>
@@ -79,6 +81,7 @@ export default {
   components: {
     //引入页面组件
     pageIndex,
+    pageClass,
     pageList,
     pageArticle,
     editWindow,

+ 1 - 1
src/views/template/templateList.vue

@@ -196,7 +196,7 @@ export default {
     //2.跳转操作 start ------------------------------------------------------------>
     //构建网站
     creatWebsite(website_id){
-      this.$store.dispatch('template/addWebsiteTemplateintel',{website_id:website_id}).then(res=> {
+      this.$store.dispatch('template/checkWebsiteBuild',{website_id:website_id}).then(res=> {
         if(res.code!=200){
           this.$message.error(res.message)
         }else{