diff --git a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue index beef788..7f58b96 100644 --- a/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue +++ b/src/views/backOfficeSystem/HumanIntelligence/CollectCrculate/index.vue @@ -36,7 +36,32 @@ @@ -64,10 +89,10 @@ import AddForm from "./components/addForm.vue"; import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js"; import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue"; const { proxy } = getCurrentInstance(); -const {D_GS_XS_LY, D_BZ_SSZT,D_BZ_SF,D_GS_XS_LX ,D_GS_XS_QTLX,D_BZ_XB} = proxy.$dict("D_GS_XS_LY","D_BZ_SSZT","D_BZ_SF","D_GS_XS_LX","D_GS_XS_QTLX","D_BZ_XB"); //获取字典数据 +const {D_GS_XS_CZZT,D_GS_XS_LY, D_BZ_SSZT,D_BZ_SF,D_GS_XS_LX ,D_GS_XS_QTLX,D_BZ_XB,D_BZ_XSSHZT} = proxy.$dict("D_GS_XS_CZZT","D_GS_XS_LY","D_BZ_SSZT","D_BZ_SF","D_GS_XS_LX","D_GS_XS_QTLX","D_BZ_XB","D_BZ_XSSHZT"); //获取字典数据 const detailDiloag = ref(); const searchBox = ref(); //搜索框 - +const chooseRow = ref({}) const searchConfiger = ref([ { label: "线索名称", prop: 'clueTitle', placeholder: "请输入线索名称", showType: "input" }, { label: "语义关键字", prop: 'semanticKeywords', placeholder: "请输入语义关键字", showType: "input" }, @@ -128,12 +153,26 @@ onMounted(() => { tabHeightFn(); }); -//选择类型 -const handleType = (val) => { - pageData.keyCount++; - pageData.pageConfiger.pageCurrent = 1; - getList() +const handleSh = (val) =>{ + chooseRow.value = {id:val.id,shzt:'01'} + val.visible = !val.visible; } +const cancel = (row) =>{ + row.visible = false; + rules.bhyy = false; + chooseRow.value = {} +} +const handleSumbit = (row) =>{ + rules.bhyy = !chooseRow.value.bhyy ? true :false; + if(chooseRow.value.shzt == '01' && rules.bhyy) return false; + let data = { ...chooseRow.value } + qcckPost(data,'/mosty-gsxt/qbcj/updateByXssh').then(res=>{ + row.visible = false; + proxy.$message({ type: "success", message: "审核成功" }); + getList(); + }) +} + // 搜索 const onSearch = (val) =>{ queryFrom.value = {...val} diff --git a/src/views/backOfficeSystem/ResearchJudgment/DatAcquisition/components/addForm.vue b/src/views/backOfficeSystem/ResearchJudgment/DatAcquisition/components/addForm.vue index a006e02..79898b1 100644 --- a/src/views/backOfficeSystem/ResearchJudgment/DatAcquisition/components/addForm.vue +++ b/src/views/backOfficeSystem/ResearchJudgment/DatAcquisition/components/addForm.vue @@ -158,7 +158,7 @@ const deleteRow = (index) =>{ const submit = () => { elform.value.submit((data) => { let url = title.value == "新增" ? "/mosty-gsxt/qbcj/add" : "/mosty-gsxt/qbcj/update"; - let params = { ...data ,ryList:pageForm.tableData}; + let params = { ...data ,ryList:pageForm.tableData,cjLx:'01'}; params.fjdz = fjdz.value.length > 0 ? fjdz.value.join(','):''; loading.value = true; qcckPost(params, url).then((res) => { diff --git a/src/views/backOfficeSystem/ResearchJudgment/DatAcquisition/index.vue b/src/views/backOfficeSystem/ResearchJudgment/DatAcquisition/index.vue index 6e72b4b..1002935 100644 --- a/src/views/backOfficeSystem/ResearchJudgment/DatAcquisition/index.vue +++ b/src/views/backOfficeSystem/ResearchJudgment/DatAcquisition/index.vue @@ -98,7 +98,7 @@ import MyTable from "@/components/aboutTable/MyTable.vue"; import Pages from "@/components/aboutTable/Pages.vue"; import Search from "@/components/aboutTable/Search.vue"; import AddForm from "./components/addForm.vue"; -import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js"; +import { qcckGet, qcckPost } from "@/api/qcckApi.js"; import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue"; import { useRouter } from "vue-router"; const router = useRouter(); @@ -171,7 +171,7 @@ const cancel = (row) =>{ const handleSumbit = (row) =>{ rules.bhyy = !chooseRow.value.bhyy ? true :false; if(chooseRow.value.shzt == '01' && rules.bhyy) return false; - let data = { ...chooseRow.value } + let data = { ...chooseRow.value ,cjLx:'01'} qcckPost(data,'/mosty-gsxt/qbcj/updateByXssh').then(res=>{ row.visible = false; proxy.$message({ type: "success", message: "审核成功" }); @@ -210,7 +210,7 @@ const getList = () =>{ // 删除 const delDictItem = (id) =>{ proxy.$confirm("确定要删除", "警告", {type: "warning"}).then(() => { - qcckPost({},'/mosty-gsxt/qbcj/delete/'+id).then(()=>{ + qcckPost({id},'/mosty-gsxt/qbcj/delete').then(()=>{ proxy.$message({ type: "success", message: "删除成功" }); getList(); })