|
|
@@ -11,20 +11,30 @@
|
|
|
<el-form ref="form" :inline="true" style="float: right; margin-top: -10px">
|
|
|
<el-form-item label="筛选条件">
|
|
|
<el-select placeholder="请选择" v-model="conditions" style="width: 100%" size="mini">
|
|
|
- <el-option :key="1" label="匹配正确" :value="1"></el-option>
|
|
|
+ <el-option :key="1" label="编码和级别匹配正确" :value="1"></el-option>
|
|
|
<el-option :key="2" label="1级降2级" :value="2"></el-option>
|
|
|
<el-option :key="3" label="2级升1级" :value="3"></el-option>
|
|
|
-<!-- <el-option :key="4" label="差异" :value="4"></el-option>-->
|
|
|
+ <el-option :key="4" label="旧表有导入无" :value="4"></el-option>
|
|
|
+ <el-option :key="5" label="导入有旧表无" :value="5"></el-option>
|
|
|
+ <el-option :key="6" label="完全匹配正确" :value="6"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" size="mini" @click="importhandleSearch">查询</el-button>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" size="mini" @click="deleteList" :disabled="isDisable">删除</el-button>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<el-table stripe highlight-current-row :data="entityList" id="rebateSetTable" size="mini" border height="calc(100vh - 243px)"
|
|
|
style="width: 100%" @sort-change="orderby" v-loading="loading" >
|
|
|
-
|
|
|
+ <el-table-column>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-checkbox :label="scope.row['Id']" :key="scope.row['Id']" style="margin-left:15px;" @change="handleCheckedCitiesChange($event, scope.row['Id'])">
|
|
|
+ </el-checkbox>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column v-for="column in tableColumns" :prop="column.prop" sortable :width="column.width"
|
|
|
:key="column.Id" :label="column.label" align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
@@ -183,6 +193,8 @@
|
|
|
],
|
|
|
dynamicTableColumns: [],
|
|
|
CreateOn: [],
|
|
|
+ deleteArr: [],
|
|
|
+ isDisable: true
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -238,6 +250,30 @@
|
|
|
// this.importDialogVisible = false
|
|
|
this.initDatas()
|
|
|
},
|
|
|
+ handleCheckedCitiesChange(val, value) {
|
|
|
+ if (val) {
|
|
|
+ this.deleteArr.push(value)
|
|
|
+ } else {
|
|
|
+ let a = this.deleteArr.findIndex(item => item === val)
|
|
|
+ this.deleteArr.splice(a, 1)
|
|
|
+ }
|
|
|
+ console.log(val, this.deleteArr.length, 'value')
|
|
|
+ if (this.deleteArr.length > 0) {
|
|
|
+ this.isDisable = false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ deleteList () {
|
|
|
+ let params = {
|
|
|
+ deleteArr: this.deleteArr.toString()
|
|
|
+ }
|
|
|
+ api.deleteList(params, this.$axios).then(res => {
|
|
|
+ this.entityList = res.data.items
|
|
|
+ this.currentItemCount = res.data.currentItemCount
|
|
|
+ this.loading = false
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
initDatas () {
|
|
|
this.loading = true
|
|
|
// 分页及列表条件
|