@@ -367,7 +385,7 @@ const updateFormData = () => {
{
label: "线索内容",
prop: "xsNr",
- type: "textarea",
+ type: "slot",
width: "100%",
disabled: isReport || shouldDisableAll // report 或详情模式时禁用
}
@@ -495,10 +513,15 @@ const updateFormData = () => {
};
// 编辑器实例,必须用 shallowRef
const editorRef = shallowRef();
+const clueRef = shallowRef();
+
// 内容 HTML
const valueHtml = ref("hello
");
+// 内容 HTML
+const clueHtml = ref("hello
");
const toolbarConfig = {};
const editorConfig = ref({ placeholder: "请输入内容...", readOnly: false });
+const clueConfig = ref({ placeholder: "请输入内容...", readOnly: false });
const listQuery = ref({ sbRyLx: "06", xsLy: "02" }); //表单
const loading = ref(false);
@@ -539,6 +562,11 @@ const init = (type, row) => {
editorConfig.readOnly = true; // 禁用
}
+ if (typeOf == "leadDetails") {
+ clueRef.value.enable(); // 启用
+ clueConfig.readOnly = false; // 启用
+ }
+
if (row) getDataById(row.id);
if (row.sbRyId) getDataRyId(row.sbRyId);
};
@@ -605,7 +633,8 @@ const submit = () => {
submitData = {
...Object.fromEntries(
Object.entries(data).filter(([key]) => !reportFields.includes(key))
- )
+ ),
+ xsNr: clueHtml.value // 强制覆盖线索内容字段
};
}
@@ -678,6 +707,9 @@ const close = () => {
const handleCreated = (editor) => {
editorRef.value = editor; // 记录 editor 实例,重要!
};
+const clueCreated = (editor) => {
+ clueRef.value = editor; // 记录 editor 实例,重要!
+};
// 组件销毁时,也及时销毁编辑器
onBeforeUnmount(() => {
const editor = editorRef.value;
diff --git a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/dialogList.vue b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/dialogList.vue
index 4cff534..ae7c0e4 100644
--- a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/dialogList.vue
+++ b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/components/dialogList.vue
@@ -8,10 +8,10 @@
>
-
+
diff --git a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue
index c7e6a9f..0b589b1 100644
--- a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue
+++ b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue
@@ -315,7 +315,7 @@ const changeSize = (val) => {
// 获取列表
const getList = (val) => {
- pageData.tableConfiger.loading = true;
+ // pageData.tableConfiger.loading = true;
let data = { ...pageData.pageConfiger, ...queryFrom.value };
let url = "/mosty-gsxt/tbGsxtXs/selectPage";
qcckGet(data, url)
diff --git a/src/views/backOfficeSystem/HumanIntelligence/TaskScheduling/components/addForm.vue b/src/views/backOfficeSystem/HumanIntelligence/TaskScheduling/components/addForm.vue
index b894f01..4e0ba41 100644
--- a/src/views/backOfficeSystem/HumanIntelligence/TaskScheduling/components/addForm.vue
+++ b/src/views/backOfficeSystem/HumanIntelligence/TaskScheduling/components/addForm.vue
@@ -96,12 +96,8 @@
删除
- 采纳解除关联
@@ -260,6 +256,16 @@ const getDataById = (id) => {
tableDate.xsList = listQuery.value.xsList;
});
};
+//解除关联
+const relevancyClue = (row) => {
+ qcckPut({ id: row.id }, "/mosty-gsxt/tbGsxtRlqbRwdd/cancelXsGl/{id}").then(
+ (res) => {
+ tableDate.xsList = tableDate.xsList.filter((item) => item.id !== row.id);
+ listQuery.value.xsList = tableDate.xsList.map((item) => item.id);
+ proxy.$message({ type: "success", message: "解除关联成功" });
+ }
+ );
+};
// 获取部门列表
const getdepartmentList = () => {
@@ -323,7 +329,6 @@ const close = () => {
};
// 删除
const delDictItem = (id) => {
- console.log(id, "删除", tableDate.xsList);
tableDate.xsList = tableDate.xsList.filter((item) => item.id !== id);
listQuery.value.xsList = tableDate.xsList.map((item) => item.id);
};
diff --git a/src/views/backOfficeSystem/HumanIntelligence/TaskScheduling/index.vue b/src/views/backOfficeSystem/HumanIntelligence/TaskScheduling/index.vue
index 76ccf1d..68c04b1 100644
--- a/src/views/backOfficeSystem/HumanIntelligence/TaskScheduling/index.vue
+++ b/src/views/backOfficeSystem/HumanIntelligence/TaskScheduling/index.vue
@@ -26,7 +26,7 @@
-
+
diff --git a/src/views/backOfficeSystem/ResearchJudgment/IntelligenceManagement/components/addForm.vue b/src/views/backOfficeSystem/ResearchJudgment/IntelligenceManagement/components/addForm.vue
index 9314c12..4d109b5 100644
--- a/src/views/backOfficeSystem/ResearchJudgment/IntelligenceManagement/components/addForm.vue
+++ b/src/views/backOfficeSystem/ResearchJudgment/IntelligenceManagement/components/addForm.vue
@@ -3,194 +3,378 @@