Commit 69ceb835 authored by danfuman's avatar danfuman

修改

parent e967da69
...@@ -240,16 +240,16 @@ ...@@ -240,16 +240,16 @@
</template> </template>
<script> <script>
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import '@/assets/styles/project.scss'; import '@/assets/styles/project.scss';
import { addCustomer, getCustomerList, importData } from '@/api/custom/custom'; import { addCustomer, getCustomerList, importData } from '@/api/custom/custom';
import { getDictType, getEnterprise } from '@/api/main'; import { getDictType, getEnterprise } from '@/api/main';
import prvinceTree from '@/assets/json/provinceTree'; import prvinceTree from '@/assets/json/provinceTree';
import batchimport from '../../project/projectList/component/batchImport'; import batchimport from '../../project/projectList/component/batchImport';
import skeleton from '../../project/projectList/component/skeleton'; import skeleton from '../../project/projectList/component/skeleton';
import { encodeStr } from '@/assets/js/common'; import { encodeStr } from '@/assets/js/common';
import { v4 } from "uuid"; import { v4 } from "uuid";
export default { export default {
name: 'CustomList', name: 'CustomList',
components: { batchimport, skeleton }, components: { batchimport, skeleton },
data() { data() {
...@@ -341,17 +341,22 @@ export default { ...@@ -341,17 +341,22 @@ export default {
if (this.$route.query.type === '3') { if (this.$route.query.type === '3') {
this.searchParam.companyNatures = ['事业单位', '机关单位']; this.searchParam.companyNatures = ['事业单位', '机关单位'];
} }
this.$watch(() => this.$route.params, () => {
this.getCustomerList(); this.getCustomerList();
this.getDictType(); this.getDictType();
this.prvinceTree(); this.prvinceTree();
this.handleQuery(); this.handleQuery();
this.searchParam.companyName = ''; this.searchParam.companyName = '';
}, // this.$watch(() => this.$route.params, () => {
// 组件创建完后获取数据, // this.getCustomerList();
// 此时 data 已经被 observed 了 // this.getDictType();
{ immediate: true } // this.prvinceTree();
); // this.handleQuery();
// this.searchParam.companyName = '';
// },
// // 组件创建完后获取数据,
// // 此时 data 已经被 observed 了
// { immediate: true }
// );
}, },
methods: { methods: {
searchFocus(event) { searchFocus(event) {
...@@ -390,6 +395,7 @@ export default { ...@@ -390,6 +395,7 @@ export default {
type2.data.forEach(item => { type2.data.forEach(item => {
this.creditLevellist.push({ dictLabel: item.dictLabel, dictValue: item.dictLabel }); this.creditLevellist.push({ dictLabel: item.dictLabel, dictValue: item.dictLabel });
}); });
console.log(this.creditLevellist)
} }
}, },
sq1(item, sq) { sq1(item, sq) {
...@@ -779,11 +785,11 @@ export default { ...@@ -779,11 +785,11 @@ export default {
document.getElementById(e).classList.toggle('span-ba'); document.getElementById(e).classList.toggle('span-ba');
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.custom-list-container { .custom-list-container {
width: 100%; width: 100%;
height: 100%; height: 100%;
padding: 24px; padding: 24px;
...@@ -817,8 +823,8 @@ export default { ...@@ -817,8 +823,8 @@ export default {
} }
} }
} }
} }
.box-card { .box-card {
@import "@/assets/styles/search-common.scss"; @import "@/assets/styles/search-common.scss";
padding-top: 16px; padding-top: 16px;
width: 100%; width: 100%;
...@@ -913,8 +919,8 @@ export default { ...@@ -913,8 +919,8 @@ export default {
} }
} }
} }
} }
.box { .box {
position: relative; position: relative;
> span { > span {
position: absolute; position: absolute;
...@@ -926,8 +932,8 @@ export default { ...@@ -926,8 +932,8 @@ export default {
color: #006ad1; color: #006ad1;
} }
} }
} }
.dc { .dc {
font-size: 12px; font-size: 12px;
color: #3d3d3d; color: #3d3d3d;
font-weight: 400; font-weight: 400;
...@@ -946,17 +952,17 @@ export default { ...@@ -946,17 +952,17 @@ export default {
display: inline-block; display: inline-block;
margin-left: 20px; margin-left: 20px;
} }
} }
.img.img1 { .img.img1 {
margin-right: 2px; margin-right: 2px;
background: url("../../../../src/assets/images/project/add_2.png") no-repeat background: url("../../../../src/assets/images/project/add_2.png") no-repeat
center center; center center;
background-size: 100%; background-size: 100%;
} }
.w88 { .w88 {
width: 88px; width: 88px;
} }
.tables { .tables {
position: relative; position: relative;
min-height: calc(100vh - 134px); min-height: calc(100vh - 134px);
/*overflow: auto;*/ /*overflow: auto;*/
...@@ -1105,8 +1111,8 @@ export default { ...@@ -1105,8 +1111,8 @@ export default {
} }
} }
} }
} }
.ps1 { .ps1 {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.ps2 { .ps2 {
...@@ -1140,14 +1146,14 @@ export default { ...@@ -1140,14 +1146,14 @@ export default {
} }
} }
} }
} }
.popbot { .popbot {
.wordprimary { .wordprimary {
display: inline; display: inline;
padding-right: 26px; padding-right: 26px;
} }
} }
.searchInput { .searchInput {
width: 240px; width: 240px;
} }
</style> </style>
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