cloud-web-corejs 1.0.54-dev.315 → 1.0.54-dev.316
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 +1 -1
- package/src/components/baseInputExport/mixins.js +388 -1
- package/src/components/wf/add0pinionButton.vue +102 -0
- package/src/components/wf/content.vue +18 -5
- package/src/components/wf/mixins/setCandidateButton.js +161 -0
- package/src/components/wf/mixins/setCandidateDialog.js +1 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +6 -0
- package/src/components/wf/setCandidateButton.vue +40 -0
- package/src/components/wf/setCandidateDialog2.vue +3 -228
- package/src/components/wf/wf.js +2068 -1
- package/src/components/wf/wfTaskUserRangeDialog.vue +9 -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 +108 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +42 -0
- package/src/components/xform/lang/zh-CN.js +1 -0
- package/src/views/user/form/vform/render.vue +1 -1
- package/src/views/user/home/default2.vue +1035 -0
- package/src/views/user/home/taili/index.vue +1024 -0
- package/src/views/user/notify_message/dialog.vue +22 -7
- package/src/views/user/outLink/form_view.vue +211 -211
@@ -20,7 +20,7 @@
|
|
20
20
|
v-if="showWfContent && wfContent"
|
21
21
|
:is="wfContent"
|
22
22
|
visible-key="showWfContent"
|
23
|
-
|
23
|
+
v-bind="param"
|
24
24
|
:_isNotifyMessage="true"
|
25
25
|
:parent-target="_self"
|
26
26
|
@reload="$reloadHandle"
|
@@ -39,6 +39,7 @@ export default {
|
|
39
39
|
showWfContent: true,
|
40
40
|
wfContent: null,
|
41
41
|
wfDataId: '',
|
42
|
+
param: {},
|
42
43
|
};
|
43
44
|
},
|
44
45
|
methods: {
|
@@ -72,14 +73,28 @@ export default {
|
|
72
73
|
let param = this.getUrlParam(turl);
|
73
74
|
let wfDataId = param.dataId;
|
74
75
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
76
|
+
if (wfUrl == 'form') {
|
77
|
+
this.param = Object.assign(param, {
|
78
|
+
formCode: param.objTypeCode.substr(9),
|
79
|
+
dataId: wfDataId
|
80
|
+
});
|
81
|
+
let url = '/user/form/vform/render.vue';
|
82
|
+
this.wfContent = require('@base/views' + url).default;
|
83
|
+
} else {
|
84
|
+
this.param = Object.assign(param, {
|
85
|
+
_dataId: wfDataId
|
86
|
+
});
|
87
|
+
let url = wfUrl + '.vue';
|
88
|
+
let id = wfDataId;
|
89
|
+
this.wfDataId = !id || typeof id == 'object' ? 0 : id;
|
90
|
+
// this.showWfDialog = true;
|
91
|
+
this.showWfContent = true;
|
92
|
+
this.wfContent = require('@/views' + url).default;
|
81
93
|
|
94
|
+
|
95
|
+
}
|
82
96
|
this.showWfDialog2 = true;
|
97
|
+
|
83
98
|
callback && callback();
|
84
99
|
})
|
85
100
|
}
|
@@ -1,211 +1,211 @@
|
|
1
|
-
<template>
|
2
|
-
<div :id="$route.query.isMobile!=='true'?'containt':''">
|
3
|
-
<component v-if="showWfContent && wfContent" :is="wfContent" visible-key="showWfContent" :outParam.sync="outParam"
|
4
|
-
:_dataId.sync="dataId" :defaultShowWfContent="defaultShowWfContent" :_isOutLink="true"
|
5
|
-
:parent-target="_self"
|
6
|
-
@reload="$reloadHandle" v-bind="queryParam"></component>
|
7
|
-
</div>
|
8
|
-
</template>
|
9
|
-
|
10
|
-
<script>
|
11
|
-
import indexUtil from "@base/utils/index.js"
|
12
|
-
import {
|
13
|
-
setReportGlobalParam
|
14
|
-
} from "@base/components/xform/utils/util";
|
15
|
-
|
16
|
-
export default {
|
17
|
-
data() {
|
18
|
-
return {
|
19
|
-
reportCode: null,
|
20
|
-
showWfContent: true,
|
21
|
-
wfContent: null,
|
22
|
-
outParam: null,
|
23
|
-
dataId: null,
|
24
|
-
defaultShowWfContent: null,
|
25
|
-
queryParam: {}
|
26
|
-
};
|
27
|
-
},
|
28
|
-
created() {
|
29
|
-
this.login();
|
30
|
-
},
|
31
|
-
mounted() {
|
32
|
-
history.pushState(null, null, document.URL);
|
33
|
-
window.addEventListener('popstate', this.handlePopState); // 在Vue组件的mounted钩子中添加事件监听
|
34
|
-
},
|
35
|
-
beforeDestroy() {
|
36
|
-
window.removeEventListener('popstate', this.handlePopState); // 在beforeDestroy钩子中移除事件监听
|
37
|
-
},
|
38
|
-
methods: {
|
39
|
-
initGlobalReqData() {
|
40
|
-
let fd = this.$route.query.fd;
|
41
|
-
if (fd) {
|
42
|
-
setReportGlobalParam(fd);
|
43
|
-
}
|
44
|
-
},
|
45
|
-
async initData() {
|
46
|
-
const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
|
47
|
-
let queryParam = this.$baseLodash.cloneDeep(this.$route.query);
|
48
|
-
let murl = this.$route.query.urlmobile;
|
49
|
-
let purl = murl && isMobile ? murl : this.$route.query.url;
|
50
|
-
let dataId = this.$route.query.dataId;
|
51
|
-
if (purl == '/index') {
|
52
|
-
location.hash = '/home';
|
53
|
-
location.reload();
|
54
|
-
return;
|
55
|
-
}
|
56
|
-
/*let param = this.$route.query.param;
|
57
|
-
if (param) {
|
58
|
-
this.outParam = JSON.parse(param)
|
59
|
-
}*/
|
60
|
-
this.dataId = dataId;
|
61
|
-
if (this.$route.query.showWfContent == 'true') {
|
62
|
-
this.defaultShowWfContent = true;
|
63
|
-
}
|
64
|
-
|
65
|
-
delete queryParam.urlmobile;
|
66
|
-
delete queryParam.url;
|
67
|
-
|
68
|
-
if (purl.indexOf('.html') >= 0) {
|
69
|
-
let eUrl = purl;
|
70
|
-
let pstr = Object.keys(queryParam).map(key => {
|
71
|
-
return key + "=" + queryParam[key]
|
72
|
-
}).join("&")
|
73
|
-
|
74
|
-
if (pstr) {
|
75
|
-
if (purl.indexOf('.html?') >= 0) {
|
76
|
-
eUrl = eUrl + '&' + pstr
|
77
|
-
} else {
|
78
|
-
eUrl = eUrl + '?' + pstr
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
|
-
location.href = eUrl;
|
83
|
-
return
|
84
|
-
}
|
85
|
-
|
86
|
-
delete queryParam.dataId;
|
87
|
-
delete queryParam.showWfContent;
|
88
|
-
delete queryParam.access_token;
|
89
|
-
delete queryParam.tp;
|
90
|
-
delete queryParam.thirdparty_info;
|
91
|
-
delete queryParam.i18nLang;
|
92
|
-
|
93
|
-
let url = purl + '.vue';
|
94
|
-
this.queryParam = queryParam;
|
95
|
-
this.showWfContent = true;
|
96
|
-
// this.wfContent = require('@/views' + url).default;
|
97
|
-
let t = "@base/views";
|
98
|
-
let urlArr = [
|
99
|
-
'/user/bill_setting/h5_view.vue',
|
100
|
-
'/user/form/view/list.vue',
|
101
|
-
'/user/form/view/edit.vue'
|
102
|
-
]
|
103
|
-
this.initUserInfo(() => {
|
104
|
-
this.initI18n();
|
105
|
-
if (urlArr.includes(url)) {
|
106
|
-
this.wfContent = require('@base/views' + url).default;
|
107
|
-
} else if (url.startsWith(t)) {
|
108
|
-
let path = url.slice(t.length);
|
109
|
-
this.wfContent = require('@base/views' + path).default;
|
110
|
-
} else {
|
111
|
-
this.wfContent = require('@/views' + url).default;
|
112
|
-
}
|
113
|
-
})
|
114
|
-
},
|
115
|
-
initUserInfo(callback) {
|
116
|
-
this.$store
|
117
|
-
.dispatch('user/getInfo2')
|
118
|
-
.then(() => {
|
119
|
-
callback && callback();
|
120
|
-
});
|
121
|
-
},
|
122
|
-
getI18nLang() {
|
123
|
-
let i18nLang = this.$route.query.i18nLang || "zh";
|
124
|
-
return i18nLang;
|
125
|
-
},
|
126
|
-
async initI18n() {
|
127
|
-
let lang = this.getI18nLang();
|
128
|
-
this.$i18n.locale = lang // 设置给本地的i18n插件
|
129
|
-
localStorage.setItem("i18n-lang", lang);
|
130
|
-
await indexUtil.initI18nMessage("business", lang, true);
|
131
|
-
},
|
132
|
-
login() {
|
133
|
-
let token = this.$route.query.access_token;
|
134
|
-
let url = this.$route.query.url;
|
135
|
-
let hasToken = this.$route.query.hasToken;
|
136
|
-
let tp = this.$route.query.tp || this.$route.query.thirdparty_info;
|
137
|
-
if (url) {
|
138
|
-
if (token) {
|
139
|
-
this.initByToken(token);
|
140
|
-
} else if (tp) {
|
141
|
-
this.thirdpartyLogin(tp);
|
142
|
-
} else if (hasToken == "true") {
|
143
|
-
this.$nextTick(() => {
|
144
|
-
this.initData();
|
145
|
-
});
|
146
|
-
}
|
147
|
-
this.initGlobalReqData();
|
148
|
-
}
|
149
|
-
},
|
150
|
-
initByToken(token) {
|
151
|
-
if (!token) return;
|
152
|
-
this.$store
|
153
|
-
.dispatch('user/addToken', {
|
154
|
-
token
|
155
|
-
})
|
156
|
-
.then(() => {
|
157
|
-
this.$nextTick(() => {
|
158
|
-
this.initData();
|
159
|
-
});
|
160
|
-
});
|
161
|
-
},
|
162
|
-
thirdpartyLogin(tp) {
|
163
|
-
let lang = this.getI18nLang();
|
164
|
-
this.$http({
|
165
|
-
url: USER_PREFIX + `/thirdparty_auth/login`,
|
166
|
-
method: `post`,
|
167
|
-
data: {
|
168
|
-
tp: tp,
|
169
|
-
language: lang
|
170
|
-
},
|
171
|
-
isLoading: true,
|
172
|
-
modalStrictly: true,
|
173
|
-
useToken: false,
|
174
|
-
success: res => {
|
175
|
-
let thirdpartyToken = res.objx;
|
176
|
-
this.initByToken(thirdpartyToken);
|
177
|
-
}
|
178
|
-
});
|
179
|
-
},
|
180
|
-
handlePopState(event) {
|
181
|
-
// 阻止回退
|
182
|
-
history.go(1);
|
183
|
-
}
|
184
|
-
}
|
185
|
-
};
|
186
|
-
</script>
|
187
|
-
|
188
|
-
<style lang="scss" scoped>
|
189
|
-
::v-deep .tab-box > .el-tabs__content {
|
190
|
-
|
191
|
-
.designer-view {
|
192
|
-
height: calc(100vh - 33px)
|
193
|
-
}
|
194
|
-
|
195
|
-
.grid-height,
|
196
|
-
.designer-view .el-form.render-form {
|
197
|
-
height: calc(100vh - 41px)
|
198
|
-
}
|
199
|
-
}
|
200
|
-
|
201
|
-
::v-deep #containt .detail-wrap {
|
202
|
-
.d-header {
|
203
|
-
margin: -8px -12px 0;
|
204
|
-
}
|
205
|
-
|
206
|
-
.d-cont {
|
207
|
-
margin: 0 -12px;
|
208
|
-
height: calc(100vh - 73px)
|
209
|
-
}
|
210
|
-
}
|
211
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div :id="$route.query.isMobile!=='true'?'containt':''">
|
3
|
+
<component v-if="showWfContent && wfContent" :is="wfContent" visible-key="showWfContent" :outParam.sync="outParam"
|
4
|
+
:_dataId.sync="dataId" :defaultShowWfContent="defaultShowWfContent" :_isOutLink="true"
|
5
|
+
:parent-target="_self"
|
6
|
+
@reload="$reloadHandle" v-bind="queryParam"></component>
|
7
|
+
</div>
|
8
|
+
</template>
|
9
|
+
|
10
|
+
<script>
|
11
|
+
import indexUtil from "@base/utils/index.js"
|
12
|
+
import {
|
13
|
+
setReportGlobalParam
|
14
|
+
} from "@base/components/xform/utils/util";
|
15
|
+
|
16
|
+
export default {
|
17
|
+
data() {
|
18
|
+
return {
|
19
|
+
reportCode: null,
|
20
|
+
showWfContent: true,
|
21
|
+
wfContent: null,
|
22
|
+
outParam: null,
|
23
|
+
dataId: null,
|
24
|
+
defaultShowWfContent: null,
|
25
|
+
queryParam: {}
|
26
|
+
};
|
27
|
+
},
|
28
|
+
created() {
|
29
|
+
this.login();
|
30
|
+
},
|
31
|
+
mounted() {
|
32
|
+
history.pushState(null, null, document.URL);
|
33
|
+
window.addEventListener('popstate', this.handlePopState); // 在Vue组件的mounted钩子中添加事件监听
|
34
|
+
},
|
35
|
+
beforeDestroy() {
|
36
|
+
window.removeEventListener('popstate', this.handlePopState); // 在beforeDestroy钩子中移除事件监听
|
37
|
+
},
|
38
|
+
methods: {
|
39
|
+
initGlobalReqData() {
|
40
|
+
let fd = this.$route.query.fd;
|
41
|
+
if (fd) {
|
42
|
+
setReportGlobalParam(fd);
|
43
|
+
}
|
44
|
+
},
|
45
|
+
async initData() {
|
46
|
+
const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
|
47
|
+
let queryParam = this.$baseLodash.cloneDeep(this.$route.query);
|
48
|
+
let murl = this.$route.query.urlmobile;
|
49
|
+
let purl = murl && isMobile ? murl : this.$route.query.url;
|
50
|
+
let dataId = this.$route.query.dataId;
|
51
|
+
if (purl == '/index') {
|
52
|
+
location.hash = '/home';
|
53
|
+
location.reload();
|
54
|
+
return;
|
55
|
+
}
|
56
|
+
/*let param = this.$route.query.param;
|
57
|
+
if (param) {
|
58
|
+
this.outParam = JSON.parse(param)
|
59
|
+
}*/
|
60
|
+
this.dataId = dataId;
|
61
|
+
if (this.$route.query.showWfContent == 'true') {
|
62
|
+
this.defaultShowWfContent = true;
|
63
|
+
}
|
64
|
+
|
65
|
+
delete queryParam.urlmobile;
|
66
|
+
delete queryParam.url;
|
67
|
+
|
68
|
+
if (purl.indexOf('.html') >= 0) {
|
69
|
+
let eUrl = purl;
|
70
|
+
let pstr = Object.keys(queryParam).map(key => {
|
71
|
+
return key + "=" + queryParam[key]
|
72
|
+
}).join("&")
|
73
|
+
|
74
|
+
if (pstr) {
|
75
|
+
if (purl.indexOf('.html?') >= 0) {
|
76
|
+
eUrl = eUrl + '&' + pstr
|
77
|
+
} else {
|
78
|
+
eUrl = eUrl + '?' + pstr
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
location.href = eUrl;
|
83
|
+
return
|
84
|
+
}
|
85
|
+
|
86
|
+
delete queryParam.dataId;
|
87
|
+
delete queryParam.showWfContent;
|
88
|
+
delete queryParam.access_token;
|
89
|
+
delete queryParam.tp;
|
90
|
+
delete queryParam.thirdparty_info;
|
91
|
+
delete queryParam.i18nLang;
|
92
|
+
|
93
|
+
let url = purl + '.vue';
|
94
|
+
this.queryParam = queryParam;
|
95
|
+
this.showWfContent = true;
|
96
|
+
// this.wfContent = require('@/views' + url).default;
|
97
|
+
let t = "@base/views";
|
98
|
+
let urlArr = [
|
99
|
+
'/user/bill_setting/h5_view.vue',
|
100
|
+
'/user/form/view/list.vue',
|
101
|
+
'/user/form/view/edit.vue'
|
102
|
+
]
|
103
|
+
this.initUserInfo(() => {
|
104
|
+
this.initI18n();
|
105
|
+
if (urlArr.includes(url)) {
|
106
|
+
this.wfContent = require('@base/views' + url).default;
|
107
|
+
} else if (url.startsWith(t)) {
|
108
|
+
let path = url.slice(t.length);
|
109
|
+
this.wfContent = require('@base/views' + path).default;
|
110
|
+
} else {
|
111
|
+
this.wfContent = require('@/views' + url).default;
|
112
|
+
}
|
113
|
+
})
|
114
|
+
},
|
115
|
+
initUserInfo(callback) {
|
116
|
+
this.$store
|
117
|
+
.dispatch('user/getInfo2')
|
118
|
+
.then(() => {
|
119
|
+
callback && callback();
|
120
|
+
});
|
121
|
+
},
|
122
|
+
getI18nLang() {
|
123
|
+
let i18nLang = this.$route.query.i18nLang || "zh";
|
124
|
+
return i18nLang;
|
125
|
+
},
|
126
|
+
async initI18n() {
|
127
|
+
let lang = this.getI18nLang();
|
128
|
+
this.$i18n.locale = lang // 设置给本地的i18n插件
|
129
|
+
localStorage.setItem("i18n-lang", lang);
|
130
|
+
await indexUtil.initI18nMessage("business", lang, true);
|
131
|
+
},
|
132
|
+
login() {
|
133
|
+
let token = this.$route.query.access_token;
|
134
|
+
let url = this.$route.query.url;
|
135
|
+
let hasToken = this.$route.query.hasToken;
|
136
|
+
let tp = this.$route.query.tp || this.$route.query.thirdparty_info;
|
137
|
+
if (url) {
|
138
|
+
if (token) {
|
139
|
+
this.initByToken(token);
|
140
|
+
} else if (tp) {
|
141
|
+
this.thirdpartyLogin(tp);
|
142
|
+
} else if (hasToken == "true") {
|
143
|
+
this.$nextTick(() => {
|
144
|
+
this.initData();
|
145
|
+
});
|
146
|
+
}
|
147
|
+
this.initGlobalReqData();
|
148
|
+
}
|
149
|
+
},
|
150
|
+
initByToken(token) {
|
151
|
+
if (!token) return;
|
152
|
+
this.$store
|
153
|
+
.dispatch('user/addToken', {
|
154
|
+
token
|
155
|
+
})
|
156
|
+
.then(() => {
|
157
|
+
this.$nextTick(() => {
|
158
|
+
this.initData();
|
159
|
+
});
|
160
|
+
});
|
161
|
+
},
|
162
|
+
thirdpartyLogin(tp) {
|
163
|
+
let lang = this.getI18nLang();
|
164
|
+
this.$http({
|
165
|
+
url: USER_PREFIX + `/thirdparty_auth/login`,
|
166
|
+
method: `post`,
|
167
|
+
data: {
|
168
|
+
tp: tp,
|
169
|
+
language: lang
|
170
|
+
},
|
171
|
+
isLoading: true,
|
172
|
+
modalStrictly: true,
|
173
|
+
useToken: false,
|
174
|
+
success: res => {
|
175
|
+
let thirdpartyToken = res.objx;
|
176
|
+
this.initByToken(thirdpartyToken);
|
177
|
+
}
|
178
|
+
});
|
179
|
+
},
|
180
|
+
handlePopState(event) {
|
181
|
+
// 阻止回退
|
182
|
+
history.go(1);
|
183
|
+
}
|
184
|
+
}
|
185
|
+
};
|
186
|
+
</script>
|
187
|
+
|
188
|
+
<style lang="scss" scoped>
|
189
|
+
::v-deep .tab-box > .el-tabs__content {
|
190
|
+
|
191
|
+
.designer-view {
|
192
|
+
height: calc(100vh - 33px)
|
193
|
+
}
|
194
|
+
|
195
|
+
.grid-height,
|
196
|
+
.designer-view .el-form.render-form {
|
197
|
+
height: calc(100vh - 41px)
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
::v-deep #containt .detail-wrap {
|
202
|
+
.d-header {
|
203
|
+
margin: -8px -12px 0;
|
204
|
+
}
|
205
|
+
|
206
|
+
.d-cont {
|
207
|
+
margin: 0 -12px;
|
208
|
+
height: calc(100vh - 73px)
|
209
|
+
}
|
210
|
+
}
|
211
|
+
</style>
|