|
@@ -93,7 +93,6 @@
|
|
type="text"
|
|
type="text"
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
@click="handleUpdate(scope.row)"
|
|
@click="handleUpdate(scope.row)"
|
|
- v-hasPermi="['system:outsalesdocuments:edit']"
|
|
|
|
>修改
|
|
>修改
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
@@ -101,7 +100,6 @@
|
|
type="text"
|
|
type="text"
|
|
icon="el-icon-delete"
|
|
icon="el-icon-delete"
|
|
@click="handleDelete(scope.row)"
|
|
@click="handleDelete(scope.row)"
|
|
- v-hasPermi="['system:outsalesdocuments:remove']"
|
|
|
|
>删除
|
|
>删除
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -347,14 +345,21 @@ export default {
|
|
* 删除提示信息语句(标识)
|
|
* 删除提示信息语句(标识)
|
|
* */
|
|
* */
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
- let delIds = row.id || this.ids;
|
|
|
|
- console.log(delIds)
|
|
|
|
|
|
+ let delIds = this.ids;
|
|
|
|
+
|
|
|
|
+ if (row.id != undefined && row.id != null) {
|
|
|
|
+ delIds = []
|
|
|
|
+ delIds.push(row.id);
|
|
|
|
+ // if (delIds.findIndex(item => item === row.id) == -1) {
|
|
|
|
+ // delIds.push(row.id);
|
|
|
|
+ // }
|
|
|
|
+ }
|
|
let data = {
|
|
let data = {
|
|
basicMap: {
|
|
basicMap: {
|
|
tableName: this.tableName
|
|
tableName: this.tableName
|
|
},
|
|
},
|
|
conditionMap: {
|
|
conditionMap: {
|
|
- id: delIds.length == 1 ? [delIds] : delIds
|
|
|
|
|
|
+ id: delIds
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.$modal
|
|
this.$modal
|