diff --git a/src/api/carousel.js b/src/api/carousel.js index 60d4e8a..2a448bf 100644 --- a/src/api/carousel.js +++ b/src/api/carousel.js @@ -12,7 +12,9 @@ export function POST_QUERY_CAROUSEL(params) { url: `${carousel}/queryCarousel`, method: 'post', data:params - }).then(res => res.data.data) + }).then(res => { + return res.data + }) } /** @@ -26,153 +28,23 @@ export function POST_DELETE_CAROUSEL(params) { url: `${carousel}/deleteCarousel`, method: 'post', data:params - }).then(res => res.data.data) + }).then(res => { + return res.data + }) } /** - * 设备分润 -- 分润详情 + * 修改轮播图 * @param params * @returns {Promise} * @constructor */ -export function DETAIL_EQUIPMENT_LIST(params) { +export function UPDATE_CAROUSEL(params) { return request({ - url: "/api/admin/deviceRoyalties/detail", - method: 'get', - params - }).then(res => res.data.data) -} - -/** - * 设备分润 -- 分润总数 - * @param params - * @returns {Promise} - * @constructor - */ -export function COUNT_EQUIPMENT_LIST(params) { - return request({ - url: "/api/admin/deviceRoyalties/count", - method: 'get', - params - }).then(res => res.data.data) -} - - -/** - * 设备分润 -- 生效 - * @param params - * @returns {Promise} - * @constructor - */ -export function ENABLE_EQUIPMENT_LIST(params) { - return request({ - url: "/api/admin/deviceRoyalties/enable", - method: 'post', - params - }).then(res => res.data.data) -} - - -/** - * 设备分润 -- 失效 - * @param params - * @returns {Promise} - * @constructor - */ -export function DISABLE_EQUIPMENT_LIST(params) { - return request({ - url: "/api/admin/deviceRoyalties/disable", - method: 'post', - params - }).then(res => res.data.data) -} - - - - - -/** - * 场地分润 -- 列表 - * @param params - * @returns {Promise} - * @constructor - */ -export function GET_FIELD_LIST(params) { - return request({ - url: "/api/admin/locationRoyalties", - method: 'get', - params - }).then(res => res.data.data) -} - -/** - * 场地分润 -- 保存分润 - * @param params - * @returns {Promise} - * @constructor - */ -export function POST_FIELD_LIST(params) { - return request({ - url: "/api/admin/locationRoyalties", + url: `${carousel}/updateCarousel`, method: 'post', data:params - }).then(res => res.data.data) -} - -/** - * 场地分润 -- 分润总数 - * @param params - * @returns {Promise} - * @constructor - */ -export function COUNT_FIELD_LIST(params) { - return request({ - url: "/api/admin/locationRoyalties/count", - method: 'get', - params - }).then(res => res.data.data) -} - -/** - * 场地分润 -- 分润详情 - * @param params - * @returns {Promise} - * @constructor - */ -export function DETAIL_FIELD_LIST(params) { - return request({ - url: "/api/admin/locationRoyalties/detail", - method: 'get', - params - }).then(res => res.data.data) -} - - -/** - * 场地分润 -- 生效 - * @param params - * @returns {Promise} - * @constructor - */ -export function ENABLE_FIELD_LIST(params) { - return request({ - url: "/api/admin/locationRoyalties/enable", - method: 'get', - params - }).then(res => res.data.data) -} - - -/** - * 场地分润 -- 失效 - * @param params - * @returns {Promise} - * @constructor - */ -export function DISABLE_FIELD_LIST(params) { - return request({ - url: "/api/admin/locationRoyalties/disable", - method: 'get', - params - }).then(res => res.data.data) + }).then(res => { + return res.data + }) } diff --git a/src/components/Banner/detailsOfDistribution.vue b/src/components/Banner/detailsOfDistribution.vue index a99e610..c102167 100644 --- a/src/components/Banner/detailsOfDistribution.vue +++ b/src/components/Banner/detailsOfDistribution.vue @@ -1,118 +1,146 @@ - diff --git a/src/components/Banner/index.vue b/src/components/Banner/index.vue index 7bad458..b86bf5e 100644 --- a/src/components/Banner/index.vue +++ b/src/components/Banner/index.vue @@ -1,53 +1,59 @@ diff --git a/src/views/richText/detailsOfDistribution.vue b/src/views/richText/detailsOfDistribution.vue deleted file mode 100644 index a99e610..0000000 --- a/src/views/richText/detailsOfDistribution.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - - diff --git a/src/views/richText/form.vue b/src/views/richText/form.vue deleted file mode 100644 index d23cba9..0000000 --- a/src/views/richText/form.vue +++ /dev/null @@ -1,60 +0,0 @@ - - - - - diff --git a/src/views/richText/index.vue b/src/views/richText/index.vue index 47c67f1..39bf693 100644 --- a/src/views/richText/index.vue +++ b/src/views/richText/index.vue @@ -1,269 +1,40 @@