diff --git a/src/api/modules/profitconfig.js b/src/api/modules/profitconfig.js index fbbea2b..993c33c 100644 --- a/src/api/modules/profitconfig.js +++ b/src/api/modules/profitconfig.js @@ -10,8 +10,8 @@ const profitconfigApi = { //删除 delProfitconfig: (ids) => { - const idStr = Array.isArray(ids) ? ids.join(',') : ids; - instance.delete(`/profitconfig/${idStr}`); + debugger; + instance.delete(`/profitconfig/${ids}`); }, // 添加 addProfitconfig: (data) => instance.post('/profitconfig/add', data), diff --git a/src/views/profitconfig/index.vue b/src/views/profitconfig/index.vue index 2bc36f0..de37677 100644 --- a/src/views/profitconfig/index.vue +++ b/src/views/profitconfig/index.vue @@ -1,19 +1,18 @@ - - + +
+ +
+ {{ getRoleLabel('self') }}: + + {{ JSON.parse(row.config).self.type === 1 ? '百分比' : '固定金额' }}: + {{ JSON.parse(row.config).self.value }}{{ JSON.parse(row.config).self.type === 1 ? '%' : '元' }} + +
+ + +
+
+ + + + + + + + + + + - +