diff --git a/src/api/unique/code.js b/src/api/unique/code.js index a440566..5c51fba 100644 --- a/src/api/unique/code.js +++ b/src/api/unique/code.js @@ -1,6 +1,6 @@ import request from '@/utils/request' -// 查询唯一码列表 +// 查询唯一码管理列表 export function listCode(query) { return request({ url: '/unique/code/list', @@ -9,7 +9,7 @@ export function listCode(query) { }) } -// 查询唯一码详细 +// 查询唯一码管理详细 export function getCode(id) { return request({ url: '/unique/code/' + id, @@ -17,7 +17,7 @@ export function getCode(id) { }) } -// 新增唯一码 +// 新增唯一码管理 export function addCode(data) { return request({ url: '/unique/code', @@ -26,7 +26,7 @@ export function addCode(data) { }) } -// 修改唯一码 +// 修改唯一码管理 export function updateCode(data) { return request({ url: '/unique/code', @@ -35,7 +35,7 @@ export function updateCode(data) { }) } -// 删除唯一码 +// 删除唯一码管理 export function delCode(id) { return request({ url: '/unique/code/' + id, diff --git a/src/views/unique/code/index.vue b/src/views/unique/code/index.vue index 2811a0d..65adbd0 100644 --- a/src/views/unique/code/index.vue +++ b/src/views/unique/code/index.vue @@ -124,7 +124,7 @@ @pagination="getList" /> - + @@ -199,7 +199,7 @@ const data = reactive({ const { queryParams, form, rules } = toRefs(data) -/** 查询唯一码列表 */ +/** 查询唯一码管理列表 */ function getList() { loading.value = true listCode(queryParams.value).then(response => { @@ -258,7 +258,7 @@ function handleSelectionChange(selection) { function handleAdd() { reset() open.value = true - title.value = "添加唯一码" + title.value = "添加唯一码管理" } /** 修改按钮操作 */ @@ -268,7 +268,7 @@ function handleUpdate(row) { getCode(_id).then(response => { form.value = response.data open.value = true - title.value = "修改唯一码" + title.value = "修改唯一码管理" }) } @@ -296,7 +296,7 @@ function submitForm() { /** 删除按钮操作 */ function handleDelete(row) { const _ids = row.id || ids.value - proxy.$modal.confirm('是否确认删除唯一码编号为"' + _ids + '"的数据项?').then(function() { + proxy.$modal.confirm('是否确认删除唯一码管理编号为"' + _ids + '"的数据项?').then(function() { return delCode(_ids) }).then(() => { getList()