提交 41281edc authored 作者: 刘旭's avatar 刘旭

更新

上级 783b4493
...@@ -9,6 +9,7 @@ declare module 'vue' { ...@@ -9,6 +9,7 @@ declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
ElAside: typeof import('element-plus/es')['ElAside'] ElAside: typeof import('element-plus/es')['ElAside']
ElButton: typeof import('element-plus/es')['ElButton'] ElButton: typeof import('element-plus/es')['ElButton']
ElCard: typeof import('element-plus/es')['ElCard']
ElCol: typeof import('element-plus/es')['ElCol'] ElCol: typeof import('element-plus/es')['ElCol']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElContainer: typeof import('element-plus/es')['ElContainer'] ElContainer: typeof import('element-plus/es')['ElContainer']
......
...@@ -74,7 +74,6 @@ const tableData = ref() ...@@ -74,7 +74,6 @@ const tableData = ref()
const handleSelectionChange = (rows: any) => { const handleSelectionChange = (rows: any) => {
state.selectRows = rows.map((item: any) => item.name) state.selectRows = rows.map((item: any) => item.name)
state.selectRows = [...state.selectRows] state.selectRows = [...state.selectRows]
console.log(state.selectRows)
} }
const onStart = () => { const onStart = () => {
...@@ -138,6 +137,7 @@ const onMessages = async () => { ...@@ -138,6 +137,7 @@ const onMessages = async () => {
const onRestartOne = () => { const onRestartOne = () => {
if (!state.selectRows.length) return ElMessage.warning('请先选择数据') if (!state.selectRows.length) return ElMessage.warning('请先选择数据')
if (state.selectRows.length > 1) return ElMessage.warning('一次只能重启一条数据') if (state.selectRows.length > 1) return ElMessage.warning('一次只能重启一条数据')
ElMessageBox.confirm(`确认重启 ?`, '提示', { ElMessageBox.confirm(`确认重启 ?`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
...@@ -145,7 +145,7 @@ const onRestartOne = () => { ...@@ -145,7 +145,7 @@ const onRestartOne = () => {
}).then(async () => { }).then(async () => {
try { try {
const res: any = await restartOne({ const res: any = await restartOne({
name: state.selectRows[0].name, codeName: state.selectRows[0],
tenantId: tenantId.value tenantId: tenantId.value
}) })
if (res.code === 200) ElMessage.success('重启成功') if (res.code === 200) ElMessage.success('重启成功')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论