eoss-ui 0.5.63 → 0.5.65
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/lib/button-group.js +43 -23
- package/lib/button.js +65 -39
- package/lib/calendar.js +13 -5
- package/lib/checkbox-group.js +4 -2
- package/lib/data-table-form.js +4 -2
- package/lib/data-table.js +112 -25
- package/lib/date-picker.js +4 -2
- package/lib/dialog.js +4 -2
- package/lib/eoss-ui.common.js +635 -393
- package/lib/flow-group.js +4 -2
- package/lib/flow-list.js +4 -2
- package/lib/flow.js +153 -123
- package/lib/form.js +9 -4
- package/lib/handle-user.js +4 -2
- package/lib/handler.js +4 -2
- package/lib/icon.js +4 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +4 -2
- package/lib/input.js +4 -2
- package/lib/login.js +23 -6
- package/lib/main.js +189 -128
- package/lib/nav.js +4 -2
- package/lib/page.js +4 -2
- package/lib/player.js +4 -2
- package/lib/qr-code.js +13 -13
- package/lib/radio-group.js +4 -2
- package/lib/retrial-auth.js +4 -2
- package/lib/select-ganged.js +4 -2
- package/lib/select.js +4 -2
- package/lib/selector-panel.js +4 -2
- package/lib/selector.js +4 -2
- package/lib/sizer.js +4 -2
- package/lib/steps.js +4 -2
- package/lib/switch.js +4 -2
- package/lib/table-form.js +4 -2
- package/lib/tabs.js +4 -2
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/button-group.css +1 -1
- package/lib/theme-chalk/button.css +1 -1
- package/lib/theme-chalk/calendar.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/qr-code.css +1 -1
- package/lib/theme-chalk/sizer.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/tips.js +4 -2
- package/lib/tree-group.js +4 -2
- package/lib/tree.js +4 -2
- package/lib/upload.js +12 -8
- package/lib/utils/util.js +4 -2
- package/lib/wujie.js +4 -2
- package/lib/wxlogin.js +4 -2
- package/package.json +2 -2
- package/packages/button/src/main.vue +92 -56
- package/packages/button-group/src/main.vue +10 -1
- package/packages/calendar/src/main.vue +11 -4
- package/packages/data-table/src/children.vue +3 -1
- package/packages/data-table/src/main.vue +55 -10
- package/packages/flow/src/processForm.vue +32 -4
- package/packages/form/src/main.vue +3 -0
- package/packages/login/src/main.vue +12 -1
- package/packages/main/src/main.vue +147 -101
- package/packages/qr-code/src/main.vue +10 -5
- package/packages/theme-chalk/lib/base.css +1 -1
- package/packages/theme-chalk/lib/button-group.css +1 -1
- package/packages/theme-chalk/lib/button.css +1 -1
- package/packages/theme-chalk/lib/calendar.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/lib/qr-code.css +1 -1
- package/packages/theme-chalk/lib/sizer.css +1 -1
- package/packages/theme-chalk/lib/upload.css +1 -1
- package/packages/theme-chalk/src/base.scss +3 -0
- package/packages/theme-chalk/src/button-group.scss +110 -0
- package/packages/theme-chalk/src/button.scss +6 -0
- package/packages/theme-chalk/src/calendar.scss +3 -0
- package/packages/theme-chalk/src/qr-code.scss +1 -1
- package/packages/upload/src/main.vue +3 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +4 -1
package/lib/flow-group.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|
package/lib/flow-list.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|
package/lib/flow.js
CHANGED
|
@@ -2200,7 +2200,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2200
2200
|
});
|
|
2201
2201
|
}
|
|
2202
2202
|
}).catch(function (e) {});
|
|
2203
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2203
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
2204
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2205
2205
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2206
2206
|
} else {
|
|
@@ -2890,7 +2890,9 @@ var toFunction = function toFunction(str) {
|
|
|
2890
2890
|
* @param {string} [$color] - 颜色值
|
|
2891
2891
|
**/
|
|
2892
2892
|
var updateTheme = function updateTheme(color, send) {
|
|
2893
|
-
|
|
2893
|
+
if (!color) {
|
|
2894
|
+
return false;
|
|
2895
|
+
}
|
|
2894
2896
|
|
|
2895
2897
|
if (send === undefined) {
|
|
2896
2898
|
send = true;
|
|
@@ -6698,8 +6700,8 @@ var CommonOpinions_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6698
6700
|
)
|
|
6699
6701
|
|
|
6700
6702
|
/* harmony default export */ var CommonOpinions = (CommonOpinions_component.exports);
|
|
6701
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processForm.vue?vue&type=template&id=
|
|
6702
|
-
var
|
|
6703
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/processForm.vue?vue&type=template&id=38d27a4e&
|
|
6704
|
+
var processFormvue_type_template_id_38d27a4e_render = function () {
|
|
6703
6705
|
var _vm = this
|
|
6704
6706
|
var _h = _vm.$createElement
|
|
6705
6707
|
var _c = _vm._self._c || _h
|
|
@@ -7165,11 +7167,11 @@ var processFormvue_type_template_id_aaac09fe_render = function () {
|
|
|
7165
7167
|
1
|
|
7166
7168
|
)
|
|
7167
7169
|
}
|
|
7168
|
-
var
|
|
7169
|
-
|
|
7170
|
+
var processFormvue_type_template_id_38d27a4e_staticRenderFns = []
|
|
7171
|
+
processFormvue_type_template_id_38d27a4e_render._withStripped = true
|
|
7170
7172
|
|
|
7171
7173
|
|
|
7172
|
-
// CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=
|
|
7174
|
+
// CONCATENATED MODULE: ./packages/flow/src/processForm.vue?vue&type=template&id=38d27a4e&
|
|
7173
7175
|
|
|
7174
7176
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/flow/src/selectUser.vue?vue&type=template&id=db651118&
|
|
7175
7177
|
var selectUservue_type_template_id_db651118_render = function () {
|
|
@@ -8952,6 +8954,7 @@ var processFormvue_type_script_lang_js_components;
|
|
|
8952
8954
|
}
|
|
8953
8955
|
}
|
|
8954
8956
|
},
|
|
8957
|
+
userModel: {},
|
|
8955
8958
|
nextUserTabs: {},
|
|
8956
8959
|
selectPresetUserList: [],
|
|
8957
8960
|
presetOptions: [],
|
|
@@ -8996,12 +8999,39 @@ var processFormvue_type_script_lang_js_components;
|
|
|
8996
8999
|
}
|
|
8997
9000
|
}
|
|
8998
9001
|
},
|
|
9002
|
+
created: function created() {
|
|
9003
|
+
this.getUserInfo();
|
|
9004
|
+
},
|
|
8999
9005
|
mounted: function mounted() {
|
|
9000
9006
|
this.getStartFlow(this.processDefinitionId);
|
|
9001
9007
|
this.newOpinion = this.opinion;
|
|
9002
9008
|
},
|
|
9003
9009
|
|
|
9004
9010
|
methods: {
|
|
9011
|
+
getUserInfo: function getUserInfo() {
|
|
9012
|
+
var _this = this;
|
|
9013
|
+
|
|
9014
|
+
var mainConfig = util["a" /* default */].getStorage('mainConfig');
|
|
9015
|
+
if (mainConfig) {
|
|
9016
|
+
this.userModel = JSON.parse(mainConfig).userModel;
|
|
9017
|
+
} else {
|
|
9018
|
+
util["a" /* default */].ajax({ url: api["cb" /* loginUserInfo */] }).then(function (res) {
|
|
9019
|
+
var status = res.status,
|
|
9020
|
+
data = res.data;
|
|
9021
|
+
|
|
9022
|
+
if (status == 'success') {
|
|
9023
|
+
_this.userModel = data;
|
|
9024
|
+
} else {
|
|
9025
|
+
var msg = res.msg || '系统错误,请联系管理员!';
|
|
9026
|
+
_this.$message.error(msg);
|
|
9027
|
+
}
|
|
9028
|
+
}).catch(function (err) {
|
|
9029
|
+
if (err.message && err.message !== 'canceled') {
|
|
9030
|
+
_this.$message.error(err.message);
|
|
9031
|
+
}
|
|
9032
|
+
});
|
|
9033
|
+
}
|
|
9034
|
+
},
|
|
9005
9035
|
getIsShowNextUser: function getIsShowNextUser(val) {
|
|
9006
9036
|
if (val == 7 || val == 8 || val == 9 || val == 10 || val == 11 || val == 12) {
|
|
9007
9037
|
this.isShowNextUser = false;
|
|
@@ -9087,7 +9117,7 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9087
9117
|
this.mixOrgIdList = mixList;
|
|
9088
9118
|
},
|
|
9089
9119
|
getNodeType: function getNodeType() {
|
|
9090
|
-
var
|
|
9120
|
+
var _this2 = this;
|
|
9091
9121
|
|
|
9092
9122
|
util["a" /* default */].ajax({
|
|
9093
9123
|
url: api["u" /* findCodeValues */],
|
|
@@ -9100,19 +9130,19 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9100
9130
|
data = res.data;
|
|
9101
9131
|
|
|
9102
9132
|
if (status === 'success') {
|
|
9103
|
-
|
|
9133
|
+
_this2.nextNode.noticeList = data;
|
|
9104
9134
|
}
|
|
9105
9135
|
}).catch(function (err) {
|
|
9106
|
-
|
|
9136
|
+
_this2.loading = false;
|
|
9107
9137
|
if (err.message && err.message !== 'canceled') {
|
|
9108
|
-
|
|
9138
|
+
_this2.$message.error(err.message);
|
|
9109
9139
|
}
|
|
9110
9140
|
});
|
|
9111
9141
|
},
|
|
9112
9142
|
|
|
9113
9143
|
//获取通知信息
|
|
9114
9144
|
getMessage: function getMessage() {
|
|
9115
|
-
var
|
|
9145
|
+
var _this3 = this;
|
|
9116
9146
|
|
|
9117
9147
|
var params = {
|
|
9118
9148
|
processDefinitionId: this.processDefinitionId,
|
|
@@ -9121,12 +9151,12 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9121
9151
|
};
|
|
9122
9152
|
util["a" /* default */].ajax({ url: api["I" /* getNotificationMsg */], params: params, methods: 'post' }).then(function (res) {
|
|
9123
9153
|
if (res.status === 'success') {
|
|
9124
|
-
|
|
9154
|
+
_this3.nextNode.noticeInfo = res.message;
|
|
9125
9155
|
}
|
|
9126
9156
|
}).catch(function (err) {
|
|
9127
|
-
|
|
9157
|
+
_this3.loading = false;
|
|
9128
9158
|
if (err.message && err.message !== 'canceled') {
|
|
9129
|
-
|
|
9159
|
+
_this3.$message.error(err.message);
|
|
9130
9160
|
}
|
|
9131
9161
|
});
|
|
9132
9162
|
},
|
|
@@ -9136,11 +9166,11 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9136
9166
|
this.saveProcess(formName);
|
|
9137
9167
|
},
|
|
9138
9168
|
saveProcess: function saveProcess(formName) {
|
|
9139
|
-
var
|
|
9169
|
+
var _this4 = this;
|
|
9140
9170
|
|
|
9141
9171
|
this.$refs[formName].validate(function (valid) {
|
|
9142
9172
|
if (valid) {
|
|
9143
|
-
var _nextNode =
|
|
9173
|
+
var _nextNode = _this4.nextNode,
|
|
9144
9174
|
nextNode = _nextNode.nextNode,
|
|
9145
9175
|
nextUser = _nextNode.nextUser,
|
|
9146
9176
|
noticeInfo = _nextNode.noticeInfo,
|
|
@@ -9152,20 +9182,20 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9152
9182
|
newOpinion = _nextNode.newOpinion;
|
|
9153
9183
|
|
|
9154
9184
|
if (noticeType.length === 0) {
|
|
9155
|
-
return
|
|
9185
|
+
return _this4.$message.warning('请选择通知方式');
|
|
9156
9186
|
}
|
|
9157
|
-
if (
|
|
9158
|
-
if (nextUser == '' ||
|
|
9159
|
-
return
|
|
9187
|
+
if (_this4.isShowNextUser) {
|
|
9188
|
+
if (nextUser == '' || _this4.multiple && nextUser.length == 0) {
|
|
9189
|
+
return _this4.$message.warning('请选择下步办理人');
|
|
9160
9190
|
}
|
|
9161
9191
|
} else {
|
|
9162
|
-
if (nextOrgId == '' ||
|
|
9163
|
-
return
|
|
9192
|
+
if (nextOrgId == '' || _this4.multiple && nextOrgId.length == 0) {
|
|
9193
|
+
return _this4.$message.warning('请选择办理对象');
|
|
9164
9194
|
}
|
|
9165
9195
|
}
|
|
9166
|
-
|
|
9196
|
+
_this4.loading = true;
|
|
9167
9197
|
var newNextUser = [];
|
|
9168
|
-
if (
|
|
9198
|
+
if (_this4.multiple) {
|
|
9169
9199
|
nextUser && nextUser.map(function (item) {
|
|
9170
9200
|
return newNextUser.push(item);
|
|
9171
9201
|
});
|
|
@@ -9175,37 +9205,37 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9175
9205
|
newNoticeType = noticeType.join(',');
|
|
9176
9206
|
}
|
|
9177
9207
|
var params = {
|
|
9178
|
-
processDefinitionId:
|
|
9179
|
-
nextUserId:
|
|
9208
|
+
processDefinitionId: _this4.processDefinitionId,
|
|
9209
|
+
nextUserId: _this4.multiple ? newNextUser.join(',') : nextUser,
|
|
9180
9210
|
nextNodeId: nextNode,
|
|
9181
|
-
businessId:
|
|
9211
|
+
businessId: _this4.businessId,
|
|
9182
9212
|
notificationType: newNoticeType,
|
|
9183
9213
|
userId: util["a" /* default */].getStorage('userId'),
|
|
9184
9214
|
notificationMsg: noticeInfo,
|
|
9185
|
-
customPresetUserJson: JSON.stringify(
|
|
9186
|
-
presetUserJson: JSON.stringify(
|
|
9187
|
-
nextReadUserId:
|
|
9188
|
-
nextOrgId: !
|
|
9215
|
+
customPresetUserJson: JSON.stringify(_this4.presetList),
|
|
9216
|
+
presetUserJson: JSON.stringify(_this4.presetUserJson),
|
|
9217
|
+
nextReadUserId: _this4.readMultiple ? _this4.mixReadList && _this4.mixReadList.join('|') : nextReadUserId,
|
|
9218
|
+
nextOrgId: !_this4.isShowNextUser ? _this4.multiple ? _this4.mixOrgIdList && _this4.mixOrgIdList.join('|') : nextOrgId : '',
|
|
9189
9219
|
handleExplain: handleExplain,
|
|
9190
|
-
presetReadUserId:
|
|
9191
|
-
opinion:
|
|
9220
|
+
presetReadUserId: _this4.mixPresetList && _this4.mixPresetList.length > 0 ? _this4.mixPresetList.join('|') : presetReadUserId.join(','),
|
|
9221
|
+
opinion: _this4.newOpinion || newOpinion
|
|
9192
9222
|
};
|
|
9193
|
-
if (
|
|
9223
|
+
if (_this4.activeNames != '1') delete params.customPresetUserJson;
|
|
9194
9224
|
util["a" /* default */].ajax({ url: api["mb" /* register */], method: 'post', data: params }).then(function (res) {
|
|
9195
9225
|
var status = res.status,
|
|
9196
9226
|
message = res.message;
|
|
9197
9227
|
|
|
9198
|
-
|
|
9228
|
+
_this4.loading = false;
|
|
9199
9229
|
if (status === 'success') {
|
|
9200
|
-
|
|
9201
|
-
|
|
9230
|
+
_this4.quit(true);
|
|
9231
|
+
_this4.$message.success('操作成功');
|
|
9202
9232
|
} else {
|
|
9203
|
-
|
|
9233
|
+
_this4.$message.error(message || '系统错误,请联系管理员!');
|
|
9204
9234
|
}
|
|
9205
9235
|
}).catch(function (err) {
|
|
9206
|
-
|
|
9236
|
+
_this4.loading = false;
|
|
9207
9237
|
if (err.message && err.message !== 'canceled') {
|
|
9208
|
-
|
|
9238
|
+
_this4.$message.error(err.message);
|
|
9209
9239
|
}
|
|
9210
9240
|
});
|
|
9211
9241
|
} else {
|
|
@@ -9214,7 +9244,7 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9214
9244
|
});
|
|
9215
9245
|
},
|
|
9216
9246
|
getNodeInfos: function getNodeInfos(nodeId, index) {
|
|
9217
|
-
var
|
|
9247
|
+
var _this5 = this;
|
|
9218
9248
|
|
|
9219
9249
|
var params = {
|
|
9220
9250
|
processDefinitionId: this.processDefinitionId,
|
|
@@ -9230,63 +9260,63 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9230
9260
|
countersignaturetypeText = _res$data.countersignaturetypeText,
|
|
9231
9261
|
countersignaturetypeCode = _res$data.countersignaturetypeCode;
|
|
9232
9262
|
|
|
9233
|
-
|
|
9263
|
+
_this5.loading = false;
|
|
9234
9264
|
if (status === 'success') {
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9265
|
+
_this5.nextNode.userInfo = nextUserList;
|
|
9266
|
+
_this5.countersignaturetypeCode = countersignaturetypeCode;
|
|
9267
|
+
_this5.nextNode.countersignaturetypeText = countersignaturetypeText;
|
|
9268
|
+
_this5.isTaskread = nodeExtAttr.isTaskread;
|
|
9269
|
+
_this5.isHandleExplain = nodeExtAttr.isHandleExplain;
|
|
9270
|
+
_this5.isCustomUser = nodeExtAttr.isCustomUser; //是否展示选人组件按钮
|
|
9271
|
+
_this5.presetEdit = nodeExtAttr.presetEdit; //是否展示备选人
|
|
9272
|
+
_this5.isDefSelectedObj = nodeExtAttr.isDefSelectedObj; //是否默认选中
|
|
9243
9273
|
if (nodeExtAttr.userSelectionType == 7 || nodeExtAttr.userSelectionType == 8 || nodeExtAttr.userSelectionType == 9 || nodeExtAttr.userSelectionType == 10 || nodeExtAttr.userSelectionType == 11 || nodeExtAttr.userSelectionType == 12) {
|
|
9244
|
-
|
|
9274
|
+
_this5.getIsShowNextUser(nodeExtAttr && nodeExtAttr.userSelectionType);
|
|
9245
9275
|
} else {
|
|
9246
|
-
var _isMultiple =
|
|
9276
|
+
var _isMultiple = _this5.isMultiple(nodeExtAttr.userSelectionType),
|
|
9247
9277
|
multiple = _isMultiple.multiple,
|
|
9248
9278
|
_params = _isMultiple.params;
|
|
9249
9279
|
|
|
9250
|
-
|
|
9251
|
-
|
|
9280
|
+
_this5.multiple = multiple;
|
|
9281
|
+
_this5.params = _params;
|
|
9252
9282
|
}
|
|
9253
9283
|
// this.isReadMultiple(nodeExtAttr.userSelectionType);
|
|
9254
9284
|
|
|
9255
9285
|
nextUserList.map(function (item) {
|
|
9256
|
-
if (
|
|
9257
|
-
|
|
9258
|
-
|
|
9286
|
+
if (_this5.multiple && nodeExtAttr.isDefSelectedObj == 1 && nextUserList !== undefined) {
|
|
9287
|
+
_this5.nextNode.nextUser.push(item.userId);
|
|
9288
|
+
_this5.selectUserList.push({
|
|
9259
9289
|
showname: item.username,
|
|
9260
9290
|
showid: item.userId
|
|
9261
9291
|
});
|
|
9262
9292
|
}
|
|
9263
9293
|
|
|
9264
|
-
|
|
9294
|
+
_this5.options.push({
|
|
9265
9295
|
showname: item.username,
|
|
9266
9296
|
showid: item.userId
|
|
9267
9297
|
});
|
|
9268
9298
|
});
|
|
9269
|
-
if (
|
|
9270
|
-
|
|
9299
|
+
if (_this5.multiple) {
|
|
9300
|
+
_this5.nextNode.nextReadUserId = [];
|
|
9271
9301
|
} else {
|
|
9272
|
-
|
|
9302
|
+
_this5.nextNode.nextReadUserId = '';
|
|
9273
9303
|
}
|
|
9274
|
-
if (nextUserList.length > 0 && nodeExtAttr.isDefSelectedObj == 1 && !
|
|
9275
|
-
|
|
9276
|
-
|
|
9304
|
+
if (nextUserList.length > 0 && nodeExtAttr.isDefSelectedObj == 1 && !_this5.multiple) {
|
|
9305
|
+
_this5.nextNode.nextUser = nextUserList[0].userId;
|
|
9306
|
+
_this5.selectUserList.push({
|
|
9277
9307
|
showname: nextUserList[0].username,
|
|
9278
9308
|
showid: nextUserList[0].userId
|
|
9279
9309
|
});
|
|
9280
9310
|
}
|
|
9281
|
-
|
|
9311
|
+
_this5.radioList = _this5.options;
|
|
9282
9312
|
} else {
|
|
9283
|
-
|
|
9313
|
+
_this5.$message.error(message || '系统错误,请联系管理员!');
|
|
9284
9314
|
}
|
|
9285
|
-
nodeId &&
|
|
9315
|
+
nodeId && _this5.$refs.selectUser[index].changeInfo();
|
|
9286
9316
|
}).catch(function (err) {
|
|
9287
|
-
|
|
9317
|
+
_this5.loading = false;
|
|
9288
9318
|
if (err.message && err.message !== 'canceled') {
|
|
9289
|
-
|
|
9319
|
+
_this5.$message.error(err.message);
|
|
9290
9320
|
}
|
|
9291
9321
|
});
|
|
9292
9322
|
},
|
|
@@ -9305,7 +9335,7 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9305
9335
|
this.$emit('cancel', false);
|
|
9306
9336
|
},
|
|
9307
9337
|
getFind: function getFind() {
|
|
9308
|
-
var
|
|
9338
|
+
var _this6 = this;
|
|
9309
9339
|
|
|
9310
9340
|
util["a" /* default */].ajax({
|
|
9311
9341
|
url: api["w" /* findSysCodes */]
|
|
@@ -9314,14 +9344,14 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9314
9344
|
message = res.message;
|
|
9315
9345
|
|
|
9316
9346
|
if (status === 'success') {
|
|
9317
|
-
|
|
9347
|
+
_this6.nextNode.noticeType = message.split(',');
|
|
9318
9348
|
} else {
|
|
9319
|
-
|
|
9349
|
+
_this6.$message.error(message || '系统错误,请联系管理员!');
|
|
9320
9350
|
}
|
|
9321
9351
|
}).catch(function (err) {
|
|
9322
|
-
|
|
9352
|
+
_this6.loading = false;
|
|
9323
9353
|
if (err.message && err.message !== 'canceled') {
|
|
9324
|
-
|
|
9354
|
+
_this6.$message.error(err.message);
|
|
9325
9355
|
}
|
|
9326
9356
|
});
|
|
9327
9357
|
},
|
|
@@ -9339,15 +9369,15 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9339
9369
|
multiple = true;
|
|
9340
9370
|
}
|
|
9341
9371
|
if (val == 1 || val == 2 || val == 5) {
|
|
9342
|
-
params.filid =
|
|
9372
|
+
params.filid = this.userModel.orgId;
|
|
9343
9373
|
params.only_filid = true;
|
|
9344
9374
|
if (choiceOrgId) {
|
|
9345
9375
|
params.filid = choiceOrgId;
|
|
9346
9376
|
}
|
|
9347
9377
|
}
|
|
9348
9378
|
if (val == 5 || val == 6) {
|
|
9349
|
-
params.filid =
|
|
9350
|
-
params.deptid =
|
|
9379
|
+
params.filid = this.userModel.orgId;
|
|
9380
|
+
params.deptid = this.userModel.orgId;
|
|
9351
9381
|
if (choiceDeptId) {
|
|
9352
9382
|
params.deptid = choiceDeptId;
|
|
9353
9383
|
}
|
|
@@ -9356,7 +9386,7 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9356
9386
|
}
|
|
9357
9387
|
}
|
|
9358
9388
|
if (val == 15 || val == 16) {
|
|
9359
|
-
params.filid =
|
|
9389
|
+
params.filid = this.userModel.orgId;
|
|
9360
9390
|
if (pOrgId) {
|
|
9361
9391
|
params.filid = pOrgId;
|
|
9362
9392
|
}
|
|
@@ -9364,7 +9394,7 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9364
9394
|
return { multiple: multiple, params: params };
|
|
9365
9395
|
},
|
|
9366
9396
|
getStartFlow: function getStartFlow(processId) {
|
|
9367
|
-
var
|
|
9397
|
+
var _this7 = this;
|
|
9368
9398
|
|
|
9369
9399
|
if (!processId) {
|
|
9370
9400
|
return false;
|
|
@@ -9384,80 +9414,80 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9384
9414
|
data = res.data;
|
|
9385
9415
|
|
|
9386
9416
|
if (status == 'success') {
|
|
9387
|
-
data.nodeInfoMap.nodeExtAttr.submitTipsMsg &&
|
|
9417
|
+
data.nodeInfoMap.nodeExtAttr.submitTipsMsg && _this7.$confirm(data.nodeInfoMap.nodeExtAttr.submitTipsMsg, '提示', {
|
|
9388
9418
|
confirmButtonText: '确定',
|
|
9389
9419
|
cancelButtonText: '取消',
|
|
9390
9420
|
type: 'warning'
|
|
9391
9421
|
}).then(function () {}).catch(function () {
|
|
9392
|
-
|
|
9422
|
+
_this7.quit();
|
|
9393
9423
|
});
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
if (
|
|
9403
|
-
|
|
9424
|
+
_this7.customPresetHintMessage = data.customPresetHintMessage;
|
|
9425
|
+
_this7.nextNode.nodeInfo = data.nextNodeList;
|
|
9426
|
+
_this7.nextNode.nextNode = data.nextNodeList[0].nodeId;
|
|
9427
|
+
_this7.isPreset = data.isPreset;
|
|
9428
|
+
_this7.isHideDefaultOperation = data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation;
|
|
9429
|
+
_this7.defaultNextNode = data.nodeInfoMap.nodeExtAttr.defaultNextNode;
|
|
9430
|
+
_this7.isChooseNextNode = data.nodeInfoMap.nodeExtAttr.isChooseNextNode;
|
|
9431
|
+
_this7.isCdjxjTaskHandle = data.isCdjxjTaskHandle;
|
|
9432
|
+
if (_this7.isChooseNextNode == 1) {
|
|
9433
|
+
_this7.operationList = [{ key: 0, value: '默认', list: [] }, { key: 1, value: '自定义', list: [] }];
|
|
9404
9434
|
var arr = [];
|
|
9405
9435
|
for (var key in data.taskNodeMap) {
|
|
9406
9436
|
arr.push({ nodeName: data.taskNodeMap[key], nodeId: key });
|
|
9407
9437
|
}
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
if (
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
if (
|
|
9414
|
-
|
|
9438
|
+
_this7.operationList[0].list = data.nextNodeList;
|
|
9439
|
+
_this7.operationList[1].list = arr;
|
|
9440
|
+
if (_this7.isHideDefaultOperation != 1) {
|
|
9441
|
+
_this7.nextNode.nextOperate = 0;
|
|
9442
|
+
_this7.nextNode.nodeInfo = _this7.operationList[0].list;
|
|
9443
|
+
if (_this7.nextNode.nodeInfo.length > 0) {
|
|
9444
|
+
_this7.nextNode.nextNode = _this7.defaultNextNode || data.nextNodeList[0].nodeId;
|
|
9415
9445
|
}
|
|
9416
9446
|
} else if (data.nodeInfoMap.nodeExtAttr.defaultNextOperate == 1 || data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation == 1) {
|
|
9417
9447
|
// this.nextNode.nodeInfo = data.nextNodeList
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
if (
|
|
9421
|
-
|
|
9448
|
+
_this7.nextNode.nextOperate = 1;
|
|
9449
|
+
_this7.nextNode.nodeInfo = _this7.operationList[1].list;
|
|
9450
|
+
if (_this7.nextNode.nodeInfo.length > 0) {
|
|
9451
|
+
_this7.nextNode.nextNode = _this7.defaultNextNode || data.nextNodeList[0].nodeId;
|
|
9422
9452
|
}
|
|
9423
9453
|
}
|
|
9424
9454
|
}
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9455
|
+
_this7.isCustomPreset = data.isCustomPreset;
|
|
9456
|
+
_this7.presetTaskNodeKeyStr = data.presetTaskNodeKeyStr;
|
|
9457
|
+
_this7.presetTaskNodeMap = data.presetTaskNodeMap;
|
|
9458
|
+
_this7.isSinglePage = data.taskExamine.isSinglePage;
|
|
9459
|
+
_this7.isSinglePage && (_this7.nextNode.opinion = data.taskExamine.opinion);
|
|
9430
9460
|
// this.nextNode.noticeInfo = data.taskExamine.notificationMsg;
|
|
9431
|
-
|
|
9432
|
-
|
|
9461
|
+
_this7.nextNode.nodeName = data.taskExamine.nodeName;
|
|
9462
|
+
_this7.canPresetRead = data.canPresetRead;
|
|
9433
9463
|
if (data.canPresetRead) {
|
|
9434
9464
|
var ids = data.nodeInfoMap.nodeExtAttr.presetReadCandinateIds.split(',');
|
|
9435
9465
|
var names = data.nodeInfoMap.nodeExtAttr.presetReadCandinateNames.split(',');
|
|
9436
9466
|
ids.map(function (item, index) {
|
|
9437
|
-
|
|
9467
|
+
_this7.presetReadUserId.push({
|
|
9438
9468
|
showid: item,
|
|
9439
9469
|
showname: names[index]
|
|
9440
9470
|
});
|
|
9441
|
-
|
|
9471
|
+
_this7.selectPresetUserList.push({
|
|
9442
9472
|
showid: item,
|
|
9443
9473
|
showname: names[index]
|
|
9444
9474
|
});
|
|
9445
|
-
|
|
9475
|
+
_this7.nextNode.presetReadUserId.push(item);
|
|
9446
9476
|
});
|
|
9447
9477
|
}
|
|
9448
|
-
|
|
9478
|
+
_this7.getNodeInfos();
|
|
9449
9479
|
// this.getPresetFlowInfo();
|
|
9450
|
-
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
|
|
9480
|
+
_this7.isCustomPreset && _this7.$refs.customPreset.getPresetFlowInfo(_this7.nextNode.nextNode);
|
|
9481
|
+
_this7.getFind();
|
|
9482
|
+
_this7.getMessage();
|
|
9483
|
+
_this7.getNodeType();
|
|
9454
9484
|
} else {
|
|
9455
|
-
|
|
9485
|
+
_this7.$message.error(message || '系统错误,请联系管理员!');
|
|
9456
9486
|
}
|
|
9457
9487
|
}).catch(function (err) {
|
|
9458
|
-
|
|
9488
|
+
_this7.loading = false;
|
|
9459
9489
|
if (err.message && err.message !== 'canceled') {
|
|
9460
|
-
|
|
9490
|
+
_this7.$message.error(err.message);
|
|
9461
9491
|
}
|
|
9462
9492
|
});
|
|
9463
9493
|
}
|
|
@@ -9475,8 +9505,8 @@ var processFormvue_type_script_lang_js_components;
|
|
|
9475
9505
|
|
|
9476
9506
|
var processForm_component = Object(componentNormalizer["a" /* default */])(
|
|
9477
9507
|
src_processFormvue_type_script_lang_js_,
|
|
9478
|
-
|
|
9479
|
-
|
|
9508
|
+
processFormvue_type_template_id_38d27a4e_render,
|
|
9509
|
+
processFormvue_type_template_id_38d27a4e_staticRenderFns,
|
|
9480
9510
|
false,
|
|
9481
9511
|
null,
|
|
9482
9512
|
null,
|
package/lib/form.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|
|
@@ -3653,7 +3655,7 @@ module.exports = require("qs");
|
|
|
3653
3655
|
// ESM COMPAT FLAG
|
|
3654
3656
|
__webpack_require__.r(__webpack_exports__);
|
|
3655
3657
|
|
|
3656
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=
|
|
3658
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/main.vue?vue&type=template&id=55faec94&
|
|
3657
3659
|
var render = function () {
|
|
3658
3660
|
var _vm = this
|
|
3659
3661
|
var _h = _vm.$createElement
|
|
@@ -15114,7 +15116,7 @@ var staticRenderFns = []
|
|
|
15114
15116
|
render._withStripped = true
|
|
15115
15117
|
|
|
15116
15118
|
|
|
15117
|
-
// CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=
|
|
15119
|
+
// CONCATENATED MODULE: ./packages/form/src/main.vue?vue&type=template&id=55faec94&
|
|
15118
15120
|
|
|
15119
15121
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
15120
15122
|
var regenerator_ = __webpack_require__(12);
|
|
@@ -20063,6 +20065,9 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
|
|
|
20063
20065
|
var type = arguments[2];
|
|
20064
20066
|
var validate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
|
20065
20067
|
|
|
20068
|
+
if (this.readonly) {
|
|
20069
|
+
return Promise.resolve();
|
|
20070
|
+
}
|
|
20066
20071
|
if (!handle) {
|
|
20067
20072
|
handle = this.handles || {};
|
|
20068
20073
|
}
|
package/lib/handle-user.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|