|
|
|
@ -260,7 +260,14 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { listAppointmentteamdata, getAppointmentteamdata, delAppointmentteamdata, addAppointmentteamdata, updateAppointmentteamdata } from "@/api/appointmentteamdata/appointmentteamdata"; |
|
|
|
|
import { |
|
|
|
|
listAppointmentteamdata, |
|
|
|
|
getAppointmentteamdata, |
|
|
|
|
delAppointmentteamdata, |
|
|
|
|
addAppointmentteamdata, |
|
|
|
|
updateAppointmentteamdata, |
|
|
|
|
delAppointmentteamdatas |
|
|
|
|
} from "@/api/appointmentteamdata/appointmentteamdata"; |
|
|
|
|
import { getUserProfile } from "@/api/system/user"; |
|
|
|
|
import { getToken } from '@/utils/auth' |
|
|
|
|
export default { |
|
|
|
@ -370,7 +377,9 @@ export default { |
|
|
|
|
this.appointmentteamdataLists.push(newLine); |
|
|
|
|
}, |
|
|
|
|
changeRow(row){ |
|
|
|
|
row.dataState = 'u' |
|
|
|
|
if (row.dataState==''){ |
|
|
|
|
row.dataState = 'u' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
getUser() { |
|
|
|
|
getUserProfile().then(response => { |
|
|
|
@ -502,15 +511,35 @@ export default { |
|
|
|
|
handleDeletes(row) { |
|
|
|
|
let this_ = this |
|
|
|
|
const ids = row.id || this.ids; |
|
|
|
|
this.$modal.confirm('是否确认删除此条数据项?').then(function() { |
|
|
|
|
debugger |
|
|
|
|
return delAppointmentteamdatas(ids); |
|
|
|
|
this.$confirm('是否确认删除此条数据项?', '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning' |
|
|
|
|
}).then(() => { |
|
|
|
|
this.delAppointmentteamdatas(ids) |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '删除成功!' |
|
|
|
|
}); |
|
|
|
|
let list_ = this_.appointmentteamdataLists; |
|
|
|
|
let index_ = list_.findIndex(iten => iten.id == row.id); |
|
|
|
|
list_.appointmentteamdataLists.splice(index_, 1); |
|
|
|
|
this.$modal.msgSuccess("删除成功"); |
|
|
|
|
}).catch(() => {}); |
|
|
|
|
list_.splice(index_, 1); |
|
|
|
|
this.$forceUpdate() |
|
|
|
|
}).catch(() => { |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'info', |
|
|
|
|
message: '已取消删除' |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
// this.$modal.confirm('是否确认删除此条数据项?').then(function() { |
|
|
|
|
// // debugger |
|
|
|
|
// return delAppointmentteamdatas(ids); |
|
|
|
|
// }).then(() => { |
|
|
|
|
// let list_ = this_.appointmentteamdataLists; |
|
|
|
|
// let index_ = list_.findIndex(iten => iten.id == row.id); |
|
|
|
|
// list_.appointmentteamdataLists.splice(index_, 1); |
|
|
|
|
// this.$modal.msgSuccess("删除成功"); |
|
|
|
|
// }).catch(() => {}); |
|
|
|
|
}, |
|
|
|
|
/** 导出按钮操作 */ |
|
|
|
|
handleExport() { |
|
|
|
@ -518,7 +547,10 @@ export default { |
|
|
|
|
...this.queryParams |
|
|
|
|
}, `appointmentteamdata_${new Date().getTime()}.xlsx`) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
//删除列表人员 |
|
|
|
|
delAppointmentteamdatas(val){ |
|
|
|
|
delAppointmentteamdatas(val) |
|
|
|
|
}, |
|
|
|
|
importFile() { |
|
|
|
|
this.upload.title = '数据上传' |
|
|
|
|
this.upload.open = true |
|
|
|
|