From 5c847166439a31ff10bb95c35bc907e51ce775e4 Mon Sep 17 00:00:00 2001 From: wangxiaohua <1214073490@qq.com> Date: Thu, 14 Oct 2021 16:01:23 +0800 Subject: [PATCH] init --- package.json | 1 + src/api/modules/http.js | 69 +++ src/views/Template/Pinspeakwords.vue | 604 +++++++++++------------ src/views/Template/PinspeakwordsList.vue | 8 +- vue.config.js | 4 +- 5 files changed, 355 insertions(+), 331 deletions(-) diff --git a/package.json b/package.json index 0bbf104..8290fc4 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "vue-json-tree-view": "^2.1.4", "vue-quill-editor": "3.0.6", "vue-router": "^3.0.2", + "vuedraggable": "^2.24.3", "vuex": "^3.0.1" }, "devDependencies": { diff --git a/src/api/modules/http.js b/src/api/modules/http.js index 2941dbc..17960f1 100644 --- a/src/api/modules/http.js +++ b/src/api/modules/http.js @@ -249,3 +249,72 @@ export function templatedel(query) { }) } + +//销讲词编辑分数 +export function templatedelfindByTempId(query) { + return request({ + url: '/autoSR/template/findByTempId', + method:'get', + params:query + }) +} + + +//销讲词模板编辑后保存 +export function templategeaddTemplate(data) { + return request({ + url: '/autoSR/marketing/addTemplate', + method:'post', + data + }) +} + + +//销讲词模板 +export function templategetMarketingTree(query) { + return request({ + url: '/autoSR/marketing/getMarketingTree', + method:'get', + params:query + }) +} + +//销讲词模板添加一二三级 +export function templategeadd(data) { + return request({ + url: 'autoSR/marketing/add', + method:'post', + data + }) +} + +//删除销讲词模板一二三级 +export function templategedel(query) { + return request({ + url: '/autoSR/marketing/del', + method:'get', + params:query + }) +} + + +//编辑销讲词模板一二三级 +export function templategeupdate(query) { + return request({ + url: 'autoSR/marketing/update', + method:'get', + params:query + }) +} + + +//销讲词模板一二三级排序 +export function templategeupdateSort(data) { + return request({ + url: 'autoSR/marketing/updateSort', + method:'post', + data + }) +} + + diff --git a/src/views/Template/Pinspeakwords.vue b/src/views/Template/Pinspeakwords.vue index 73017de..9b89e42 100644 --- a/src/views/Template/Pinspeakwords.vue +++ b/src/views/Template/Pinspeakwords.vue @@ -20,40 +20,31 @@ - + + +