feat: 🚀 去掉空格

This commit is contained in:
2025-04-09 17:42:06 +08:00
parent 2698e2c2cf
commit 473aa04ea4
11 changed files with 44 additions and 28 deletions

View File

@@ -91,8 +91,10 @@ const getArticleListDetails = async () => {
}
};
const handleSelectChangeEmits = (value: any) => {
console.log(value, "========value=========");
dataStore.editRuleForm.category_id = value.id;
console.log(value, "=======value========");
if (value?.prop === "category_id1") {
dataStore.editRuleForm.category_id = value.id;
}
};
const convertDateFormat = (dateString: any) => {
const date = new Date(dateString);

View File

@@ -47,7 +47,7 @@
ref="formRef"
@handleRadioGroupEmits="handleRadioGroupEmits"
>
<el-input v-model.trim="dataStore.editRuleForm.link" clearable style="width: 440px">
<el-input v-model="dataStore.editRuleForm.link" clearable style="width: 440px">
<template #append>
<el-tree-select
lazy

View File

@@ -241,7 +241,9 @@ const getAttachmentRead = async () => {
getAttachmentRead();
const handleSelectChangeEmits = (value: any) => {
console.log(value, "========value=========");
dataStore.editRuleForm.category_id = value.id;
if (value.prop === "category_id1") {
dataStore.editRuleForm.category_id = value.id;
}
};
//分类
const getCategorys = async () => {

View File

@@ -154,7 +154,10 @@ const getArticleCategorySave = async (params: any) => {
};
const handleSelectChangeEmits = (value: any) => {
dataStore.ruleForm.pid = value.id;
console.log(value, "===============value1111111============");
if (value.prop === "pid") {
dataStore.ruleForm.pid = value.id;
}
};
const handleTreesSelectChangeEmits = (value: any) => {
console.log(value, "=========value=========");

View File

@@ -36,7 +36,7 @@
:min="1"
:max="9999"
:controls="true"
v-model.trim="_ruleFormParam.sort"
v-model="_ruleFormParam.sort"
step-strictly
:step="1"
controls-position="right"

View File

@@ -187,8 +187,10 @@ const getVideoRead = async (id: any) => {
};
const handleSelectChangeEmits = (value: any) => {
console.log(value, "========value=========");
dataStore.editRuleForm.category_id = value.id;
console.log(value, "========value=33========");
if (value.prop === "category_id1") {
dataStore.editRuleForm.category_id = value.id;
}
};
//保存

View File

@@ -321,8 +321,11 @@ const reset = () => {
getMenusList();
};
const handleSelectChangeEmits = (value: any) => {
dataStore.editRuleForm.pid = value.id;
console.log(value, "==========value=========");
if (value.prop === "pid") {
dataStore.editRuleForm.pid = value.id;
}
console.log(value, "==========value===323232======");
};
</script>

View File

@@ -61,7 +61,7 @@
ref="formRef"
@handleSelectChangeEmits="handleSelectChangeEmits"
>
<el-input v-model.trim="dataStore.editRuleForm.link" clearable style="width: 440px">
<el-input v-model="dataStore.editRuleForm.link" clearable style="width: 440px">
<template #append>
<el-tree-select
lazy
@@ -300,6 +300,10 @@ const getItemsSave = async () => {
}
};
const handleSelectChangeEmits = (params: any) => {
console.log("123232", params);
if (params.prop === "nav_id") {
return;
}
dataStore.editRuleForm.pid = params?.id;
};
//更新
@@ -336,7 +340,6 @@ const handleResetClick = () => {
if (dataStore.title === "编辑导航") {
getItemsRead(dataStore.editRuleForm.id);
} else {
console.log("走到了这里");
resetFields();
}
};
@@ -362,6 +365,7 @@ const reset = () => {
dataStore.searchParam.name = "";
dataStore.searchParam.nav_id = "";
dataStore.searchParam.Time = "";
dataStore.searchParam.pid = "";
getItemsList();
};
</script>