|
|
@@ -64,6 +64,19 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column align="left" label="备注" min-width="150" prop="remarks" />
|
|
|
+ <el-table-column align="left" fixed="right" label="操作" width="200">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button
|
|
|
+ icon="edit"
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ link
|
|
|
+ @click="editCardFunc(scope.row)"
|
|
|
+ >添加备注</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
</el-table>
|
|
|
<div class="gva-pagination">
|
|
|
<el-pagination
|
|
|
@@ -81,11 +94,8 @@
|
|
|
|
|
|
<el-dialog v-model="dialogFormVisible" :before-close="closeDialog" :title="dialogTitle">
|
|
|
<el-form ref="apiForm" :model="form" :rules="rules" label-width="80px">
|
|
|
- <el-form-item label="游戏名称" prop="game_name">
|
|
|
- <el-input v-model="form.game_name" autocomplete="off" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="游戏包名" prop="game_package_name">
|
|
|
- <el-input v-model="form.game_package_name" autocomplete="off" />
|
|
|
+ <el-form-item label="备注" prop="remarks">
|
|
|
+ <el-input v-model="form.remarks" autocomplete="off" />
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
@@ -108,6 +118,7 @@
|
|
|
import {
|
|
|
computerUseLog,
|
|
|
exportExcel,
|
|
|
+ updateComputerUseRemarks,
|
|
|
} from '@/api/log'
|
|
|
import { toSQLLine } from '@/utils/stringFun'
|
|
|
import { ref } from 'vue'
|
|
|
@@ -164,7 +175,7 @@ const searchStatusOptions = ref([
|
|
|
|
|
|
const type = ref('')
|
|
|
const rules = ref({
|
|
|
- game_name: [{ required: true, message: '请输入游戏名称', trigger: 'blur' }],
|
|
|
+ remarks: [{ required: true, message: '请添加备注', trigger: 'blur' }],
|
|
|
game_package_name: [
|
|
|
{ required: true, message: '请输入游戏包名', trigger: 'blur' }
|
|
|
]
|
|
|
@@ -307,8 +318,7 @@ const searchStatusOptions = ref([
|
|
|
const initForm = () => {
|
|
|
apiForm.value.resetFields()
|
|
|
form.value = {
|
|
|
- game_name: '',
|
|
|
- game_package_name: ''
|
|
|
+ remarks: '',
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -320,7 +330,7 @@ const searchStatusOptions = ref([
|
|
|
dialogTitle.value = '新增game'
|
|
|
break
|
|
|
case 'edit':
|
|
|
- dialogTitle.value = '编辑game'
|
|
|
+ dialogTitle.value = '修改备注'
|
|
|
break
|
|
|
default:
|
|
|
break
|
|
|
@@ -334,8 +344,7 @@ const searchStatusOptions = ref([
|
|
|
}
|
|
|
|
|
|
const editCardFunc = async(row) => {
|
|
|
- const res = await getGameById({ id: row.id })
|
|
|
- form.value = res.data
|
|
|
+ form.value = row
|
|
|
openDialog('edit')
|
|
|
}
|
|
|
|
|
|
@@ -360,7 +369,7 @@ const searchStatusOptions = ref([
|
|
|
break
|
|
|
case 'edit':
|
|
|
{
|
|
|
- const res = await cuGame(form.value)
|
|
|
+ const res = await updateComputerUseRemarks(form.value)
|
|
|
if (res.code === 0) {
|
|
|
ElMessage({
|
|
|
type: 'success',
|