cloud-web-corejs 1.0.290 → 1.0.291
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -277,12 +277,12 @@
|
|
|
277
277
|
|
|
278
278
|
<script>
|
|
279
279
|
import {mixins} from "./mixins";
|
|
280
|
-
import userDialog from './talkUserDialog.vue';
|
|
281
280
|
|
|
282
281
|
export default {
|
|
283
282
|
mixins: [mixins],
|
|
284
283
|
components: {
|
|
285
|
-
|
|
284
|
+
// 选人弹窗同步引入会把 tableForm 焊进 onlineTalk;仅打开选人时再拉
|
|
285
|
+
userDialog: () => import('./talkUserDialog.vue'),
|
|
286
286
|
privateProfileDialog: () => import('../../components/VabUpload/privateProfileDialog')
|
|
287
287
|
},
|
|
288
288
|
data() {
|
|
@@ -288,18 +288,11 @@
|
|
|
288
288
|
<script>
|
|
289
289
|
import { mapGetters } from "vuex";
|
|
290
290
|
import variables from "@/styles/variables.scss";
|
|
291
|
-
import userInfo from "@base/views/user/user/info.vue";
|
|
292
|
-
import userFormInfo from "@base/views/user/user/form_info.vue";
|
|
293
|
-
import onlineTalk from "@base/components/onlineTalk";
|
|
294
291
|
import { getToken } from "@base/utils/auth";
|
|
295
292
|
import indexUtil from "@base/utils/index.js";
|
|
296
293
|
import langTool from "../langTool.vue";
|
|
297
294
|
import { initPddLog } from "@base/utils/pddLog";
|
|
298
|
-
|
|
299
|
-
import extractedCodeCreateDialog from "../extractedCode/createDialog.vue";
|
|
300
|
-
import extractedCodeQueryDialog from "../extractedCode/queryDialog.vue";
|
|
301
295
|
import { getBdFlag } from "@base/api/user";
|
|
302
|
-
import createCompanyDialog from "@base/layout/components/createCompany/createCompanyDialog.vue";
|
|
303
296
|
|
|
304
297
|
export default {
|
|
305
298
|
props: {
|
|
@@ -309,13 +302,17 @@ export default {
|
|
|
309
302
|
},
|
|
310
303
|
},
|
|
311
304
|
components: {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
305
|
+
// 个人设置 / 在线沟通 / 提取码 / 建企业 首屏菜单用不到。同步 import 会把
|
|
306
|
+
// onlineTalk → talkUserDialog → tableForm 整条链焊进 Sidebar 异步包,
|
|
307
|
+
// 发布环境首次进入时左边菜单明显慢于首页。
|
|
308
|
+
userInfo: () => import("@base/views/user/user/info.vue"),
|
|
309
|
+
userFormInfo: () => import("@base/views/user/user/form_info.vue"),
|
|
310
|
+
onlineTalk: () => import("@base/components/onlineTalk"),
|
|
315
311
|
langTool,
|
|
316
|
-
extractedCodeCreateDialog,
|
|
317
|
-
extractedCodeQueryDialog,
|
|
318
|
-
createCompanyDialog
|
|
312
|
+
extractedCodeCreateDialog: () => import("../extractedCode/createDialog.vue"),
|
|
313
|
+
extractedCodeQueryDialog: () => import("../extractedCode/queryDialog.vue"),
|
|
314
|
+
createCompanyDialog: () =>
|
|
315
|
+
import("@base/layout/components/createCompany/createCompanyDialog.vue"),
|
|
319
316
|
},
|
|
320
317
|
data() {
|
|
321
318
|
return {
|
|
@@ -389,15 +386,19 @@ export default {
|
|
|
389
386
|
filterText(val) {
|
|
390
387
|
this.$refs.tree.filter(val);
|
|
391
388
|
},
|
|
389
|
+
sidebarRouters() {
|
|
390
|
+
this.filterRoute();
|
|
391
|
+
},
|
|
392
392
|
},
|
|
393
393
|
created() {
|
|
394
394
|
indexUtil.initI18nMessage("menus");
|
|
395
|
+
// generateRoutes2 在 next() 之前已经写入。放 created 而不是 mounted+100ms,
|
|
396
|
+
// 第一次 render 就带菜单项;也不用 immediate watcher(会早于 created,
|
|
397
|
+
// filterRoute 里的 $router.push 不安全)。
|
|
398
|
+
this.filterRoute();
|
|
395
399
|
},
|
|
396
400
|
mounted() {
|
|
397
401
|
this.getUserInfo();
|
|
398
|
-
setTimeout(() => {
|
|
399
|
-
this.filterRoute();
|
|
400
|
-
}, 100);
|
|
401
402
|
this.countHeight();
|
|
402
403
|
let query = this.$route.query;
|
|
403
404
|
if (query && query.flag == 1) {
|