修改准实时数据数据页面样式
This commit is contained in:
@@ -222,7 +222,7 @@ const tableStore = new TableStore({
|
||||
inactiveValue: '0',
|
||||
activeValue: '1',
|
||||
onChangeField: (row: any, value: any) => {
|
||||
console.log("🚀 ~ row:", row)
|
||||
// console.log("🚀 ~ row:", row)
|
||||
ElMessageBox.prompt('二次校验密码确认', '', {
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '取消',
|
||||
@@ -230,7 +230,7 @@ const tableStore = new TableStore({
|
||||
inputType: 'text'
|
||||
}).then(({ value }) => {
|
||||
passwordConfirm(value).then(res => {
|
||||
editEquipmentDelivery({ ...row, usageStatus: row.usageStatus == 1 ? 0 : 1 }).then(res => {
|
||||
editEquipmentDelivery({ ...row, status: row.status == 5 ? 1 : row.status, usageStatus: row.usageStatus == 1 ? 0 : 1 }).then(res => {
|
||||
ElMessage.success(row.usageStatus == 1 ? '设备停用成功!' : '设备启用成功!')
|
||||
tableStore.index()
|
||||
})
|
||||
@@ -413,13 +413,14 @@ const tableStore = new TableStore({
|
||||
click: row => {
|
||||
// 便携式设备接入
|
||||
// portableDeviceAccess
|
||||
loading.value = true
|
||||
|
||||
ElMessageBox.confirm('确定接入该设备吗?', '提示', {
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
})
|
||||
.then(() => {
|
||||
loading.value = true
|
||||
portableDeviceRegister({
|
||||
nDid: row.ndid
|
||||
})
|
||||
@@ -427,6 +428,7 @@ const tableStore = new TableStore({
|
||||
loading.value = false
|
||||
ElMessage.success(res.message)
|
||||
tableStore.index()
|
||||
|
||||
})
|
||||
.catch(e => {
|
||||
loading.value = false
|
||||
|
||||
Reference in New Issue
Block a user