Merge remote-tracking branch 'origin/master'
| | |
| | | <div> |
| | | <el-input :width="width" :class="inputClass" :style="inputStyle" :clearable="true" :value="value" |
| | | :disabled="disabled" :placeholder="placeholder" type="text" :size="size" @clear="clearValue" @focus="handleFocus"> |
| | | <span slot="append" v-html="svgHtml" style="font-size: 18px;height:18px;display: block"></span> |
| | | <span slot="append" v-html="svgHtml" style="font-size: 20px;padding:3px 10px;width:20px;height:20px;display: block" @click="handleFocus"></span> |
| | | </el-input> |
| | | <el-dialog v-dialogDrag |
| | | v-dialog-resize |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | <style scoped lang="scss"> |
| | | ::v-deep{ |
| | | .el-input-group__append, .el-input-group__prepend{ |
| | | padding: 0; |
| | | } |
| | | } |
| | | .tag-group{font-size: 14px;} |
| | | .el-tag{ |
| | | margin: 0 0 10px 10px; |
| | |
| | | this.form = res.data.obj.data; |
| | | this.loading = false; |
| | | }).catch(error => { |
| | | this.$message.error(error); |
| | | this.loading = false; |
| | | }) |
| | | } |
| | | this.loading = false; |
| | | }).catch(error => { |
| | | this.$message.error(error); |
| | | this.loading = false; |
| | | }); |
| | | |
| | |
| | | |
| | | this.getProcessNode(data[0].attributes.oid); // 首次进入调用第一个模板的所有节点 |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | }, |
| | | |
| | |
| | | }) |
| | | this.nodeLoading = false; |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | }, |
| | | |
| | |
| | | this.$message.error(res.data.obj.error); |
| | | } |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | }, |
| | | |
| | |
| | | "iconfont icon-iframe", |
| | | "iconfont icon-huanyingye", |
| | | ] |
| | | }, |
| | | ...fontIconList |
| | | } |
| | | ] |
| | |
| | | //如果在白名单里则自行catch逻辑处理 |
| | | if (statusWhiteList.includes(status)) return Promise.reject(res); |
| | | //如果是401则跳转到登录页面 |
| | | if (status === 401) store.dispatch('FedLogOut').then(() => router.push({path: '/login'})); |
| | | if (status === 401) { |
| | | store.dispatch('FedLogOut').then(() => router.push({path: '/login'})); |
| | | if(router.history.current.path!='/login'){ |
| | | Message({ |
| | | message: '会话过期,请重新登录', |
| | | type: 'error' |
| | | }); |
| | | return Promise.reject(new Error(message)) |
| | | }else { |
| | | return Promise.reject() |
| | | } |
| | | } |
| | | // 如果请求为非200否者默认统一处理 |
| | | if (status !== 200) { |
| | | Message({ |
| | |
| | | this.tableData = data; |
| | | this.tableLoading = false; |
| | | }).catch(err => { |
| | | this.$message.error(err) |
| | | }); |
| | | }, |
| | | |
| | |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('导出成功'); |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | }, |
| | | |
| | |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('下载成功'); |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | }, |
| | | |
| | |
| | | const data = res.data.data; |
| | | this.treeData = data; |
| | | this.tableLoading = false; |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }); |
| | | }) |
| | | }, |
| | | |
| | | // 导入 |
| | |
| | | exportAction(params).then(res => { |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('导出成功'); |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | }); |
| | | }, |
| | | |
| | | // action列表行删除 |
| | |
| | | const data = res.data.data; |
| | | this.customAttrData = data; |
| | | this.customAttrLoading = false; |
| | | }).catch(err => { |
| | | this.$message.error(err) |
| | | }); |
| | | }, |
| | | |
| | |
| | | exportExcel(params).then(res => { |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('导出成功'); |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }); |
| | | }, |
| | | |
| | |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('导出成功'); |
| | | this.expDialogVisible = false; |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }); |
| | | }, |
| | | |
| | |
| | | download().then(res => { |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('下载成功') |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | }); |
| | | }, |
| | | |
| | | // 导入部门 |
| | |
| | | stopUser(params).then(res => { |
| | | this.$message.success(res.data.obj); |
| | | this.getTableList(); |
| | | }).catch(err => { |
| | | this.$message.error(err) |
| | | }) |
| | | }); |
| | | }, |
| | | |
| | | // 选择框 |
| | |
| | | listRoleByUserOid(userOid).then(res => { |
| | | this.rightRoleData = res.data.data.map(item => item.oid); |
| | | }) |
| | | }).catch(err => { |
| | | this.$message.error(err) |
| | | }) |
| | | }); |
| | | this.$refs.transfer.visible = true; |
| | | }, |
| | | |
| | |
| | | saveRights(params).then(res => { |
| | | this.$message.success(res.data.obj); |
| | | this.getTableList(); |
| | | }).catch(err => { |
| | | this.$message.error(err) |
| | | }) |
| | | }); |
| | | }, |
| | | |
| | | // 设置密码策略 |
| | |
| | | saveUserPasswordStrateg(params).then(res => { |
| | | this.pwdVisible = false; |
| | | this.$message.success(res.data.obj) |
| | | }).catch(err => { |
| | | this.$message.error(err) |
| | | }) |
| | | }); |
| | | }, |
| | | |
| | | // 新增 |
| | |
| | | children: this.departData |
| | | }] |
| | | this.option.column[7].defaultExpandedKeys = ['ALLDept']; |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | }); |
| | | }, |
| | | |
| | | // 分配部门数据转换 |
| | |
| | | func.downloadFileByBlobHandler(res); |
| | | this.createdLoading = false |
| | | this.$message.success('导出成功'); |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | }); |
| | | }, |
| | | |
| | | // 导入 |
| | |
| | | exportFunctionSql({isFunction: true}).then(res => { |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('导出成功'); |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }); |
| | | }, |
| | | |
| | |
| | | exportSysConf(params).then(res => { |
| | | func.downloadFileByBlobHandler(res); |
| | | this.$message.success('导出成功'); |
| | | }).catch(err => { |
| | | this.$message.error(err); |
| | | }) |
| | | }); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | this.loading = false; |
| | | }).catch(error => { |
| | | this.$message.error(error); |
| | | this.loading = false; |
| | | }); |
| | | } |
| | |
| | | <icon-show :name="item.icon" style="display: inline-block"></icon-show> |
| | | </div> |
| | | <component :height="height*item.ratio" :is="item.module" :key="item.module" :title="item.title" :icon="item.icon"></component> |
| | | |
| | | </el-card> |
| | | </div> |
| | | </el-col> |
| | |
| | | ratio:1.00 |
| | | }]; |
| | | } |
| | | this.loading = false; |
| | | }).catch(error=>{ |
| | | this.homeData = [{ |
| | | orderNum:1, |
| | | module: "UndoTaskPortlet", |
| | | title: "待办流程任务", |
| | | num:24, |
| | | icon: "", |
| | | ratio:1.00 |
| | | }]; |
| | | }); |
| | | } |
| | | } |