|
|
@@ -3,7 +3,7 @@
|
|
|
<basic-container v-show="show" class="page-crad">
|
|
|
<el-row>
|
|
|
<el-col :span="4">
|
|
|
- <avue-tree :option="treeOption" :data="treeData" @node-click="nodeClick" style="height:73vh;" @save="corpTypeVisible = true">
|
|
|
+ <avue-tree ref="tree" :option="treeOption" :data="treeData" @node-click="nodeClick" style="height:73vh;" @save="corpTypeVisible = true">
|
|
|
<template slot="addBtn">
|
|
|
<el-tooltip class="item" effect="dark" content="新建分类" placement="top">
|
|
|
<i class="el-icon-setting" style="font-size:18px;line-height: 30px;width: 20px;padding: 0 10px;" @click="corpTypeVisible = true"></i>
|
|
|
@@ -19,6 +19,7 @@
|
|
|
:page.sync="page"
|
|
|
:search.sync="search"
|
|
|
@search-change="searchChange"
|
|
|
+ @search-reset="searchReset"
|
|
|
@current-change="currentChange"
|
|
|
@size-change="sizeChange"
|
|
|
@refresh-change="refreshChange"
|
|
|
@@ -121,6 +122,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+// @ts-nocheck
|
|
|
import detailsPage from "./detailsPage.vue";
|
|
|
import {getList, getCorpType, remove, customerList, submit, delCustomer} from "@/api/fc/customerInformation";
|
|
|
import corpType from "./components/index.vue";
|
|
|
@@ -316,7 +318,7 @@ export default {
|
|
|
{
|
|
|
label: "上级类型",
|
|
|
prop: "parentId",
|
|
|
- dicUrl: "/api/gubersail-admin/corpstype/page?corpType=KH",
|
|
|
+ dicUrl: "/api/gubersail-admin/corpstype/page?corpType=JXS",
|
|
|
type: "tree",
|
|
|
props: {
|
|
|
label: "cname",
|
|
|
@@ -608,10 +610,10 @@ export default {
|
|
|
this.onLoad(this.page, this.search);
|
|
|
},
|
|
|
getAllWorkDicts() {
|
|
|
- getCorpType({ corpType: "KH" }).then(res => {
|
|
|
+ getCorpType({ corpType: "JXS" }).then(res => {
|
|
|
this.treeData = res.data.data;
|
|
|
});
|
|
|
- customerList({ corpType: "KH" }).then(res => {
|
|
|
+ customerList({ corpType: "JXS" }).then(res => {
|
|
|
this.findObject(this.option4.column, "parentId").dicData = res.data.data.records;
|
|
|
});
|
|
|
this.$refs.crud.init();
|
|
|
@@ -628,6 +630,11 @@ export default {
|
|
|
this.onLoad(this.page, params);
|
|
|
done();
|
|
|
},
|
|
|
+ searchReset() {
|
|
|
+ this.$refs.tree.setCurrentKey(null);
|
|
|
+ this.search = this.$options.data().search;
|
|
|
+ this.onLoad(this.page);
|
|
|
+ },
|
|
|
refreshChange() {
|
|
|
this.onLoad(this.page, this.search);
|
|
|
},
|
|
|
@@ -645,7 +652,7 @@ export default {
|
|
|
data.endTime = data.date[1];
|
|
|
}
|
|
|
delete data.date;
|
|
|
- data.corpType = "KH";
|
|
|
+ data.corpType = "JXS";
|
|
|
this.loading = true;
|
|
|
getList({
|
|
|
current: page.currentPage,
|