|
@@ -1,8 +1,8 @@
|
|
|
-
|
|
|
-import {getSiteInfo,getSiteCategory,selectWebsiteDepartment,selectWebsiteArea,getWebsiteArticlesList,selectWebsiteArticleInfo,getWebsiteCategory} from '@/api/cms'
|
|
|
+
|
|
|
+import {getSiteInfo,getSiteCategory,getFooterCategoryList,selectWebsiteArea,selectWebsiteDepartment } from '@/api/cms'
|
|
|
|
|
|
import {getWebsiteintel,addWebsiteTemplateintel,getWebsiteTemplateintel,upWebsiteTemplateintel,getAllTemplateClass,getWebsiteTemplateList,addWebsiteTemplateclassintel,
|
|
|
- getWebsiteTemplateclassintel} from '@/api/template'
|
|
|
+ getWebsiteTemplateclassintel,addWebsiteTemplate,getWebsiteTemplateInfo,getWebsiteTemplateData} from '@/api/template'
|
|
|
|
|
|
import { Message } from 'element-ui';
|
|
|
|
|
@@ -10,11 +10,15 @@ import Vue from 'vue';
|
|
|
|
|
|
|
|
|
|
|
|
-import randomTemplateJson from '@/utils/templateJson/index/1.js';
|
|
|
+
|
|
|
+import randomIndex1 from '@/utils/templateJson/index/style1/1.js';
|
|
|
+
|
|
|
+import randomIndex2 from '@/utils/templateJson/index/style1/2.js';
|
|
|
|
|
|
const state = {
|
|
|
|
|
|
editWebsiteId: "",
|
|
|
+ editWebsiteClass:"",
|
|
|
stepStatus: true,
|
|
|
|
|
|
|
|
@@ -23,12 +27,23 @@ const state = {
|
|
|
menuType:1,
|
|
|
previewStatus:false,
|
|
|
gridKey:0,
|
|
|
+ loading:false,
|
|
|
+ ad_id:"",
|
|
|
+ showPage:{
|
|
|
+ index:true,
|
|
|
+ class:false,
|
|
|
+ list:true,
|
|
|
+ article:true,
|
|
|
+ search:false,
|
|
|
+ aloneList:false,
|
|
|
+ aloneArticle:false
|
|
|
+ },
|
|
|
pageData: {
|
|
|
index:[
|
|
|
|
|
|
],
|
|
|
class:[],//分类页
|
|
|
- list:[],
|
|
|
+ list:[],
|
|
|
article:[],
|
|
|
search:[],
|
|
|
aloneList:[],
|
|
@@ -50,7 +65,7 @@ const state = {
|
|
|
market:[],
|
|
|
county:[]
|
|
|
},
|
|
|
- departmentList:"",
|
|
|
+ departmentList:[],
|
|
|
|
|
|
|
|
|
|
|
@@ -85,11 +100,11 @@ const state = {
|
|
|
webSiteData:{
|
|
|
|
|
|
base:{
|
|
|
- websiteId:1,
|
|
|
+ websiteId:"",
|
|
|
},
|
|
|
|
|
|
style:{
|
|
|
- styleId:1,
|
|
|
+ styleId:"",
|
|
|
},
|
|
|
|
|
|
template:{
|
|
@@ -103,6 +118,7 @@ const state = {
|
|
|
aloneArticle:[],
|
|
|
}
|
|
|
},
|
|
|
+ canSubmit:false,
|
|
|
|
|
|
|
|
|
|
|
@@ -121,6 +137,10 @@ const mutations = {
|
|
|
setEditWebsiteId(state,id){
|
|
|
state.editWebsiteId = id;
|
|
|
},
|
|
|
+
|
|
|
+ setClassNumber(state,id){
|
|
|
+ state.editWebsiteClass = id;
|
|
|
+ },
|
|
|
|
|
|
showStepStatus(state){
|
|
|
state.stepStatus = true;
|
|
@@ -251,6 +271,20 @@ const mutations = {
|
|
|
|
|
|
if(state.pageStatus == 7){}
|
|
|
},
|
|
|
+
|
|
|
+ getRandomAdid(state){
|
|
|
+
|
|
|
+ const websiteId = state.editWebsiteId;
|
|
|
+
|
|
|
+ const randomLettersOne = Math.random().toString(36).substring(2, 5);
|
|
|
+
|
|
|
+ const timestamp = Date.now();
|
|
|
+
|
|
|
+ const randomLettersTwo = Math.random().toString(36).substring(2, 7);
|
|
|
+
|
|
|
+ const ad_id = `${websiteId}${randomLettersOne}${timestamp}${randomLettersTwo}`;
|
|
|
+ state.ad_id = ad_id;
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|
|
@@ -267,6 +301,7 @@ const mutations = {
|
|
|
Message.error('最多只能添加10个模块!');
|
|
|
return;
|
|
|
}else{
|
|
|
+ console.log(data.jsonData)
|
|
|
|
|
|
if(data.source == "click"){
|
|
|
console.log("通过点击添加一个板块");
|
|
@@ -279,19 +314,37 @@ const mutations = {
|
|
|
console.log(data);
|
|
|
|
|
|
let dataSort = state.pageData.index.length;
|
|
|
-
|
|
|
- state.pageData.index.push({
|
|
|
-
|
|
|
- i: id,
|
|
|
- x: 0,
|
|
|
- y: maxY + 1,
|
|
|
- w: 12,
|
|
|
- h: data.h,
|
|
|
- type: data.type,
|
|
|
-
|
|
|
- content:data.jsonData,
|
|
|
- dataSort:dataSort
|
|
|
- });
|
|
|
+
|
|
|
+ if(data.jsonData.componentList[0].component_type==3){
|
|
|
+ this.commit("template/getRandomAdid")
|
|
|
+
|
|
|
+ state.pageData.index.push({
|
|
|
+
|
|
|
+ i: id,
|
|
|
+ x: 0,
|
|
|
+ y: maxY + 1,
|
|
|
+ w: 12,
|
|
|
+ h: data.h,
|
|
|
+ type: data.type,
|
|
|
+ adid: state.ad_id,
|
|
|
+
|
|
|
+ content:data.jsonData,
|
|
|
+ dataSort:dataSort,
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ state.pageData.index.push({
|
|
|
+
|
|
|
+ i: id,
|
|
|
+ x: 0,
|
|
|
+ y: maxY + 1,
|
|
|
+ w: 12,
|
|
|
+ h: data.h,
|
|
|
+ type: data.type,
|
|
|
+
|
|
|
+ content:data.jsonData,
|
|
|
+ dataSort:dataSort,
|
|
|
+ });
|
|
|
+ }
|
|
|
console.log("当前添加模块的dataSort为:" + dataSort);
|
|
|
|
|
|
console.log(state.pageData.index);
|
|
@@ -310,19 +363,37 @@ const mutations = {
|
|
|
console.log(data);
|
|
|
|
|
|
let dataSort = state.pageData.index.length;
|
|
|
-
|
|
|
- state.pageData.index.push({
|
|
|
-
|
|
|
- i: id,
|
|
|
- x: data.x,
|
|
|
- y: data.y,
|
|
|
- w: 12,
|
|
|
- h: data.h,
|
|
|
- type: data.type,
|
|
|
-
|
|
|
- content:data.jsonData,
|
|
|
- dataSort:dataSort
|
|
|
- });
|
|
|
+
|
|
|
+ if(data.jsonData.componentList[0].component_type==3){
|
|
|
+ this.commit("template/getRandomAdid")
|
|
|
+
|
|
|
+ state.pageData.index.push({
|
|
|
+
|
|
|
+ i: id,
|
|
|
+ x: 0,
|
|
|
+ y: maxY + 1,
|
|
|
+ w: 12,
|
|
|
+ h: data.h,
|
|
|
+ type: data.type,
|
|
|
+ adid: state.ad_id,
|
|
|
+
|
|
|
+ content:data.jsonData,
|
|
|
+ dataSort:dataSort,
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ state.pageData.index.push({
|
|
|
+
|
|
|
+ i: id,
|
|
|
+ x: 0,
|
|
|
+ y: maxY + 1,
|
|
|
+ w: 12,
|
|
|
+ h: data.h,
|
|
|
+ type: data.type,
|
|
|
+
|
|
|
+ content:data.jsonData,
|
|
|
+ dataSort:dataSort,
|
|
|
+ });
|
|
|
+ }
|
|
|
console.log("当前添加模块的dataSort为:" + dataSort);
|
|
|
|
|
|
console.log(state.pageData.index);
|
|
@@ -357,19 +428,37 @@ const mutations = {
|
|
|
console.log(data);
|
|
|
|
|
|
let dataSort = state.pageData.list.length;
|
|
|
-
|
|
|
-
|
|
|
- state.pageData.list.push({
|
|
|
- i: id,
|
|
|
- x: 0,
|
|
|
- y: maxY + 1,
|
|
|
- w: 12,
|
|
|
- h: data.h,
|
|
|
- type: data.type,
|
|
|
- content:data.jsonData,
|
|
|
- dataSort:dataSort
|
|
|
- });
|
|
|
-
|
|
|
+
|
|
|
+ if(data.jsonData.componentList[0].component_type==3){
|
|
|
+ this.commit("template/getRandomAdid")
|
|
|
+
|
|
|
+ state.pageData.list.push({
|
|
|
+
|
|
|
+ i: id,
|
|
|
+ x: 0,
|
|
|
+ y: maxY + 1,
|
|
|
+ w: 12,
|
|
|
+ h: data.h,
|
|
|
+ type: data.type,
|
|
|
+ adid: state.ad_id,
|
|
|
+
|
|
|
+ content:data.jsonData,
|
|
|
+ dataSort:dataSort,
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ state.pageData.list.push({
|
|
|
+
|
|
|
+ i: id,
|
|
|
+ x: 0,
|
|
|
+ y: maxY + 1,
|
|
|
+ w: 12,
|
|
|
+ h: data.h,
|
|
|
+ type: data.type,
|
|
|
+
|
|
|
+ content:data.jsonData,
|
|
|
+ dataSort:dataSort,
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
@@ -385,19 +474,37 @@ const mutations = {
|
|
|
console.log(data);
|
|
|
|
|
|
let dataSort = state.pageData.list.length;
|
|
|
-
|
|
|
- state.pageData.list.push({
|
|
|
-
|
|
|
- i: id,
|
|
|
- x: data.x,
|
|
|
- y: data.y,
|
|
|
- w: 12,
|
|
|
- h: data.h,
|
|
|
- type: data.type,
|
|
|
-
|
|
|
- content:data.jsonData,
|
|
|
- dataSort:dataSort
|
|
|
- });
|
|
|
+
|
|
|
+ if(data.jsonData.componentList[0].component_type==3){
|
|
|
+ this.commit("template/getRandomAdid")
|
|
|
+
|
|
|
+ state.pageData.list.push({
|
|
|
+
|
|
|
+ i: id,
|
|
|
+ x: 0,
|
|
|
+ y: maxY + 1,
|
|
|
+ w: 12,
|
|
|
+ h: data.h,
|
|
|
+ type: data.type,
|
|
|
+ adid: state.ad_id,
|
|
|
+
|
|
|
+ content:data.jsonData,
|
|
|
+ dataSort:dataSort,
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ state.pageData.list.push({
|
|
|
+
|
|
|
+ i: id,
|
|
|
+ x: 0,
|
|
|
+ y: maxY + 1,
|
|
|
+ w: 12,
|
|
|
+ h: data.h,
|
|
|
+ type: data.type,
|
|
|
+
|
|
|
+ content:data.jsonData,
|
|
|
+ dataSort:dataSort,
|
|
|
+ });
|
|
|
+ }
|
|
|
console.log("当前添加模块的dataSort为:" + dataSort);
|
|
|
|
|
|
console.log(state.pageData.list);
|
|
@@ -418,6 +525,14 @@ const mutations = {
|
|
|
Message.error('最多只能添加10个模块!');
|
|
|
return;
|
|
|
}else{
|
|
|
+
|
|
|
+ if(data.jsonData.componentList[0].component_type==3){
|
|
|
+
|
|
|
+ this.commit("template/getRandomAdid");
|
|
|
+ console.log("添加广告模块!id为:" + state.ad_id)
|
|
|
+ data.jsonData.componentList[0].componentData.ad_id = state.ad_id;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if(data.source == "click"){
|
|
|
console.log("通过点击添加一个板块");
|
|
@@ -430,19 +545,37 @@ const mutations = {
|
|
|
console.log(data);
|
|
|
|
|
|
let dataSort = state.pageData.article.length;
|
|
|
-
|
|
|
-
|
|
|
- state.pageData.article.push({
|
|
|
- i: id,
|
|
|
- x: 0,
|
|
|
- y: maxY + 1,
|
|
|
- w: 12,
|
|
|
- h: data.h,
|
|
|
- type: data.type,
|
|
|
- content:data.jsonData,
|
|
|
- dataSort:dataSort
|
|
|
- });
|
|
|
-
|
|
|
+
|
|
|
+ if(data.jsonData.componentList[0].component_type==3){
|
|
|
+ this.commit("template/getRandomAdid")
|
|
|
+
|
|
|
+ state.pageData.article.push({
|
|
|
+
|
|
|
+ i: id,
|
|
|
+ x: 0,
|
|
|
+ y: maxY + 1,
|
|
|
+ w: 12,
|
|
|
+ h: data.h,
|
|
|
+ type: data.type,
|
|
|
+ adid: state.ad_id,
|
|
|
+
|
|
|
+ content:data.jsonData,
|
|
|
+ dataSort:dataSort,
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ state.pageData.article.push({
|
|
|
+
|
|
|
+ i: id,
|
|
|
+ x: 0,
|
|
|
+ y: maxY + 1,
|
|
|
+ w: 12,
|
|
|
+ h: data.h,
|
|
|
+ type: data.type,
|
|
|
+
|
|
|
+ content:data.jsonData,
|
|
|
+ dataSort:dataSort,
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
@@ -458,19 +591,37 @@ const mutations = {
|
|
|
console.log(data);
|
|
|
|
|
|
let dataSort = state.pageData.article.length;
|
|
|
-
|
|
|
- state.pageData.article.push({
|
|
|
-
|
|
|
- i: id,
|
|
|
- x: data.x,
|
|
|
- y: data.y,
|
|
|
- w: 12,
|
|
|
- h: data.h,
|
|
|
- type: data.type,
|
|
|
-
|
|
|
- content:data.jsonData,
|
|
|
- dataSort:dataSort
|
|
|
- });
|
|
|
+
|
|
|
+ if(data.jsonData.componentList[0].component_type==3){
|
|
|
+ this.commit("template/getRandomAdid")
|
|
|
+
|
|
|
+ state.pageData.article.push({
|
|
|
+
|
|
|
+ i: id,
|
|
|
+ x: 0,
|
|
|
+ y: maxY + 1,
|
|
|
+ w: 12,
|
|
|
+ h: data.h,
|
|
|
+ type: data.type,
|
|
|
+ adid: state.ad_id,
|
|
|
+
|
|
|
+ content:data.jsonData,
|
|
|
+ dataSort:dataSort,
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ state.pageData.article.push({
|
|
|
+
|
|
|
+ i: id,
|
|
|
+ x: 0,
|
|
|
+ y: maxY + 1,
|
|
|
+ w: 12,
|
|
|
+ h: data.h,
|
|
|
+ type: data.type,
|
|
|
+
|
|
|
+ content:data.jsonData,
|
|
|
+ dataSort:dataSort,
|
|
|
+ });
|
|
|
+ }
|
|
|
console.log("当前添加模块的dataSort为:" + dataSort);
|
|
|
|
|
|
console.log(state.pageData.article);
|
|
@@ -1167,6 +1318,12 @@ const mutations = {
|
|
|
formatTemplateInfo(state, data) {
|
|
|
|
|
|
let clonedData = JSON.parse(JSON.stringify(data));
|
|
|
+
|
|
|
+ for(let item of clonedData.data){
|
|
|
+ if(item.adid){
|
|
|
+ item.content.componentList[0].componentData.ad_id = item.adid;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
clonedData.data.sort((a, b) => a.y - b.y);
|
|
|
|
|
@@ -1204,24 +1361,48 @@ const mutations = {
|
|
|
this.commit('template/formatTemplateInfo',{data:state.pageData.list,type:"list"});
|
|
|
|
|
|
this.commit('template/formatTemplateInfo',{data:state.pageData.article,type:"article"});
|
|
|
- console.log(state.webSiteData);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ state.webSiteData.base.websiteId = state.editWebsiteId;
|
|
|
+ state.webSiteData.style.styleId = state.editWebsiteClass;
|
|
|
},
|
|
|
|
|
|
randomTemplate(state){
|
|
|
- console.log("随机生成模板");
|
|
|
- const randomIndex = Math.floor(Math.random() * 3);
|
|
|
+ state.loading = true;
|
|
|
+ const randomIndex = Math.floor(Math.random() * 2);
|
|
|
console.log(`随机生成的数字是: ${randomIndex}`);
|
|
|
-
|
|
|
- Message.warning("该功能研发中");
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
- if (state.pageStatus == 1) {}
|
|
|
+ if (state.pageStatus == 1) {
|
|
|
+
|
|
|
+ Vue.set(state.pageData, 'index', []);
|
|
|
+
|
|
|
+ const newData1 = JSON.parse(JSON.stringify(randomIndex1));
|
|
|
+ const newData2 = JSON.parse(JSON.stringify(randomIndex2));
|
|
|
+ if (randomIndex == 0) {
|
|
|
+ Vue.set(state.pageData, 'index', newData1);
|
|
|
+ }
|
|
|
+ if (randomIndex == 1) {
|
|
|
+ Vue.set(state.pageData, 'index', newData2);
|
|
|
+ }
|
|
|
+ state.loading = false;
|
|
|
+ }
|
|
|
|
|
|
if (state.pageStatus == 2) {}
|
|
|
|
|
|
- if (state.pageStatus == 3) {}
|
|
|
+ if (state.pageStatus == 3) {
|
|
|
+ Message.warning("暂无模板可用!");
|
|
|
+ state.loading = false;
|
|
|
+ }
|
|
|
|
|
|
- if (state.pageStatus == 4) {}
|
|
|
+ if (state.pageStatus == 4) {
|
|
|
+ Message.warning("暂无模板可用!");
|
|
|
+ state.loading = false;
|
|
|
+ }
|
|
|
|
|
|
if (state.pageStatus == 5) {}
|
|
|
|
|
@@ -1229,6 +1410,63 @@ const mutations = {
|
|
|
|
|
|
if (state.pageStatus == 7) {}
|
|
|
},
|
|
|
+
|
|
|
+ IntegrityCheck(state){
|
|
|
+
|
|
|
+ state.canSubmit = true;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if(state.showPage.index == true){
|
|
|
+ if(state.template.index == []){
|
|
|
+ state.canSubmit = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(state.showPage.class == true){
|
|
|
+ if(state.template.class == []){
|
|
|
+ state.canSubmit = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(state.showPage.list == true){
|
|
|
+ if(state.template.list == []){
|
|
|
+ state.canSubmit = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(state.showPage.article == true){
|
|
|
+ if(state.template.article == []){
|
|
|
+ state.canSubmit = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(state.showPage.search == true){
|
|
|
+ if(state.template.search == []){
|
|
|
+ state.canSubmit = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(state.showPage.aloneList == true){
|
|
|
+ if(state.template.aloneList == []){
|
|
|
+ state.canSubmit = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(state.showPage.aloneArticle == true){
|
|
|
+ if(state.template.aloneArticle == []){
|
|
|
+ state.canSubmit = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if(state.canSubmit == ture){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ Message.error('您还有未构建的页面,请检查!');
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
|
|
|
|
|
@@ -1255,6 +1493,17 @@ const mutations = {
|
|
|
state.area.county = data.region;
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+ setDepartment(state,data){
|
|
|
+ for(let item of data){
|
|
|
+ let options = {
|
|
|
+ value: item.id,
|
|
|
+ label: item.name
|
|
|
+ }
|
|
|
+ state.departmentList.push(options)
|
|
|
+ }
|
|
|
+ console.log(state.departmentList)
|
|
|
+ },
|
|
|
|
|
|
setWebsiteCategory(state,data){
|
|
|
let arrayData = []
|
|
@@ -1273,7 +1522,7 @@ const mutations = {
|
|
|
|
|
|
const actions = {
|
|
|
|
|
|
-
|
|
|
+
|
|
|
getSiteInfo({commit},data){
|
|
|
return new Promise((resolve, reject) => {
|
|
|
getSiteInfo(data).then(response => {
|
|
@@ -1284,7 +1533,7 @@ const actions = {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
getSiteCategory({commit},data){
|
|
|
return new Promise((resolve, reject) => {
|
|
|
getSiteCategory(data).then(response => {
|
|
@@ -1295,42 +1544,32 @@ const actions = {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
- selectWebsiteArea({commit},data){
|
|
|
+
|
|
|
+ getFooterCategoryList({commit},data){
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- selectWebsiteArea(data).then(response => {
|
|
|
- commit('setArea', response.data);
|
|
|
+ getFooterCategoryList(data).then(response => {
|
|
|
resolve(response)
|
|
|
}).catch(error => {
|
|
|
reject(error)
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
- getWebsiteArticlesList({commit},data){
|
|
|
- return new Promise((resolve, reject) => {
|
|
|
- getWebsiteArticlesList(data).then(response => {
|
|
|
- resolve(response)
|
|
|
- }).catch(error => {
|
|
|
- reject(error)
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- selectWebsiteArticleInfo({commit},data){
|
|
|
+
|
|
|
+ selectWebsiteArea({commit},data){
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- selectWebsiteArticleInfo(data).then(response => {
|
|
|
+ selectWebsiteArea(data).then(response => {
|
|
|
+ commit('setArea', response.data);
|
|
|
resolve(response)
|
|
|
}).catch(error => {
|
|
|
reject(error)
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
- getWebsiteCategory({commit},data){
|
|
|
+
|
|
|
+ selectWebsiteDepartment({commit},data){
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- getWebsiteCategory(data).then(response => {
|
|
|
- commit('setWebsiteCategory', response.data);
|
|
|
+ selectWebsiteDepartment(data).then(response => {
|
|
|
+ commit('setDepartment', response.data);
|
|
|
resolve(response)
|
|
|
}).catch(error => {
|
|
|
reject(error)
|
|
@@ -1340,7 +1579,7 @@ const actions = {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
getWebsiteintel({commit},data){
|
|
|
return new Promise((resolve, reject) => {
|
|
|
getWebsiteintel(data).then(response => {
|
|
@@ -1350,7 +1589,7 @@ const actions = {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
addWebsiteTemplateintel({commit},data){
|
|
|
return new Promise((resolve, reject) => {
|
|
|
addWebsiteTemplateintel(data).then(response => {
|
|
@@ -1360,7 +1599,7 @@ const actions = {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
getWebsiteTemplateintel({commit},data){
|
|
|
return new Promise((resolve, reject) => {
|
|
|
getWebsiteTemplateintel(data).then(response => {
|
|
@@ -1370,7 +1609,7 @@ const actions = {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
upWebsiteTemplateintel({commit},data){
|
|
|
return new Promise((resolve, reject) => {
|
|
|
upWebsiteTemplateintel(data).then(response => {
|
|
@@ -1380,7 +1619,7 @@ const actions = {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
getAllTemplateClass({commit},data){
|
|
|
return new Promise((resolve, reject) => {
|
|
|
getAllTemplateClass(data).then(response => {
|
|
@@ -1390,7 +1629,7 @@ const actions = {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
getWebsiteTemplateList({commit},data){
|
|
|
return new Promise((resolve, reject) => {
|
|
|
getWebsiteTemplateList(data).then(response => {
|
|
@@ -1400,7 +1639,7 @@ const actions = {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
addWebsiteTemplateclassintel({commit},data){
|
|
|
return new Promise((resolve, reject) => {
|
|
|
addWebsiteTemplateclassintel(data).then(response => {
|
|
@@ -1410,7 +1649,7 @@ const actions = {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
getWebsiteTemplateclassintel({commit},data){
|
|
|
return new Promise((resolve, reject) => {
|
|
|
getWebsiteTemplateclassintel(data).then(response => {
|
|
@@ -1420,6 +1659,36 @@ const actions = {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+ addWebsiteTemplate({commit},data){
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ addWebsiteTemplate(data).then(response => {
|
|
|
+ resolve(response)
|
|
|
+ }).catch(error => {
|
|
|
+ reject(error)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ getWebsiteTemplateInfo({commit},data){
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ getWebsiteTemplateInfo(data).then(response => {
|
|
|
+ resolve(response)
|
|
|
+ }).catch(error => {
|
|
|
+ reject(error)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ getWebsiteTemplateData({commit},data){
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ getWebsiteTemplateData(data).then(response => {
|
|
|
+ resolve(response)
|
|
|
+ }).catch(error => {
|
|
|
+ reject(error)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
}
|
|
|
|