From 03df59a72de4354fcc731675c53dd2805c2ec8b1 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 21 Jul 2022 17:26:02 +0800
Subject: [PATCH] 数据新增调整

---
 src/views/mechanism/mechanism.vue | 1013 ++++++++++++++++++++++++++++++-----------------------------
 1 files changed, 518 insertions(+), 495 deletions(-)

diff --git a/src/views/mechanism/mechanism.vue b/src/views/mechanism/mechanism.vue
index 7ac1b0f..bae66a9 100644
--- a/src/views/mechanism/mechanism.vue
+++ b/src/views/mechanism/mechanism.vue
@@ -1,512 +1,535 @@
 <template>
-  <basic-container>
-    <avue-crud
-      :option="option"
-      :table-loading="loading"
-      :data="data"
-      :page.sync="page"
-      :permission="permissionList"
-      :before-open="beforeOpen"
-      v-model="form"
-      ref="crud"
-      @row-update="rowUpdate"
-      @row-save="rowSave"
-      @row-del="rowDel"
-      @search-change="searchChange"
-      @search-reset="searchReset"
-      @selection-change="selectionChange"
-      @current-change="currentChange"
-      @size-change="sizeChange"
-      @refresh-change="refreshChange"
-      @on-load="onLoad"
-    >
-      <template slot="menuLeft">
-        <el-button
-          type="danger"
-          size="small"
-          icon="el-icon-delete"
-          plain
-          v-if="permission.mechanism_delete"
-          @click="handleDelete"
-          >删 除
-        </el-button>
-      </template>
-      <template slot-scope="{ type, disabled }" slot="chouseJdWdForm">
-        <chousePoint @setData="getMapDatas" ref="chousePointRef"></chousePoint>
-      </template>
-    </avue-crud>
-  </basic-container>
+    <basic-container>
+        <avue-crud
+            :option="option"
+            :table-loading="loading"
+            :data="data"
+            :page.sync="page"
+            :permission="permissionList"
+            :before-open="beforeOpen"
+            v-model="form"
+            ref="crud"
+            @row-update="rowUpdate"
+            @row-save="rowSave"
+            @row-del="rowDel"
+            @search-change="searchChange"
+            @search-reset="searchReset"
+            @selection-change="selectionChange"
+            @current-change="currentChange"
+            @size-change="sizeChange"
+            @refresh-change="refreshChange"
+            @on-load="onLoad"
+        >
+            <template slot="menuLeft">
+                <el-button
+                    type="danger"
+                    size="small"
+                    icon="el-icon-delete"
+                    plain
+                    v-if="permission.mechanism_delete"
+                    @click="handleDelete"
+                >删 除</el-button>
+            </template>
+            <template slot-scope="{ type, disabled }" slot="chouseJdWdForm">
+                <chousePoint @setData="getMapDatas" ref="chousePointRef"></chousePoint>
+            </template>
+
+            <template slot-scope="{ type, disabled }" slot="xForm">
+                <setxy @setData="setXyMapDatas"></setxy>
+            </template>
+        </avue-crud>
+    </basic-container>
 </template>
 
 <script>
 import {
-  getList,
-  getDetail,
-  add,
-  update,
-  remove,
-} from "@/api/mechanism/mechanism";
-import { mapGetters } from "vuex";
-import { getDeptTree } from "@/api/system/dept";
+    getList,
+    getDetail,
+    add,
+    update,
+    remove,
+} from "@/api/mechanism/mechanism"
+import { mapGetters } from "vuex"
+import { getDeptTree } from "@/api/system/dept"
 
 export default {
-  data() {
-    return {
-      search: {},
-      form: {},
-      query: {},
-      loading: true,
-      page: {
-        pageSize: 10,
-        currentPage: 1,
-        total: 0,
-      },
-      selectionList: [],
-      option: {
-        height: "auto",
-        calcHeight: 30,
-        tip: false,
-        searchShow: true,
-        searchMenuSpan: 6,
-        border: true,
-        index: true,
-        viewBtn: true,
-        align: "center",
-        indexLabel: "序号",
-        selection: true,
-        dialogClickModal: false,
-        column: [
-          {
-            label: "名称",
-            prop: "mechanismname",
-            search: true,
-            rules: [
-              {
-                required: true,
-                message: "请输入名称",
-                trigger: "blur",
-              },
-            ],
-          },
-          {
-            label: "电话",
-            prop: "telephone",
-            rules: [
-              {
-                required: true,
-                message: "请输入电话",
-                trigger: "blur",
-              },
-            ],
-          },
-          {
-            label: "所属机构",
-            type: "select",
-            dicUrl: "/api/blade-system/dict-biz/dictionary?code=mechanism",
-            props: {
-              label: "dictValue",
-              value: "dictKey",
+    data () {
+        return {
+            search: {},
+            form: {},
+            query: {},
+            loading: true,
+            page: {
+                pageSize: 10,
+                currentPage: 1,
+                total: 0,
             },
-            dataType: "number",
-            slot: true,
-            prop: "type",
-            search: true,
-            rules: [
-              {
-                required: true,
-                message: "请输入所属机构",
-                trigger: "blur",
-              },
-            ],
-          },
-          {
-            label: "所属建筑",
-            prop: "mtype",
-            hide: true,
-            type: "select",
-            props: {
-              label: "dictValue",
-              value: "dictKey",
+            selectionList: [],
+            option: {
+                height: "auto",
+                calcHeight: 30,
+                tip: false,
+                searchShow: true,
+                searchMenuSpan: 6,
+                border: true,
+                index: true,
+                viewBtn: true,
+                align: "center",
+                indexLabel: "序号",
+                selection: true,
+                dialogClickModal: false,
+                column: [
+                    {
+                        label: "名称",
+                        prop: "mechanismname",
+                        search: true,
+                        rules: [
+                            {
+                                required: true,
+                                message: "请输入名称",
+                                trigger: "blur",
+                            },
+                        ],
+                    },
+                    {
+                        label: "电话",
+                        prop: "telephone",
+                        rules: [
+                            {
+                                required: true,
+                                message: "请输入电话",
+                                trigger: "blur",
+                            },
+                        ],
+                    },
+                    {
+                        label: "所属机构",
+                        type: "select",
+                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=mechanism",
+                        props: {
+                            label: "dictValue",
+                            value: "dictKey",
+                        },
+                        dataType: "number",
+                        slot: true,
+                        prop: "type",
+                        search: true,
+                        rules: [
+                            {
+                                required: true,
+                                message: "请输入所属机构",
+                                trigger: "blur",
+                            },
+                        ],
+                    },
+                    {
+                        label: "所属建筑",
+                        prop: "mtype",
+                        hide: true,
+                        type: "select",
+                        props: {
+                            label: "dictValue",
+                            value: "dictKey",
+                        },
+                        dataType: "number",
+                        cell: true,
+                        cascaderItem: ["xtype", "loutype"],
+                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=building",
+                        rules: [
+                            {
+                                required: true,
+                                message: "请输入所属建筑",
+                                trigger: "blur",
+                            },
+                        ],
+                    },
+                    {
+                        label: "所属校区",
+                        hide: true,
+                        prop: "xtype",
+                        type: "select",
+                        cell: true,
+                        props: {
+                            label: "dictValue",
+                            value: "dictKey",
+                        },
+                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=campus",
+                        rules: [
+                            {
+                                required: true,
+                                message: "请输入所属校区",
+                                trigger: "blur",
+                            },
+                        ],
+                    },
+                    {
+                        label: "所属楼",
+                        prop: "loutype",
+                        hide: true,
+                        type: "tree",
+                        cell: true,
+                        props: {
+                            label: "dictValue",
+                            value: "dictKey",
+                        },
+                        dicUrl:
+                            "/api/blade-architecture/architecture/selectType?campus={{key}}&type={{mtype}}",
+                        rules: [
+                            {
+                                required: true,
+                                message: "请输入所属楼",
+                                trigger: "blur",
+                            },
+                        ],
+                    },
+
+                    {
+                        label: "2.5维坐标",
+                        prop: "x",
+                        hide: true,
+                        span: 24,
+                        rules: [
+                            {
+                                required: true,
+                                message: "请选择2.5维坐标",
+                            },
+                        ],
+                    },
+
+                    {
+                        label: "选择地点",
+                        prop: "chouseJdWd",
+                        hide: true,
+                        viewDisplay: false,
+                        span: 24,
+                        // rules: [
+                        //   {
+                        //     required: true,
+                        //     message: "请选择地点",
+                        //     trigger: "blur",
+                        //   },
+                        // ],
+                    },
+                    {
+                        label: "详细地点",
+                        prop: "addressName",
+                        hide: true,
+                        // overHidden: true,
+                        editDisplay: false,
+                        addDisplay: false,
+                        span: 24,
+                        // rules: [
+                        //   {
+                        //     required: true,
+                        //     message: "请选择地点",
+                        //     trigger: "blur",
+                        //   },
+                        // ],
+                    },
+                    {
+                        label: "经度",
+                        prop: "jd",
+                        disabled: true,
+                        rules: [
+                            {
+                                required: true,
+                                message: "请选择地点",
+                                trigger: "blur",
+                            },
+                        ],
+                    },
+                    {
+                        label: "纬度",
+                        prop: "wd",
+                        disabled: true,
+                        rules: [
+                            {
+                                required: true,
+                                message: "请选择纬度",
+                                trigger: "blur",
+                            },
+                        ],
+                    },
+                    {
+                        label: "监控地址",
+                        hide: true,
+                        prop: "videourl",
+                    },
+                    {
+                        label: "偏航角",
+                        addDisplay: false,
+                        hide: true,
+                        prop: "heading",
+                    },
+                    {
+                        label: "俯仰角",
+                        addDisplay: false,
+                        hide: true,
+                        prop: "pitch",
+                    },
+                    {
+                        label: "翻转角",
+                        addDisplay: false,
+                        hide: true,
+                        prop: "roll",
+                    },
+                    {
+                        label: "高度",
+                        addDisplay: false,
+                        hide: true,
+                        prop: "gd",
+                    },
+                    // {
+                    //   label: "地址",
+                    //   hide: true,
+                    //   prop: "address",
+                    // },
+                    {
+                        label: "网站地址",
+                        prop: "websiteurl",
+                        rules: [
+                            {
+                                required: true,
+                                message: "请输入网站地址",
+                                trigger: "blur",
+                            },
+                        ],
+                    },
+                    {
+                        label: "图片",
+                        prop: "tpurl",
+                        type: "upload",
+                        listType: "picture-card",
+                        //dataType: 'string',
+                        action: "/api/blade-resource/oss/endpoint/put-file",
+                        propsHttp: {
+                            res: "data",
+                            url: "link",
+                        },
+                        span: 12,
+                    },
+                    // {
+                    //   label: "二维码",
+                    //   prop: "codeurl",
+                    //   type: 'upload',
+                    //   listType: 'picture-card',
+                    //   dataType: 'string',
+                    //   action: '/api/blade-resource/oss/endpoint/put-file',
+                    //   propsHttp: {
+                    //     res: 'data',
+                    //     url: 'link',
+                    //   },
+                    //   span: 12,
+                    // },
+                    {
+                        label: "介绍",
+                        prop: "introduce",
+                        component: "AvueUeditor",
+                        options: {
+                            action: "/api/blade-resource/oss/endpoint/put-file",
+                            props: {
+                                res: "data",
+                                url: "link",
+                            },
+                        },
+                        hide: true,
+                        minRows: 6,
+                        span: 24,
+                    },
+                ],
             },
-            dataType: "number",
-            cell: true,
-            cascaderItem: ["xtype", "loutype"],
-            dicUrl: "/api/blade-system/dict-biz/dictionary?code=building",
-            rules: [
-              {
-                required: true,
-                message: "请输入所属建筑",
-                trigger: "blur",
-              },
-            ],
-          },
-          {
-            label: "所属校区",
-            hide: true,
-            prop: "xtype",
-            type: "select",
-            cell: true,
-            props: {
-              label: "dictValue",
-              value: "dictKey",
-            },
-            dicUrl: "/api/blade-system/dict-biz/dictionary?code=campus",
-            rules: [
-              {
-                required: true,
-                message: "请输入所属校区",
-                trigger: "blur",
-              },
-            ],
-          },
-          {
-            label: "所属楼",
-            prop: "loutype",
-            hide: true,
-            type: "tree",
-            cell: true,
-            props: {
-              label: "dictValue",
-              value: "dictKey",
-            },
-            dicUrl:
-              "/api/blade-architecture/architecture/selectType?campus={{key}}&type={{mtype}}",
-            rules: [
-              {
-                required: true,
-                message: "请输入所属楼",
-                trigger: "blur",
-              },
-            ],
-          },
-          {
-            label: "选择地点",
-            prop: "chouseJdWd",
-            hide: true,
-            viewDisplay: false,
-            span: 24,
-            // rules: [
-            //   {
-            //     required: true,
-            //     message: "请选择地点",
-            //     trigger: "blur",
-            //   },
-            // ],
-          },
-          {
-            label: "详细地点",
-            prop: "addressName",
-            hide: true,
-            // overHidden: true,
-            editDisplay: false,
-            addDisplay: false,
-            span: 24,
-            // rules: [
-            //   {
-            //     required: true,
-            //     message: "请选择地点",
-            //     trigger: "blur",
-            //   },
-            // ],
-          },
-          {
-            label: "经度",
-            prop: "jd",
-            disabled: true,
-            rules: [
-              {
-                required: true,
-                message: "请选择地点",
-                trigger: "blur",
-              },
-            ],
-          },
-          {
-            label: "纬度",
-            prop: "wd",
-            disabled: true,
-            rules: [
-              {
-                required: true,
-                message: "请选择纬度",
-                trigger: "blur",
-              },
-            ],
-          },
-          {
-            label: "监控地址",
-            hide: true,
-            prop: "videourl",
-          },
-          {
-            label: "偏航角",
-            addDisplay: false,
-            hide: true,
-            prop: "heading",
-          },
-          {
-            label: "俯仰角",
-            addDisplay: false,
-            hide: true,
-            prop: "pitch",
-          },
-          {
-            label: "翻转角",
-            addDisplay: false,
-            hide: true,
-            prop: "roll",
-          },
-          {
-            label: "高度",
-            addDisplay: false,
-            hide: true,
-            prop: "gd",
-          },
-          // {
-          //   label: "地址",
-          //   hide: true,
-          //   prop: "address",
-          // },
-          {
-            label: "网站地址",
-            prop: "websiteurl",
-            rules: [
-              {
-                required: true,
-                message: "请输入网站地址",
-                trigger: "blur",
-              },
-            ],
-          },
-          {
-            label: "图片",
-            prop: "tpurl",
-            type: "upload",
-            listType: "picture-card",
-            //dataType: 'string',
-            action: "/api/blade-resource/oss/endpoint/put-file",
-            propsHttp: {
-              res: "data",
-              url: "link",
-            },
-            span: 12,
-          },
-          // {
-          //   label: "二维码",
-          //   prop: "codeurl",
-          //   type: 'upload',
-          //   listType: 'picture-card',
-          //   dataType: 'string',
-          //   action: '/api/blade-resource/oss/endpoint/put-file',
-          //   propsHttp: {
-          //     res: 'data',
-          //     url: 'link',
-          //   },
-          //   span: 12,
-          // },
-          {
-            label: "介绍",
-            prop: "introduce",
-            component: "AvueUeditor",
-            options: {
-              action: "/api/blade-resource/oss/endpoint/put-file",
-              props: {
-                res: "data",
-                url: "link",
-              },
-            },
-            hide: true,
-            minRows: 6,
-            span: 24,
-          },
-        ],
-      },
-      data: [],
-    };
-  },
-  computed: {
-    ...mapGetters(["permission"]),
-    permissionList() {
-      return {
-        addBtn: this.vaildData(this.permission.mechanism_add, false),
-        viewBtn: this.vaildData(this.permission.mechanism_view, false),
-        delBtn: this.vaildData(this.permission.mechanism_delete, false),
-        editBtn: this.vaildData(this.permission.mechanism_edit, false),
-      };
-    },
-    ids() {
-      let ids = [];
-      this.selectionList.forEach((ele) => {
-        ids.push(ele.id);
-      });
-      return ids.join(",");
-    },
-  },
-  methods: {
-    getMapDatas(res) {
-      this.form["jd"] = res[0];
-      this.form["wd"] = res[1];
-      this.form["addressName"] = res[2];
-    },
-    initData() {
-      getDeptTree().then((res) => {
-        const column = this.findObject(this.option.column, "type");
-        column.dicData = res.data.data;
-      });
-    },
-    rowSave(row, done, loading) {
-      row["address"] = this.form.addressName;
-      row["addressName"] = this.form.addressName;
-      // console.log(row);
-      // loading();
-      // return;
-      var d = [];
-      //var dk = [];
-      for (var k in row.tpurl) {
-        d.push(row.tpurl[k].value);
-      }
-      // for (var ks in row.codeurl) {
-      //   dk.push(row.codeurl[ks].value);
-      // }
-      row.tpurl = d.join(",");
-      //row.codeurl = dk.join(",");
-      add(row).then(
-        () => {
-          this.onLoad(this.page);
-          this.$message({
-            type: "success",
-            message: "操作成功!",
-          });
-          done();
-        },
-        (error) => {
-          loading();
-          window.console.log(error);
+            data: [],
         }
-      );
     },
-    rowUpdate(row, index, done, loading) {
-      update(row).then(
-        () => {
-          this.onLoad(this.page);
-          this.$message({
-            type: "success",
-            message: "操作成功!",
-          });
-          done();
+    computed: {
+        ...mapGetters(["permission"]),
+        permissionList () {
+            return {
+                addBtn: this.vaildData(this.permission.mechanism_add, false),
+                viewBtn: this.vaildData(this.permission.mechanism_view, false),
+                delBtn: this.vaildData(this.permission.mechanism_delete, false),
+                editBtn: this.vaildData(this.permission.mechanism_edit, false),
+            }
         },
-        (error) => {
-          loading();
-          console.log(error);
-        }
-      );
+        ids () {
+            let ids = []
+            this.selectionList.forEach((ele) => {
+                ids.push(ele.id)
+            })
+            return ids.join(",")
+        },
     },
-    rowDel(row) {
-      this.$confirm("确定将选择数据删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(() => {
-          return remove(row.id);
-        })
-        .then(() => {
-          this.onLoad(this.page);
-          this.$message({
-            type: "success",
-            message: "操作成功!",
-          });
-        });
+    methods: {
+
+        setXyMapDatas (res) {
+            this.form["x"] = res
+        },
+
+        getMapDatas (res) {
+            this.form["jd"] = res[0]
+            this.form["wd"] = res[1]
+            this.form["addressName"] = res[2]
+        },
+        initData () {
+            getDeptTree().then((res) => {
+                const column = this.findObject(this.option.column, "type")
+                column.dicData = res.data.data
+            })
+        },
+        rowSave (row, done, loading) {
+            row["address"] = this.form.addressName
+            row["addressName"] = this.form.addressName
+            // console.log(row);
+            // loading();
+            // return;
+            var d = []
+            //var dk = [];
+            for (var k in row.tpurl) {
+                d.push(row.tpurl[k].value)
+            }
+            // for (var ks in row.codeurl) {
+            //   dk.push(row.codeurl[ks].value);
+            // }
+            row.tpurl = d.join(",")
+            //row.codeurl = dk.join(",");
+            add(row).then(
+                () => {
+                    this.onLoad(this.page)
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!",
+                    })
+                    done()
+                },
+                (error) => {
+                    loading()
+                    window.console.log(error)
+                }
+            )
+        },
+        rowUpdate (row, index, done, loading) {
+            update(row).then(
+                () => {
+                    this.onLoad(this.page)
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!",
+                    })
+                    done()
+                },
+                (error) => {
+                    loading()
+                    console.log(error)
+                }
+            )
+        },
+        rowDel (row) {
+            this.$confirm("确定将选择数据删除?", {
+                confirmButtonText: "确定",
+                cancelButtonText: "取消",
+                type: "warning",
+            })
+                .then(() => {
+                    return remove(row.id)
+                })
+                .then(() => {
+                    this.onLoad(this.page)
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!",
+                    })
+                })
+        },
+        handleDelete () {
+            if (this.selectionList.length === 0) {
+                this.$message.warning("请选择至少一条数据")
+                return
+            }
+            this.$confirm("确定将选择数据删除?", {
+                confirmButtonText: "确定",
+                cancelButtonText: "取消",
+                type: "warning",
+            })
+                .then(() => {
+                    return remove(this.ids)
+                })
+                .then(() => {
+                    this.onLoad(this.page)
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!",
+                    })
+                    this.$refs.crud.toggleSelection()
+                })
+        },
+        beforeOpen (done, type) {
+            if (["add", "edit"].includes(type)) {
+                this.initData()
+            }
+            if (["edit", "view"].includes(type)) {
+                getDetail(this.form.id).then((res) => {
+                    // console.log(res.data.data);
+                    this.form = res.data.data
+                    this.$store.commit('SET_MAP_X_Y', this.form.x)
+                    if (type == "edit") {
+                        let that = this
+                        this.$store.commit("readDom", {
+                            this: that,
+                            refName: "chousePointRef",
+                            fn: (dom) => {
+                                dom.openMaps({
+                                    jd: this.form.jd,
+                                    wd: this.form.wd,
+                                    name: this.form.addressName,
+                                })
+                            },
+                        })
+                    }
+                })
+            }
+            done()
+        },
+        searchReset () {
+            this.query = {}
+            this.onLoad(this.page)
+        },
+        searchChange (params, done) {
+            this.query = params
+            this.page.currentPage = 1
+            this.onLoad(this.page, params)
+            done()
+        },
+        selectionChange (list) {
+            this.selectionList = list
+        },
+        selectionClear () {
+            this.selectionList = []
+            this.$refs.crud.toggleSelection()
+        },
+        currentChange (currentPage) {
+            this.page.currentPage = currentPage
+        },
+        sizeChange (pageSize) {
+            this.page.pageSize = pageSize
+        },
+        refreshChange () {
+            this.onLoad(this.page, this.query)
+        },
+        onLoad (page, params = {}) {
+            this.loading = true
+            getList(
+                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
+                this.loading = false
+                this.selectionClear()
+            })
+        },
     },
-    handleDelete() {
-      if (this.selectionList.length === 0) {
-        this.$message.warning("请选择至少一条数据");
-        return;
-      }
-      this.$confirm("确定将选择数据删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(() => {
-          return remove(this.ids);
-        })
-        .then(() => {
-          this.onLoad(this.page);
-          this.$message({
-            type: "success",
-            message: "操作成功!",
-          });
-          this.$refs.crud.toggleSelection();
-        });
-    },
-    beforeOpen(done, type) {
-      if (["add", "edit"].includes(type)) {
-        this.initData();
-      }
-      if (["edit", "view"].includes(type)) {
-        getDetail(this.form.id).then((res) => {
-          // console.log(res.data.data);
-          this.form = res.data.data;
-          if (type == "edit") {
-            let that = this;
-            this.$store.commit("readDom", {
-              this: that,
-              refName: "chousePointRef",
-              fn: (dom) => {
-                dom.openMaps({
-                  jd: this.form.jd,
-                  wd: this.form.wd,
-                  name: this.form.addressName,
-                });
-              },
-            });
-          }
-        });
-      }
-      done();
-    },
-    searchReset() {
-      this.query = {};
-      this.onLoad(this.page);
-    },
-    searchChange(params, done) {
-      this.query = params;
-      this.page.currentPage = 1;
-      this.onLoad(this.page, params);
-      done();
-    },
-    selectionChange(list) {
-      this.selectionList = list;
-    },
-    selectionClear() {
-      this.selectionList = [];
-      this.$refs.crud.toggleSelection();
-    },
-    currentChange(currentPage) {
-      this.page.currentPage = currentPage;
-    },
-    sizeChange(pageSize) {
-      this.page.pageSize = pageSize;
-    },
-    refreshChange() {
-      this.onLoad(this.page, this.query);
-    },
-    onLoad(page, params = {}) {
-      this.loading = true;
-      getList(
-        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;
-        this.loading = false;
-        this.selectionClear();
-      });
-    },
-  },
 };
 </script>
 

--
Gitblit v1.9.3