fujunling
2023-06-05 fbaa314196992bdd683be9f412c20961c0a443ef
Source/UBCS-WEB/src/components/FormTemplate/ResembleQuery.vue
@@ -1,7 +1,14 @@
<template>
  <div>
    <el-table :data="tableData" v-loading="loading" height="250" :border="true">
    <el-table
      :data="tableData"
      v-loading="loading"
      height="250"
      :border="true"
      size="small"
    >
      <el-table-column
        v-if="column.length > 0"
        type="index"
        width="60"
        label="序号"
@@ -55,6 +62,10 @@
      type: String,
      default: "",
    },
    codeRuleOid: {
      type: String,
      default: "",
    },
    type: {
      type: String,
      default: "add",
@@ -63,14 +74,9 @@
      type: Object,
      default: () => ({}),
    },
    codeRuleOid: {
      type: String,
      default: "",
    },
  },
  data() {
    return {
      tableVisible: true,
      formTemplateVisible: false,
      activeName: "findlike",
      tableData: [],
@@ -114,8 +120,6 @@
      formItems: [],
    };
  },
  created() {},
  computed: {},
  methods: {
    // 相似项查询
    resembleQuery(form) {
@@ -127,10 +131,9 @@
        codeClassifyOid: this.codeClassifyOid,
        codeRuleOid: this.codeRuleOid,
        templateOid: this.templateOid,
        data: formValue
        data: formValue,
      };
      params = Object.assign(params, defaultValue);
      this.tableVisible = true;
      findLike(params).then((res) => {
        this.loading = false;
        this.tableData = res.data.data || [];