上饶市警务平台后台管理前端
guoshilong
2022-11-28 2625ee88c405ecf102ca26f8601146fe38392c13
src/views/security/security.vue
@@ -32,7 +32,7 @@
</template>
<script>
  import {getList, getDetail, add, update, remove} from "@/api/security/security";
  import {getPage, getDetail, add, update, remove} from "@/api/security/security";
  import {mapGetters} from "vuex";
  export default {
@@ -81,6 +81,12 @@
            {
              label: "活动内容",
              prop: "content",
            },
            {
              label: "位置",
              prop: "position",
              type: "input",
              hide:true
            },
          ]
        },
@@ -207,7 +213,7 @@
      },
      onLoad(page, params = {}) {
        this.loading = true;
        getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
        getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
          const data = res.data.data;
          this.page.total = data.total;
          this.data = data.records;