diff --git a/src/api/product/jutsus.js b/src/api/product/jutsus.js new file mode 100644 index 0000000..e89245e --- /dev/null +++ b/src/api/product/jutsus.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询1列表 +export function listJutsus(query) { + return request({ + url: '/product/Jutsus/list', + method: 'get', + params: query + }) +} + +// 查询1详细 +export function getJutsus(jutsuId) { + return request({ + url: '/product/Jutsus/' + jutsuId, + method: 'get' + }) +} + +// 新增1 +export function addJutsus(data) { + return request({ + url: '/product/Jutsus', + method: 'post', + data: data + }) +} + +// 修改1 +export function updateJutsus(data) { + return request({ + url: '/product/Jutsus', + method: 'put', + data: data + }) +} + +// 删除1 +export function delJutsus(jutsuId) { + return request({ + url: '/product/Jutsus/' + jutsuId, + method: 'delete' + }) +} diff --git a/src/api/product/naruto.js b/src/api/product/naruto.js new file mode 100644 index 0000000..b0ef9ad --- /dev/null +++ b/src/api/product/naruto.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询111列表 +export function listCharacters(query) { + return request({ + url: '/product/naruto/list', + method: 'get', + params: query + }) +} + +// 查询111详细 +export function getCharacters(characterId) { + return request({ + url: '/product/naruto/' + characterId, + method: 'get' + }) +} + +// 新增111 +export function addCharacters(data) { + return request({ + url: '/product/naruto', + method: 'post', + data: data + }) +} + +// 修改111 +export function updateCharacters(data) { + return request({ + url: '/product/naruto', + method: 'put', + data: data + }) +} + +// 删除111 +export function delCharacters(characterId) { + return request({ + url: '/product/naruto/' + characterId, + method: 'delete' + }) +} diff --git a/src/views/product/info/index.vue b/src/views/product/info/index.vue index a864c42..8912dfe 100644 --- a/src/views/product/info/index.vue +++ b/src/views/product/info/index.vue @@ -421,6 +421,7 @@ export default { }, updateInfoStatus(params) { + console.log(params) const {id, status} = params this.updateInfoById({id, status}) }, @@ -643,7 +644,7 @@ export default { this.active = Number(data.step); let ruleId = data.ruleId; this.changeRuleInfoListByRuleId(ruleId); - if(data.skuInfoList !=null && data.skuInfoList.size > 0){ + if(data.skuInfoList !=null && data.skuInfoList.length > 0){ data.skuInfoList.forEach(item => { if (item.sku !== null) { let skuArray = item.sku.split(','); @@ -674,8 +675,9 @@ export default { let type = this.form.type[this.form.type - 1]; this.form.typeIds = typeIds; this.form.type = type; + this.form.step = this.active - this.form["skuInfoList"] = this.tableBodyTemplate; + this.form["skuInfoList"] = this.tableBodyTemplate; if (this.form.id != null) { this.updateInfoById(this.form) } else { diff --git a/src/views/product/jutsus/index.vue b/src/views/product/jutsus/index.vue new file mode 100644 index 0000000..08040dd --- /dev/null +++ b/src/views/product/jutsus/index.vue @@ -0,0 +1,265 @@ + + + diff --git a/src/views/product/naruto/index.vue b/src/views/product/naruto/index.vue new file mode 100644 index 0000000..d8787e5 --- /dev/null +++ b/src/views/product/naruto/index.vue @@ -0,0 +1,284 @@ + + +