Commit 712cd7ed authored by miaojiale's avatar miaojiale

随访的表格联动

parent fc1a4cca
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
import FormComponents from "@/components/FormComponents" import FormComponents from "@/components/FormComponents"
import CustomsTable from "@/components/CustomsTable" import CustomsTable from "@/components/CustomsTable"
import paginationMixin from "@/components/TabComponents/mixin" import paginationMixin from "@/components/TabComponents/mixin"
import searchMixin from "../searchMixin"
import { getCurrentFormByType } from "@/api/coop-group.js" import { getCurrentFormByType } from "@/api/coop-group.js"
import { getFollowSearch } from "@/api/followup" import { getFollowSearch } from "@/api/followup"
import { getDictDetail } from "@/api/dict.js" import { getDictDetail } from "@/api/dict.js"
...@@ -38,7 +39,7 @@ export default { ...@@ -38,7 +39,7 @@ export default {
FormComponents, FormComponents,
// CustomsTable, // CustomsTable,
}, },
mixins: [paginationMixin], mixins: [paginationMixin, searchMixin],
data() { data() {
return { return {
followId: "", followId: "",
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
<script> <script>
import FormComponents from "@/components/FormComponents" import FormComponents from "@/components/FormComponents"
import paginationMixin from "@/components/TabComponents/mixin" import paginationMixin from "@/components/TabComponents/mixin"
import searchMixin from "../searchMixin"
import { getCurrentFormByType } from "@/api/coop-group.js" import { getCurrentFormByType } from "@/api/coop-group.js"
import { getFollowSurvey } from "@/api/followup" import { getFollowSurvey } from "@/api/followup"
import { mapGetters } from "vuex" import { mapGetters } from "vuex"
...@@ -35,7 +36,7 @@ export default { ...@@ -35,7 +36,7 @@ export default {
components: { components: {
FormComponents, FormComponents,
}, },
mixins: [paginationMixin], mixins: [paginationMixin, searchMixin],
data() { data() {
return { return {
formId: "", //随访表单类型 formId: "", //随访表单类型
...@@ -255,7 +256,7 @@ export default { ...@@ -255,7 +256,7 @@ export default {
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({
selectedIndex: "table/selectedIndex", // selectedIndex: "table/selectedIndex",
refreshFlag: "table/refreshFlag", refreshFlag: "table/refreshFlag",
}), }),
}, },
......
import { mapGetters } from "vuex"
export default {
data() {
return {}
},
computed: {
...mapGetters({
selectedIndex: ["table/selectedIndex"],
}),
},
methods: {},
mounted() {},
watch: {
selectedIndex(v) {
if (v) {
this.handleSearch()
}
},
},
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment