Browse Source

新增bug

master
王宇飞 2 months ago
parent
commit
99faaf3dcb
  1. 33
      src/views/battery/monomer/index.vue

33
src/views/battery/monomer/index.vue

@ -307,6 +307,17 @@ const butttondata = (row,$index) => {
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'edit') { // if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
if(type == 'update'){
// //
tableDataDevice.value = row.cellDeviceList tableDataDevice.value = row.cellDeviceList
// //
@ -319,16 +330,20 @@ const buttonTableClick = async (val, row) => {
tableDataProd.value = row.cellProdList tableDataProd.value = row.cellProdList
// //
tableDataPass.value = row.cellPassList tableDataPass.value = row.cellPassList
}else{
openForm('update', row) //
} else if (val == 'delete') { // tableDataDevice.value = []
handleDelete(row.id) //
tableDataEnv.value = []
//
tableDataPlate.value = []
//
tableDataCore.value = []
//
tableDataProd.value = []
//
tableDataPass.value = []
} }
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
if(tableObject.tableList.length>0){ if(tableObject.tableList.length>0){
if(isStatic.value){ if(isStatic.value){
// //

Loading…
Cancel
Save