style: 💄 代码注释格式优化
Former-commit-id: 0f5739e620e9aceb540c5a92fd136b32cedc996a
This commit is contained in:
@@ -44,9 +44,7 @@ const rules = reactive({
|
|||||||
code: [{ required: true, message: "请输入字典类型编码", trigger: "blur" }],
|
code: [{ required: true, message: "请输入字典类型编码", trigger: "blur" }],
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/** 查询 */
|
||||||
* 查询
|
|
||||||
*/
|
|
||||||
function handleQuery() {
|
function handleQuery() {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
getDictTypePage(queryParams)
|
getDictTypePage(queryParams)
|
||||||
@@ -68,9 +66,7 @@ function resetQuery() {
|
|||||||
handleQuery();
|
handleQuery();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** 行复选框选中 */
|
||||||
* 行checkbox change事件
|
|
||||||
*/
|
|
||||||
function handleSelectionChange(selection: any) {
|
function handleSelectionChange(selection: any) {
|
||||||
ids.value = selection.map((item: any) => item.id);
|
ids.value = selection.map((item: any) => item.id);
|
||||||
}
|
}
|
||||||
@@ -92,9 +88,7 @@ function openDialog(dicTypeId?: number) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** 字典类型表单提交 */
|
||||||
* 字典类型表单提交
|
|
||||||
*/
|
|
||||||
function handleSubmit() {
|
function handleSubmit() {
|
||||||
dataFormRef.value.validate((isValid: boolean) => {
|
dataFormRef.value.validate((isValid: boolean) => {
|
||||||
if (isValid) {
|
if (isValid) {
|
||||||
@@ -121,17 +115,13 @@ function handleSubmit() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** 关闭字典类型弹窗 */
|
||||||
* 关闭弹窗
|
|
||||||
*/
|
|
||||||
function closeDialog() {
|
function closeDialog() {
|
||||||
dialog.visible = false;
|
dialog.visible = false;
|
||||||
resetForm();
|
resetForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** 重置字典类型表单 */
|
||||||
* 重置表单
|
|
||||||
*/
|
|
||||||
function resetForm() {
|
function resetForm() {
|
||||||
dataFormRef.value.resetFields();
|
dataFormRef.value.resetFields();
|
||||||
dataFormRef.value.clearValidate();
|
dataFormRef.value.clearValidate();
|
||||||
@@ -140,9 +130,7 @@ function resetForm() {
|
|||||||
formData.status = 1;
|
formData.status = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** 删除字典类型 */
|
||||||
* 删除字典类型
|
|
||||||
*/
|
|
||||||
function handleDelete(dictTypeId?: number) {
|
function handleDelete(dictTypeId?: number) {
|
||||||
const dictTypeIds = [dictTypeId || ids.value].join(",");
|
const dictTypeIds = [dictTypeId || ids.value].join(",");
|
||||||
if (!dictTypeIds) {
|
if (!dictTypeIds) {
|
||||||
@@ -168,9 +156,7 @@ const dictDataDialog = reactive<DialogOption>({
|
|||||||
|
|
||||||
const selectedDictType = reactive({ typeCode: "", typeName: "" }); // 当前选中的字典类型
|
const selectedDictType = reactive({ typeCode: "", typeName: "" }); // 当前选中的字典类型
|
||||||
|
|
||||||
/**
|
/** 打开字典数据弹窗 */
|
||||||
* 打开字典数据弹窗
|
|
||||||
*/
|
|
||||||
function openDictDialog(row: DictTypePageVO) {
|
function openDictDialog(row: DictTypePageVO) {
|
||||||
dictDataDialog.visible = true;
|
dictDataDialog.visible = true;
|
||||||
dictDataDialog.title = "【" + row.name + "】字典数据";
|
dictDataDialog.title = "【" + row.name + "】字典数据";
|
||||||
@@ -179,9 +165,7 @@ function openDictDialog(row: DictTypePageVO) {
|
|||||||
selectedDictType.typeName = row.name;
|
selectedDictType.typeName = row.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** 关闭字典数据弹窗 */
|
||||||
* 关闭字典数据弹窗
|
|
||||||
*/
|
|
||||||
function closeDictDialog() {
|
function closeDictDialog() {
|
||||||
dictDataDialog.visible = false;
|
dictDataDialog.visible = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user