fzq #31

Closed
fanzhiqin wants to merge 215 commits from fzq into test
Showing only changes of commit 90e34584ec - Show all commits

View File

@ -54,7 +54,7 @@
<!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
<base-dialog v-if="showbasedialog" ref="basedialog" :configs="addOrUpdateConfigs"></base-dialog>
<base-dialog v-if="showbasedialog" ref="basedialog" :configs="addOrUpdateConfigs" @refreshDataList="getDataList"></base-dialog>
</div>
</template>
@ -264,10 +264,11 @@ export default {
},
//
deleteHandle(id) {
console.log('id is: ', id)
var ids = id
? [id]
// ? [1556817256347828335]
: this.dataListSelections.map(item => {
: // ? [1556817256347828335]
this.dataListSelections.map(item => {
return item.id
})
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
@ -278,6 +279,9 @@ export default {
this.$http({
url: this.$http.adornUrl('/monitoring/product'),
method: 'delete',
headers: {
'Content-Type': 'application/json'
},
data: this.$http.adornData(ids, false)
}).then(({ data }) => {
if (data && data.code === 0) {