-
详情
+
{{ title }}
关闭
@@ -111,16 +111,16 @@ const init = (type, row) => {
fjdz.value = []
tabHeightFn()
dialogForm.value = true;
- title.value = type == "add" ? "新增" : type == "info" ? "详情" : "编辑";
+ title.value = type == "edit" ? "编辑" : "详情"
// 初始化表单数据,并根据详情页设置禁用状态
- // if (row) getDataById(row.id);
+ if (row) getDataById(row.id);
};
// 根据id查询详情
const getDataById = (id) => {
- // qcckGet({id}, "/mosty-gsxt/qbcj/selectByid").then((res) => {
- // listQuery.value = res;
- // pageForm.tableData = res.ryList || [];
- // });
+ qcckGet({id}, "/mosty-gsxt/qbcj/selectByid").then((res) => {
+ listQuery.value = res;
+ pageForm.tableData = res.ryList || [];
+ });
};
// 关闭
diff --git a/src/views/backOfficeSystem/ResearchJudgment/MoralAnalysis/index.vue b/src/views/backOfficeSystem/ResearchJudgment/MoralAnalysis/index.vue
index bdfa31a..c27d17e 100644
--- a/src/views/backOfficeSystem/ResearchJudgment/MoralAnalysis/index.vue
+++ b/src/views/backOfficeSystem/ResearchJudgment/MoralAnalysis/index.vue
@@ -41,7 +41,7 @@
-
+
+
+
+
编辑
- 详情
+ 详情
删除
@@ -63,7 +66,7 @@
@changeNo="changeNo"
@changeSize="changeSize"
:tableHeight="pageData.tableHeight"
- :pageConfiger="{ ...pageData.pageConfiger, total: pageData.total }"
+ :pageConfigerR="{ ...pageData.pageConfigerR, total: pageData.total }"
/>
@@ -113,7 +116,29 @@ const searchConfiger = ref([
showType: "input"
}
]);
+const searchConfigerR = ref([
+ {
+ label: "线索名称",
+ prop: "xsMc",
+ placeholder: "请输入线索名称",
+ showType: "input"
+ },
+ {
+ label: "线索类型",
+ prop: "xlLx",
+ placeholder: "请选择线索类型",
+ showType: "select",
+ options:D_GS_XS_LX
+ },
+ {
+ label: "内容关键字",
+ prop: "xsNr",
+ placeholder: "请输入内容关键字",
+ showType: "input"
+ }
+]);
const queryFrom = ref({});
+const queryFromR = ref({});
const container = ref('')
const btnLoading = ref(false)
const prsentText = ref(null)
@@ -134,7 +159,7 @@ const pageData = reactive({
loading: false
},
total: 0,
- pageConfiger: {
+ pageConfigerR: {
pageSize: 20,
pageCurrent: 1
}, //分页
@@ -147,26 +172,25 @@ const pageData = reactive({
{ label: "要素描述", prop: "ysms",showOverflowTooltip:true },
],
tableColumnR: [
- { label: "线索名称", prop: "yymc",showOverflowTooltip:true },
- { label: "线索类型", prop: "yslx",showOverflowTooltip:true },
- { label: "指向地点", prop: "ysms",showOverflowTooltip:true },
- { label: "线索内容", prop: "ysms",showOverflowTooltip:true },
+ { label: "线索名称", prop: "xsMc",showOverflowTooltip:true },
+ { label: "线索类型", prop: "xlLx",showOverflowTooltip:true,showSolt:true },
+ { label: "指向地点", prop: "zxdz",showOverflowTooltip:true },
+ { label: "线索内容", prop: "xsNr",showOverflowTooltip:true },
],
});
onMounted(() => {
tabHeightFn();
getList();
+ getjxListR();
});
// 搜索
const onSearch = (val) => {
queryFrom.value = { ...val };
- pageData.pageConfiger.pageCurrent = 1;
getList();
};
-
const getList = () => {
pageData.tableConfiger.loading = true;
qcckGet(queryFrom.value,'/mosty-gsxt/qbyy/selectList').then((res)=>{
@@ -175,6 +199,23 @@ const getList = () => {
})
};
+// 搜索
+const onSearchR = (val) => {
+ queryFromR.value = { ...val };
+ pageData.tableConfigerR.pageCurrent = 1;
+ getjxListR();
+};
+
+const getjxListR = () => {
+ pageData.tableConfigerR.loading = true;
+ qcckGet(queryFromR.value,'/mosty-gsxt/qbcj/selectPage').then((res)=>{
+ pageData.tableDataR = res.records || [];
+ pageData.tableConfigerR.loading = false;
+ }).catch(()=>{
+ pageData.tableConfigerR.loading = false;
+ })
+};
+
// 删除
const delDictItem = (id) => {
proxy.$confirm("确定要删除", "警告", {type: "warning"}).then(() => {
@@ -187,12 +228,12 @@ const delDictItem = (id) => {
// 删除右边
const delDictItemRight = (id) => {
- // proxy.$confirm("确定要删除", "警告", {type: "warning"}).then(() => {
- // qcckPost({id},'/mosty-gsxt/qbyy/delete').then(()=>{
- // proxy.$message({ type: "success", message: "删除成功" });
- // getList();
- // })
- // }).catch(() => {});
+ proxy.$confirm("确定要删除", "警告", {type: "warning"}).then(() => {
+ qcckPost({id},'/mosty-gsxt/qbcj/delete').then(()=>{
+ proxy.$message({ type: "success", message: "删除成功" });
+ getjxListR();
+ })
+ }).catch(() => {});
};
@@ -210,12 +251,12 @@ const lookdetail = (type, row) =>{
const changeNo = (val) => {
- // pageData.pageConfiger.pageCurrent = val;
- // getListR();
+ pageData.pageConfigerR.pageCurrent = val;
+ getListR();
};
const changeSize = (val) => {
- // pageData.pageConfiger.pageSize = val;
- // getListR();
+ pageData.pageConfigerR.pageSize = val;
+ getListR();
};
@@ -238,8 +279,7 @@ const getText = (val) =>{
"max_tokens": 4096,
"stream": false
}
- // 拼接字典
- // 线索类型:
+ // 拼接字典 线索类型:
let xslx = '线索类型是一个字典,字典内容包括:' + (D_GS_XS_LX.value.map(item=>item.dm+':'+item.zdmc).join(','))+'\n'
let qbLy = '情报来源是一个字典,字典内容包括:' + (D_GS_XS_LY.value.map(item=>item.dm+':'+item.zdmc).join(','))+'\n'
let sszt = '所属专题是一个字典,字典内容包括:' + (D_BZ_SSZT.value.map(item=>item.dm+':'+item.zdmc).join(','))+'\n'
@@ -248,9 +288,8 @@ const getText = (val) =>{
obj.messages[1].content = obj.messages[1].content + val.text;
prsentText.value = obj;
qcckPost({fjdz:val.fjdz,tjnr:val.text},'/mosty-gsxt/qbcjjl/add').then((res)=>{
- qbid.value = res || ''
+ qbid.value = res || '';
})
-
}
const handleFx = () => {
@@ -275,6 +314,7 @@ const handleFx = () => {
}
qcckPost(params,'/mosty-gsxt/qbcj/add').then((res)=>{
console.log(res,'============');
+ getjxListR()
})
})
}