diff --git a/src/api/linkage.js b/src/api/linkage.js new file mode 100644 index 0000000..cc78268 --- /dev/null +++ b/src/api/linkage.js @@ -0,0 +1,5 @@ +import { _get, _post,_form,_delete } from "../http/index"; + +export const queryLinkage = (params, success, error) => _post("/code/linkage/list",params,success,error) +export const queryLinkageDictByValueAndParentId = (params, success, error) => _post("/code/linkage/selectLinkageDictByValueAndParentId",params,success,error) + diff --git a/src/views/administrative/appointment.vue b/src/views/administrative/appointment.vue index fd819e8..ad35538 100644 --- a/src/views/administrative/appointment.vue +++ b/src/views/administrative/appointment.vue @@ -111,6 +111,7 @@ @@ -132,6 +133,7 @@ import {queryUserInfo} from '../../api/enforce' import { queryEnterpriseInfoList } from '../../api/enterprise' import { reactive, ref } from "vue"; import { getDict } from "../../api/Home"; +import { queryLinkage, queryLinkageDictByValueAndParentId } from "../../api/linkage"; import {uploadFile} from "../../util/fileUpload"; //用户筛选弹窗 import UserPopup from './userFilter.vue'; @@ -228,6 +230,9 @@ const itemConfirm = ({ selectedOptions }) => { data.showGA = false; data.showItem = false; }; +const itemChange =({ selectedOptions }) => { + getLinkageByParentIdToGA(selectedOptions[0].id); +} const gaCancel = () => { data.showGA = false; data.showItem = false; @@ -254,6 +259,42 @@ const submit = () =>{ console.log("登记失败") }) } + +const getLinkageByValueAndParentId = (value, parentId) => { + // 查询检查要求字典信息 + queryLinkageDictByValueAndParentId({"value":value, "parentId": parentId}, success => { + getLinkageByParentIdToItem(success.id) + },error=>{}); +} + +const getLinkageByParentIdToItem = (parentId) => { + // 查询检查要求字典信息 + queryLinkage({"parentId": parentId}, success => { + for(var i=0; i{}); +} + +const getLinkageByParentIdToGA = (parentId) => { + // 查询检查要求字典信息 + data.ga_columns = []; + queryLinkage({"parentId": parentId}, success => { + for(var i=0; i{}); +} + //初始化参数,获取扫码的企业统一信用编码 onMounted(() =>{ //查询当前登录人员信息 @@ -265,19 +306,21 @@ onMounted(() =>{ submitData.lawEnforcementId = success.data.dept.deptId; },error=>{}); + getLinkageByValueAndParentId("check_item", "100"); + // 查询检查要求字典信息 - getDict({"dictType": "checkRequire"}, success => { - for(var i=0; i{}); + // getDict({"dictType": "checkRequire"}, success => { + // for(var i=0; i{}); // 查询检查要求字典信息 - getDict({"dictType": "checkItem"}, success => { - for(var i=0; i{}); + // getDict({"dictType": "checkItem"}, success => { + // for(var i=0; i{}); }) const reciveData = (item) =>{