YM
2024-04-29 13a727c58400a256af3f7582b62d8237b227329e
src/pages/TcmSystem/TcmSystem.vue
@@ -406,6 +406,7 @@
      // 显示多少条职官数据
      institutionIndex: 4,
      // 机构和职官的类型 取值:OFFICIAL->职官 INSTITUTION->机构 ALL->职官、机构
      searchType: "ALL",
      classifyType: "ALL",
      // 机构和职官的id
      classifyId: "",
@@ -516,7 +517,7 @@
    getMList(obj) {
      this.pageLoading = true;
      let Obj = {
        medicalSearchType: "ALL",
        medicalSearchType: this.searchType,
        type: this.classifyType, //查询类型 取值:OFFICIAL->职官 INSTITUTION->机构 ALL->职官、机构
        name: this.SearchValue, //搜索框检索
        dynastyId: this.classifyId, //点击朝代查询数据时,带上此参数
@@ -544,14 +545,19 @@
    },
    // list数组 获取list里面的详情shuju
    ListClick(item) {
      console.log(item,this.searchType);
      let Obj = {
        id: item.dataId,
        type: item.type
        rowId: this.searchType == "ALL" ? item.id : item.rowId,
        medicalSearchType: this.searchType,
        type: this.classifyType, //查询类型 取值:OFFICIAL->职官 INSTITUTION->机构 ALL->职官、机构
        name: this.SearchValue, //搜索框检索
        dynastyId: this.classifyId, //点击朝代查询数据时,带上此参数
        sort: this.rankVal, //排序方式 取值:CREATE创建时间,NAME名称
      };
      getMedicalDetails(Obj).then((res) => {
        this.ListDetails = {
          ...item,
          ...res.object
          ...res.object.curr
        };
      });
      this.dialogVisible = !this.dialogVisible;