yuwandanmian 1 年之前
父節點
當前提交
c5e9918b48

+ 1 - 0
src/views/data/frontHome/components/SearchBox2.vue

@@ -182,6 +182,7 @@ export default {
   },
   created() {
     this.getSelectData()
+    this.getDepList()
     this.showCodes = JSON.parse(JSON.stringify(this.codes))
   },
   methods: {

+ 1 - 1
src/views/data/frontHome/components/TableBox2.vue

@@ -32,7 +32,7 @@
         width="160"
         align="center">
         <template slot-scope="scope">
-          <span class="link" @click="toPage(scope.row.MED_REC_ID)"></span>
+          <span class="link" @click="toPage(scope.row.MED_REC_ID)">{{ scope.row.AAA28 }}</span>
         </template>
       </el-table-column>
       <el-table-column

+ 1 - 4
src/views/data/frontHome/index.vue

@@ -611,10 +611,7 @@ export default {
         limit: 10
       };
       this.$axios.post('/errorData', pramse).then(res => {
-        for (let item in res.data.list) {
-          this.errorDataList.push(res.data.list[item]);
-        }
-        console.log(this.errorDataList);
+        this.errorDataList = res.data.list
         this.nextListFelg = res.data.next;
       });
       // this.$message.success('加载下一页');

+ 19 - 4
src/views/search/index.vue

@@ -529,7 +529,12 @@ export default {
       } else {
         str = null;
       }
-      this.$set(this.sort, 0, {field: prop, sort: str})
+      if (str) {
+        this.$set(this.sort, 0, prop)
+        this.$set(this.sort, 1, str)
+      } else {
+        this.sort = []
+      }
       this.tableData = [];
       
       if (this.choice == 2) {
@@ -716,9 +721,11 @@ export default {
     funQuery(num) {
       const pramse = {
         limit: this.paginationData.pageSize,
-        page: this.paginationData.currentPage, // 是当前页数 默认是0 。普通检索的参数是
-        sort: this.sort
+        page: this.paginationData.currentPage // 是当前页数 默认是0 。普通检索的参数是
       };
+      if (this.sort.length) {
+        pramse.sort = this.sort
+      }
       let queryUrl = 'normalSearch';
       if (this.choice == '0') {
         queryUrl = 'normalSearch';
@@ -804,7 +811,15 @@ export default {
     handleProfessionSearch(params) {
       this.professionSearchData = params
       const { pageSize, currentPage } = this.paginationData
-      this.$axios3.post('/bl/serach', {...params, page_size: pageSize, page: currentPage, sort: this.sort }).then(res => {
+      const queryData = {
+        ...params,
+        page_size: pageSize,
+        page: currentPage
+      }
+      if (this.sort.length) {
+        queryData.sort = this.sort
+      }
+      this.$axios3.post('/bl/serach', queryData).then(res => {
         this.tableData = res.data.list || [];
         this.tableDataDetails = res.data.detail || [];
         this.paginationData.total = res.data.total;