|
|
|
|
@ -184,7 +184,6 @@ |
|
|
|
|
导入数据 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button v-if="!isEdit&&detail" |
|
|
|
|
icon="el-icon-upload2" |
|
|
|
|
plain |
|
|
|
|
size="mini" |
|
|
|
|
type="primary" |
|
|
|
|
@ -240,14 +239,14 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" class-name="small-padding fixed-width" label="操作"> |
|
|
|
|
<el-table-column v-if="!isEdit" align="center" class-name="small-padding fixed-width" label="操作"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button |
|
|
|
|
v-hasPermi="['appointmentteamdata:appointmentteamdata:remove']" |
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
size="mini" |
|
|
|
|
type="text" |
|
|
|
|
@click="handleDeletes(scope.row)" |
|
|
|
|
@click="handleDeletes(scope.row,scope.$index)" |
|
|
|
|
>删除 |
|
|
|
|
</el-button> |
|
|
|
|
</template> |
|
|
|
|
@ -357,7 +356,7 @@ export default { |
|
|
|
|
// 表单校验 |
|
|
|
|
rules: { |
|
|
|
|
scenicCode: [ |
|
|
|
|
{required: true, message: "景区编码不能为空", trigger: "blur"} |
|
|
|
|
{required: true, message: "景区不能为空", trigger: "blur"} |
|
|
|
|
], |
|
|
|
|
appointmentDate: [ |
|
|
|
|
{required: true, message: "预约日期不能为空", trigger: "blur"} |
|
|
|
|
@ -569,9 +568,10 @@ export default { |
|
|
|
|
}).catch(() => { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
handleDeletes(row) { |
|
|
|
|
handleDeletes(row,index) { |
|
|
|
|
let this_ = this |
|
|
|
|
const ids = row.id || this.ids; |
|
|
|
|
const idex = index |
|
|
|
|
this.$confirm('是否确认删除此条数据项?', '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
@ -601,8 +601,13 @@ export default { |
|
|
|
|
}) |
|
|
|
|
console.log(this_.waitingDelete,'假山'); |
|
|
|
|
let list_ = this_.appointmentteamdataLists; |
|
|
|
|
let index_ = list_.findIndex(iten => iten.id == row.id); |
|
|
|
|
list_.splice(index_, 1); |
|
|
|
|
if (row.id&&row.id!=''){ |
|
|
|
|
let index_ = list_.findIndex(iten => iten.id == row.id); |
|
|
|
|
list_.splice(index_, 1); |
|
|
|
|
}else{ |
|
|
|
|
list_.splice(idex, 1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.$forceUpdate() |
|
|
|
|
}).catch(() => { |
|
|
|
|
this.$message({ |
|
|
|
|
|