cloud-web-corejs 1.1.0-dev.25 → 1.1.0-dev.27
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 +11 -4
- package/src/app-bootstrap.js +523 -0
- package/src/boot-assets.legacy.js +7 -0
- package/src/boot-assets.next.js +7 -0
- package/src/components/Tinymce/index.vue +3 -0
- package/src/components/Tinymce/mce-chrome.scss +150 -0
- package/src/components/VabUpload/index.vue +1 -1
- package/src/components/VabUpload/style.scss +282 -0
- package/src/components/baseArea/index.vue +2 -2
- package/src/components/code-editor/ace-chrome.scss +17 -0
- package/src/components/code-editor/index.vue +3 -0
- package/src/components/excelImport/index.vue +1 -1
- package/src/components/fileLibrary/style.scss +579 -0
- package/src/components/hiprint/style.scss +188 -0
- package/src/components/jsonImport/index.vue +1 -1
- package/src/components/langImport/index.vue +1 -1
- package/src/components/mobile/buttonGroup/index.vue +1 -1
- package/src/components/obsUpload/index.vue +1 -1
- package/src/components/onlineTalk/index.vue +2 -2
- package/src/components/table/style.scss +1399 -0
- package/src/components/wf/style.scss +265 -0
- package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +1 -1
- package/src/components/xform/docs/2026-08 xform /347/247/273/345/212/250/347/253/257/345/270/203/345/261/200/345/257/271/351/275/220 bill_setting /346/226/271/346/241/210.md" +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/autocomplete-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/descriptions-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/divider-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/file-upload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/input-batch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/news-list-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/picture-upload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/rate-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/rich-editor-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/save_submit_wf_button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/slider-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/switch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/textarea-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/title-head-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +1 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +8 -8
- package/src/components/xform/mixins/scriptHttp.js +28 -7
- package/src/components/xform/styles/census.scss +288 -0
- package/src/components/xform/styles/containers.scss +208 -0
- package/src/components/xform/styles/designer.scss +904 -0
- package/src/components/xform/styles/detail-temp.scss +71 -0
- package/src/components/xform/styles/h5-designer.scss +191 -0
- package/src/components/xform/styles/h5.scss +5 -6
- package/src/components/xform/styles/skins.scss +398 -0
- package/src/components/xform/styles/table-layout.scss +91 -0
- package/src/components/xform/styles/titles.scss +255 -0
- package/src/core-resources/css/h5.scss +548 -0
- package/src/core-resources/css/iconfont.css +1447 -0
- package/src/core-resources/font/iconfont.ttf +0 -0
- package/src/core-resources/font/iconfont.woff +0 -0
- package/src/core-resources/font/iconfont.woff2 +0 -0
- package/src/core-resources/images/default-header.png +0 -0
- package/src/core-resources/images/ico-default_wenjian.svg +1 -0
- package/src/core-resources/images/ico-excel.svg +1 -0
- package/src/core-resources/images/ico-ftl.svg +7 -0
- package/src/core-resources/images/ico-html.svg +1 -0
- package/src/core-resources/images/ico-java.svg +1 -0
- package/src/core-resources/images/ico-music.svg +1 -0
- package/src/core-resources/images/ico-pdf.svg +1 -0
- package/src/core-resources/images/ico-photo.svg +1 -0
- package/src/core-resources/images/ico-ppt.svg +1 -0
- package/src/core-resources/images/ico-psd.svg +1 -0
- package/src/core-resources/images/ico-service.png +0 -0
- package/src/core-resources/images/ico-txt.svg +1 -0
- package/src/core-resources/images/ico-video.svg +1 -0
- package/src/core-resources/images/ico-vue.svg +8 -0
- package/src/core-resources/images/ico-wenjianjia.svg +1 -0
- package/src/core-resources/images/ico-wrod.svg +1 -0
- package/src/core-resources/images/ico-xml.svg +1 -0
- package/src/core-resources/images/ico-yasuobao.svg +1 -0
- package/src/core-resources/images/icon-error.png +0 -0
- package/src/core-resources/images/icon-tips.png +0 -0
- package/src/core-resources/images/nodata.png +0 -0
- package/src/core-resources/images/nodata2.png +0 -0
- package/src/icons/index.js +9 -0
- package/src/icons/svg/404.svg +1 -0
- package/src/icons/svg/alert.svg +1 -0
- package/src/icons/svg/bug.svg +1 -0
- package/src/icons/svg/button.svg +1 -0
- package/src/icons/svg/card.svg +1 -0
- package/src/icons/svg/cascader-field.svg +1 -0
- package/src/icons/svg/census.svg +1 -0
- package/src/icons/svg/chart.svg +1 -0
- package/src/icons/svg/checkbox-field.svg +1 -0
- package/src/icons/svg/clipboard.svg +1 -0
- package/src/icons/svg/color-field.svg +1 -0
- package/src/icons/svg/component.svg +1 -0
- package/src/icons/svg/custom-component.svg +1 -0
- package/src/icons/svg/dashboard.svg +1 -0
- package/src/icons/svg/data-table.svg +1 -0
- package/src/icons/svg/date-field.svg +1 -0
- package/src/icons/svg/date-range-field.svg +1 -0
- package/src/icons/svg/descriptions.svg +1 -0
- package/src/icons/svg/divider.svg +1 -0
- package/src/icons/svg/document.svg +1 -0
- package/src/icons/svg/documentation.svg +1 -0
- package/src/icons/svg/drag.svg +1 -0
- package/src/icons/svg/echart-category.svg +1 -0
- package/src/icons/svg/echart-pie.svg +1 -0
- package/src/icons/svg/echart.svg +1 -0
- package/src/icons/svg/edit.svg +1 -0
- package/src/icons/svg/education.svg +1 -0
- package/src/icons/svg/email.svg +1 -0
- package/src/icons/svg/example.svg +1 -0
- package/src/icons/svg/excel.svg +1 -0
- package/src/icons/svg/exit-fullscreen.svg +1 -0
- package/src/icons/svg/eye-open.svg +1 -0
- package/src/icons/svg/eye.svg +1 -0
- package/src/icons/svg/file-upload-field.svg +1 -0
- package/src/icons/svg/form.svg +1 -0
- package/src/icons/svg/fullscreen.svg +1 -0
- package/src/icons/svg/github.svg +1 -0
- package/src/icons/svg/grid.svg +1 -0
- package/src/icons/svg/guide.svg +1 -0
- package/src/icons/svg/html-text.svg +1 -0
- package/src/icons/svg/ico-more.svg +1 -0
- package/src/icons/svg/ico-wenjianjia.svg +1 -0
- package/src/icons/svg/icon.svg +1 -0
- package/src/icons/svg/input-batch.svg +1 -0
- package/src/icons/svg/international.svg +1 -0
- package/src/icons/svg/language.svg +1 -0
- package/src/icons/svg/link.svg +1 -0
- package/src/icons/svg/list-export.svg +1 -0
- package/src/icons/svg/list.svg +1 -0
- package/src/icons/svg/lock.svg +1 -0
- package/src/icons/svg/message.svg +1 -0
- package/src/icons/svg/money.svg +1 -0
- package/src/icons/svg/nested.svg +1 -0
- package/src/icons/svg/news-list.svg +1 -0
- package/src/icons/svg/node-tree.svg +1 -0
- package/src/icons/svg/number-field.svg +1 -0
- package/src/icons/svg/password.svg +1 -0
- package/src/icons/svg/pdf.svg +1 -0
- package/src/icons/svg/people.svg +1 -0
- package/src/icons/svg/peoples.svg +1 -0
- package/src/icons/svg/picture-upload-field.svg +1 -0
- package/src/icons/svg/qq.svg +1 -0
- package/src/icons/svg/query.svg +1 -0
- package/src/icons/svg/radio-field.svg +1 -0
- package/src/icons/svg/rate-field.svg +1 -0
- package/src/icons/svg/redo.svg +1 -0
- package/src/icons/svg/rich-editor-field.svg +1 -0
- package/src/icons/svg/search.svg +1 -0
- package/src/icons/svg/searchbox.svg +1 -0
- package/src/icons/svg/section.svg +1 -0
- package/src/icons/svg/select-field.svg +1 -0
- package/src/icons/svg/shopping.svg +1 -0
- package/src/icons/svg/size.svg +1 -0
- package/src/icons/svg/skill.svg +1 -0
- package/src/icons/svg/slider-field.svg +1 -0
- package/src/icons/svg/slot-component.svg +1 -0
- package/src/icons/svg/slot-field.svg +1 -0
- package/src/icons/svg/star.svg +1 -0
- package/src/icons/svg/static-text.svg +1 -0
- package/src/icons/svg/status.svg +1 -0
- package/src/icons/svg/sub-form.svg +1 -0
- package/src/icons/svg/switch-field.svg +1 -0
- package/src/icons/svg/tab.svg +1 -0
- package/src/icons/svg/table.svg +1 -0
- package/src/icons/svg/text-field.svg +1 -0
- package/src/icons/svg/text.svg +1 -0
- package/src/icons/svg/textarea-field.svg +1 -0
- package/src/icons/svg/theme.svg +1 -0
- package/src/icons/svg/time-field.svg +1 -0
- package/src/icons/svg/time-range-field.svg +1 -0
- package/src/icons/svg/tips-text.svg +1 -0
- package/src/icons/svg/title-head.svg +1 -0
- package/src/icons/svg/tree-pane.svg +1 -0
- package/src/icons/svg/tree-table.svg +1 -0
- package/src/icons/svg/tree.svg +1 -0
- package/src/icons/svg/undo.svg +1 -0
- package/src/icons/svg/uploadbox.svg +1 -0
- package/src/icons/svg/user.svg +1 -0
- package/src/icons/svg/vf-box.svg +1 -0
- package/src/icons/svg/vf-dialog.svg +1 -0
- package/src/icons/svg/vf-drawer.svg +1 -0
- package/src/icons/svg/vue-sfc.svg +1 -0
- package/src/icons/svg/wechat.svg +1 -0
- package/src/icons/svg/zip.svg +1 -0
- package/src/index.js +2 -514
- package/src/index.next.js +5 -0
- package/src/layout/components/Sidebar/default.vue +3 -3
- package/src/layout/components/TagsView/index.vue +1 -1
- package/src/layout/defaultLayout.vue +2 -2
- package/src/store/modules/settings.js +1 -1
- package/src/styles/btn.scss +104 -0
- package/src/styles/element-ui.scss +155 -0
- package/src/styles/element-variables.scss +31 -0
- package/src/styles/global.scss +115 -0
- package/src/styles/index.scss +200 -0
- package/src/styles/menu-icons.scss +75 -0
- package/src/styles/mixin.scss +72 -0
- package/src/styles/nprogress.scss +14 -0
- package/src/styles/sidebar.scss +281 -0
- package/src/styles/split-handle.scss +52 -0
- package/src/styles/theme-variables.scss +7 -0
- package/src/styles/transition.scss +48 -0
- package/src/styles/utilities.scss +137 -0
- package/src/styles/variables.scss +44 -0
- package/src/utils/vab.js +33 -11
- package/src/views/bd/setting/formVersion/compareContMixin.scss +1 -1
- package/src/views/mobile/user/area/dialog.vue +1 -1
- package/src/views/mobile/user/user/dialog.vue +1 -1
- package/src/views/user/commMenu/index.vue +3 -1
- package/src/views/user/commMenu/style.scss +123 -0
- package/src/views/user/home/default.vue +5 -5
- package/src/views/user/home/default2.vue +2 -2
- package/src/views/user/role/edit.vue +4 -0
- package/src/views/user/role/role-box.scss +83 -0
- package/src/views/user/role/voc_edit.vue +4 -0
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +1 -1
- package/src/views/demo/bizTab/bill/billConfig.js +0 -41
- package/src/views/demo/bizTab/bill/detail.vue +0 -436
- package/src/views/demo/bizTab/bill/list.vue +0 -288
- package/src/views/demo/bizTab/bill/productDialog.vue +0 -176
- package/src/views/demo/bizTab/simple/billApi.js +0 -123
- package/src/views/demo/bizTab/simple/detail.vue +0 -407
- package/src/views/demo/bizTab/simple/list.vue +0 -217
- package/src/views/demo/bizTab/standalone/index.vue +0 -121
- package/src/views/demo/bizTab/wf/billConfig.js +0 -44
- package/src/views/demo/bizTab/wf/detail.vue +0 -661
- package/src/views/demo/bizTab/wf/list.vue +0 -242
- package/src/views/user/home/net/distributor.vue +0 -1015
- package/src/views/user/home/net/index.vue +0 -61
- package/src/views/user/home/wjl/content.vue +0 -1570
- package/src/views/user/outLink/cc_form_view.vue +0 -188
- /package/src/{resources → core-resources}/js/base/common.js +0 -0
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="cc-entry"
|
|
4
|
-
v-loading="loading"
|
|
5
|
-
:element-loading-text="loadingText"
|
|
6
|
-
element-loading-background="rgba(255, 255, 255, 0.9)"
|
|
7
|
-
>
|
|
8
|
-
<div class="cc-entry__box" v-if="errMsg">
|
|
9
|
-
<el-alert :title="errMsg" type="error" :closable="false" show-icon />
|
|
10
|
-
<div class="cc-entry__footer">
|
|
11
|
-
<el-button type="primary" size="small" @click="start">重试</el-button>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
/**
|
|
19
|
-
* 呼叫中心(CC)业务专用外链入口。
|
|
20
|
-
*
|
|
21
|
-
* 背景:业务系统(呼叫中心)只会带 appid / appkey / account / callNo 四个参数跳过来,
|
|
22
|
-
* 拿不到 form_outLinkView 所需的 tp(用户身份密文)。本页在 form_outLinkView 之前加一层:
|
|
23
|
-
* 1. 取四个参数
|
|
24
|
-
* 2. 调后台接口换取 tp
|
|
25
|
-
* 3. replace 到 /form_outLinkView,formCode 写死、dataId 固定 0
|
|
26
|
-
*
|
|
27
|
-
* 入口地址示例:
|
|
28
|
-
* https://csmuat.chinamacro.com/#/cc_form_outLinkView
|
|
29
|
-
* ?appid=6789B4BBAF71D4F9D79E0912856E04E
|
|
30
|
-
* &appkey=坐席id
|
|
31
|
-
* &account=坐席帐号
|
|
32
|
-
* &callNo=来电手机
|
|
33
|
-
*
|
|
34
|
-
* 最终跳转:
|
|
35
|
-
* #/form_outLinkView?url=/user/form/view/edit&formCode=xxx&dataId=0&tp=xxx&callNo=xxx...
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/* ------------------------------------------------------------------ *
|
|
39
|
-
* 业务定制配置:换业务页面只改这里
|
|
40
|
-
* ------------------------------------------------------------------ */
|
|
41
|
-
const CC_CONFIG = {
|
|
42
|
-
// 固定的表单视图路由,form_outLinkView 的 url 参数
|
|
43
|
-
formUrl: "/user/form/view/edit",
|
|
44
|
-
// 写死的表单编码(按实际业务表单调整)
|
|
45
|
-
formCode: "patentApply_edit",
|
|
46
|
-
// 写死的单据 ID,新建为 0
|
|
47
|
-
dataId: "0",
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/** 透传给业务表单的参数(form_outLinkView 会 v-bind 到目标组件上) */
|
|
51
|
-
const PASS_THROUGH = ["callNo", "account", "agentId"];
|
|
52
|
-
|
|
53
|
-
export default {
|
|
54
|
-
name: "ccFormOutLinkView",
|
|
55
|
-
data() {
|
|
56
|
-
return {
|
|
57
|
-
loading: false,
|
|
58
|
-
loadingText: "正在获取身份信息…",
|
|
59
|
-
errMsg: "",
|
|
60
|
-
};
|
|
61
|
-
},
|
|
62
|
-
created() {
|
|
63
|
-
this.start();
|
|
64
|
-
},
|
|
65
|
-
methods: {
|
|
66
|
-
/** 大小写不敏感地取 query,业务系统对参数大小写不一定稳定 */
|
|
67
|
-
pickQuery(...names) {
|
|
68
|
-
let query = this.$route.query || {};
|
|
69
|
-
let keys = Object.keys(query);
|
|
70
|
-
for (let name of names) {
|
|
71
|
-
let key = keys.find((k) => k.toLowerCase() === name.toLowerCase());
|
|
72
|
-
if (
|
|
73
|
-
key &&
|
|
74
|
-
query[key] !== "" &&
|
|
75
|
-
query[key] !== undefined &&
|
|
76
|
-
query[key] !== null
|
|
77
|
-
) {
|
|
78
|
-
return query[key];
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return "";
|
|
82
|
-
},
|
|
83
|
-
resolveParams() {
|
|
84
|
-
return {
|
|
85
|
-
appid: this.pickQuery("appid"),
|
|
86
|
-
appkey: this.pickQuery("appkey"),
|
|
87
|
-
account: this.pickQuery("account"),
|
|
88
|
-
callNo: this.pickQuery("callNo"),
|
|
89
|
-
};
|
|
90
|
-
},
|
|
91
|
-
start() {
|
|
92
|
-
this.errMsg = "";
|
|
93
|
-
let params = this.resolveParams();
|
|
94
|
-
let missing = ["appkey", "account"].filter((key) => !params[key]);
|
|
95
|
-
if (missing.length) {
|
|
96
|
-
this.errMsg =
|
|
97
|
-
"缺少必要参数:" + missing.join("、") + ",请检查呼叫中心跳转链接";
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
this.getToken(params);
|
|
101
|
-
},
|
|
102
|
-
getToken(params) {
|
|
103
|
-
this.loading = true;
|
|
104
|
-
this.$http({
|
|
105
|
-
url: USER_PREFIX + "/auth/login",
|
|
106
|
-
method: "post",
|
|
107
|
-
data: {
|
|
108
|
-
custom: "true",
|
|
109
|
-
loginFlag: 1,
|
|
110
|
-
appkey: params.appkey,
|
|
111
|
-
account: params.account,
|
|
112
|
-
},
|
|
113
|
-
// 无 token 场景,且自行接管提示与遮罩
|
|
114
|
-
useToken: false,
|
|
115
|
-
isLoading: false,
|
|
116
|
-
failMsg: false,
|
|
117
|
-
errorMsg: false,
|
|
118
|
-
success: (res) => {
|
|
119
|
-
let token = res.objx;
|
|
120
|
-
if (!token) {
|
|
121
|
-
this.loading = false;
|
|
122
|
-
this.errMsg = "身份信息(token)获取失败:接口未返回 token";
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
this.redirect(params, token);
|
|
126
|
-
},
|
|
127
|
-
fail: (res) => {
|
|
128
|
-
this.loading = false;
|
|
129
|
-
this.errMsg =
|
|
130
|
-
"身份信息(token)获取失败:" +
|
|
131
|
-
((res && (res.content || res.msg)) || "接口返回异常");
|
|
132
|
-
},
|
|
133
|
-
error: (err) => {
|
|
134
|
-
this.loading = false;
|
|
135
|
-
this.errMsg =
|
|
136
|
-
"身份信息(token)获取失败:" + ((err && err.message) || "网络异常");
|
|
137
|
-
},
|
|
138
|
-
});
|
|
139
|
-
},
|
|
140
|
-
redirect(params, token) {
|
|
141
|
-
this.loadingText = "正在打开单据…";
|
|
142
|
-
let query = {
|
|
143
|
-
url: CC_CONFIG.formUrl,
|
|
144
|
-
formCode: CC_CONFIG.formCode,
|
|
145
|
-
dataId: CC_CONFIG.dataId,
|
|
146
|
-
access_token: token,
|
|
147
|
-
};
|
|
148
|
-
// 来电号码等业务参数透传给表单,供表单脚本取用
|
|
149
|
-
let source = { ...params, agentId: params.appkey };
|
|
150
|
-
PASS_THROUGH.forEach((key) => {
|
|
151
|
-
if (source[key]) {
|
|
152
|
-
query[key] = source[key];
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
let i18nLang = this.pickQuery("i18nLang");
|
|
156
|
-
if (i18nLang) {
|
|
157
|
-
query.i18nLang = i18nLang;
|
|
158
|
-
}
|
|
159
|
-
// replace:不在历史里留下本入口页,避免回退时重复换取 tp
|
|
160
|
-
// 注:vue-router 3.0.2 的 replace 不返回 Promise,不能链 .then/.catch
|
|
161
|
-
this.$router.replace({
|
|
162
|
-
path: "/form_outLinkView",
|
|
163
|
-
query: query,
|
|
164
|
-
});
|
|
165
|
-
},
|
|
166
|
-
},
|
|
167
|
-
};
|
|
168
|
-
</script>
|
|
169
|
-
|
|
170
|
-
<style lang="scss" scoped>
|
|
171
|
-
.cc-entry {
|
|
172
|
-
display: flex;
|
|
173
|
-
align-items: center;
|
|
174
|
-
justify-content: center;
|
|
175
|
-
width: 100%;
|
|
176
|
-
height: 100vh;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.cc-entry__box {
|
|
180
|
-
width: 420px;
|
|
181
|
-
max-width: 80%;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.cc-entry__footer {
|
|
185
|
-
margin-top: 12px;
|
|
186
|
-
text-align: center;
|
|
187
|
-
}
|
|
188
|
-
</style>
|
|
File without changes
|