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 @@ - + + +
获取选中节点
- - - 确定删除该条内容吗 - - 取 消 - 确 定 - - - + @@ -75,10 +66,23 @@ 确 定 + + + + + + + 确定删除该条内容吗 + + 取 消 + 确 定 + + + - + - + @@ -153,6 +157,7 @@