feat: 🚀 图片排序
This commit is contained in:
Binary file not shown.
@@ -60,7 +60,7 @@ const getQAListDetails = async () => {
|
|||||||
//这里是传给基本信息组件的表单数据
|
//这里是传给基本信息组件的表单数据
|
||||||
dataStore.editRuleForm = cloneDeep(data);
|
dataStore.editRuleForm = cloneDeep(data);
|
||||||
if (!data.answer) {
|
if (!data.answer) {
|
||||||
editorRef!.value!.clearEditor();
|
editorRef?.value?.clearEditor();
|
||||||
}
|
}
|
||||||
// dataStore.editRuleForm.answer = convertSpanToDiv(dataStore.editRuleForm.answer);
|
// dataStore.editRuleForm.answer = convertSpanToDiv(dataStore.editRuleForm.answer);
|
||||||
|
|
||||||
@@ -97,11 +97,11 @@ const handleReset = () => {
|
|||||||
const resetFields = () => {
|
const resetFields = () => {
|
||||||
if (!formRef.value!.ruleFormRef) return;
|
if (!formRef.value!.ruleFormRef) return;
|
||||||
formRef!.value!.ruleFormRef.resetFields();
|
formRef!.value!.ruleFormRef.resetFields();
|
||||||
editorRef!.value!.clearEditor();
|
editorRef?.value?.clearEditor();
|
||||||
for (let key in dataStore.editRuleForm) {
|
for (let key in dataStore.editRuleForm) {
|
||||||
dataStore.editRuleForm[key] = "";
|
dataStore.editRuleForm[key] = "";
|
||||||
}
|
}
|
||||||
dataStore.editRuleForm.sort = 1;
|
dataStore.editRuleForm.sort = 0;
|
||||||
// dataStore.value = "";
|
// dataStore.value = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ const getArticleListDetails = async () => {
|
|||||||
const { data } = result;
|
const { data } = result;
|
||||||
dataStore.editRuleForm = data;
|
dataStore.editRuleForm = data;
|
||||||
if (!data.content) {
|
if (!data.content) {
|
||||||
editorRef.value.clearEditor(); // 调用子组件的清空方法
|
editorRef?.value?.clearEditor(); // 调用子组件的清空方法
|
||||||
}
|
}
|
||||||
// dataStore.editRuleForm.content = convertSpanToDiv(dataStore.editRuleForm.content);
|
// dataStore.editRuleForm.content = convertSpanToDiv(dataStore.editRuleForm.content);
|
||||||
let is = dataStore.editFormData[1].options.some((item: any) =>
|
let is = dataStore.editFormData[1].options.some((item: any) =>
|
||||||
@@ -151,7 +151,7 @@ const handleConfirmClick = () => {
|
|||||||
const handleReset = () => {
|
const handleReset = () => {
|
||||||
if ($route.query.type === "add") {
|
if ($route.query.type === "add") {
|
||||||
dataStore.editRuleForm = cloneDeep(EDIT_RULE_FORM);
|
dataStore.editRuleForm = cloneDeep(EDIT_RULE_FORM);
|
||||||
editorRef.value.clearEditor(); // 调用子组件的清空方法
|
editorRef?.value?.clearEditor(); // 调用子组件的清空方法
|
||||||
// if (!data.detail) {
|
// if (!data.detail) {
|
||||||
// dataStore.detail = "";
|
// dataStore.detail = "";
|
||||||
// editorRef.value.clearEditor(); // 调用子组件的清空方法
|
// editorRef.value.clearEditor(); // 调用子组件的清空方法
|
||||||
|
|||||||
@@ -40,11 +40,10 @@ export const initDetailParams = (dataStore: any, data: any, editorRef: any) => {
|
|||||||
stock_qty: data.stock_qty,
|
stock_qty: data.stock_qty,
|
||||||
id: data.id
|
id: data.id
|
||||||
});
|
});
|
||||||
console.log(dataStore.basicInfoRuleForm, "= dataStore.basicInfoRuleForm=");
|
|
||||||
//详情
|
//详情
|
||||||
if (!data.detail) {
|
if (!data.detail) {
|
||||||
dataStore.detail = "";
|
dataStore.detail = "";
|
||||||
editorRef.value.clearEditor(); // 调用子组件的清空方法
|
editorRef?.value?.clearEditor(); // 调用子组件的清空方法
|
||||||
} else {
|
} else {
|
||||||
dataStore.detail = cloneDeep(data.detail);
|
dataStore.detail = cloneDeep(data.detail);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user