index.vue
<template>
<div class="components-biz">
<!-- <LF></LF> -->
<!-- <lf-attrs></lf-attrs> -->
</div>
</template>
<style></style>
<script>
// import boFormItemVue from "../../../../components/bo-form-item/bo-form-item.vue";
/* eslint-disable no-unused-vars */
require(`./style.scss`);
import method from "./method";
export default {
//命名:1、小写;2、- 连接;3、包含完整路径
name: "components-biz",
componentsUsed: {
name: "components-biz",
},
//路由路径
routerUsed: {
path: "/components/biz",
name: "components-biz",
meta: {
keepAlive: true,
name: "components-biz",
},
component: (r) => require.ensure([], () => r(require("./index")), "components-bs"),
},
data() {
return {
num: 3,
footConfig: {
selected: "components-biz",
},
//公共必须参数 start
scrollId: "",
rootMeta: {
mkey: null,
field: null
},
filter: {
_menuId: null,
_nodejs: "common-data",
},
//公共参数 end
//===========公共部分 start
userActions: [],
descriptionEmpty: "数据加载中",
firstLoad: true,
loading: false,
merc: {
data: [],
value: null,
},
used: {
data: [],
},
//===========公共部分 end
};
},
props: {
//#region 控制台:接收表格传递过来的数据参数
scopeRow: {
type: Object,
default: function () {
return {};
},
},
//#endregion 接收表格传递过来的数据参数
value: {
type: Object,
default: () => { },
},
metaQuery: {
type: Object,
default: () => { },
},
mainTabs: {
type: Array,
default: () => [],
},
mainPopup: {
type: Object,
default: () => { },
},
},
created() {
//===========公共部分 start
// this.scrollId = this.$crypto.md5(this.$route.fullPath);
method.init(this);
//===========公共部分 end
let that = this;
//加载功能信息 start
//加载功能信息 end
},
computed: {
//===========公共部分 start
searchImg: () => {
// <van-empty slot="empty" :image="searchImg" description="暂无数据" />
return window.$appConfig.empty.search;
},
//===========公共部分 end
},
methods: {
handleSearchRemote(v) {
// this.filter.remoteName = v;
// this.$emit("on-remote-search", this.filter.remoteName);
},
onRefresh() {
method.loadDataComm(this);
},
handleToEdit(item) {
// this.$link.toLinkUrl(`/company/edit/${item["icId"]}`, this, {
// query: { icId: item["icId"] },
// });
},
handleToAdd(item) {
// this.$link.toLinkUrl(`/company/add/${item["icId"]}`, this, {
// query: { icId: item["icId"] },
// });
},
handleToDetail(item) {
// this.$link.toLinkUrl(`/company/detail/${item["icId"]}`, this, {
// query: { icId: item["icId"] },
// });
},
onSubmitModify(item) {
// method.onSubmitModify(this, item);
},
onSubmitDel(item) {
// method.onSubmitDel(this, item);
},
},
watch: {
// "$route.params.filterIcIdCL": function (to, from) {
// let that = this;
// if (to !== undefined && to !== from) {
// let that = this;
// method.loadDataComm(that);
// //console.log("page");
// }
// },
//#region 控制台:接收表格传递过来的数据参数
// "scopeRow.policyId": function (to, from) {
// let that = this;
// if (to !== undefined && to !== from) {
// let that = this;
// method.loadDataComm(that);
// //console.log("page");
// }
// }
//#endregion 控制台:接收表格传递过来的数据参数
},
components: {
// "TurboAdpter": () => import("@/components/workflow/TurboAdpter.vue"),
// "LF": () => import("@/components/workflow/LF.vue")
},
// ,
// beforeRouteEnter(to, from, next) {
// console.log(to);
// next(vm => {
// vm.$router.replace(from.path);
// });
// }
};
</script>
文档更新时间: 2022-09-18 14:56 作者:admin