当前位置: 首页 > news >正文

南阳市建设局网站网站建设 微信小程序

南阳市建设局网站,网站建设 微信小程序,wordpress 广告 统计,互联网保险经纪公司排名更多ruoyi-nbcio功能请看演示系统 gitee源代码地址 前后端代码#xff1a; https://gitee.com/nbacheng/ruoyi-nbcio 演示地址#xff1a;RuoYi-Nbcio后台管理系统 http://122.227.135.243:9666/ 更多nbcio-boot功能请看演示系统 gitee源代码地址 后端代码#xff1a…更多ruoyi-nbcio功能请看演示系统 gitee源代码地址 前后端代码 https://gitee.com/nbacheng/ruoyi-nbcio 演示地址RuoYi-Nbcio后台管理系统 http://122.227.135.243:9666/ 更多nbcio-boot功能请看演示系统  gitee源代码地址 后端代码 https://gitee.com/nbacheng/nbcio-boot 前端代码https://gitee.com/nbacheng/nbcio-vue.git 在线演示包括H5 http://122.227.135.243:9888 1、原先的ActApplyBtn.vue组件vue2代码如下 style langless /style templatespana-button :typebtnType clickapplySubmit() :loadingsubmitLoading{{text}}/a-buttona-modal :z-index100 :titlefirstInitiatorTitle cancelfirstInitiatorOpen false :visible.syncfirstInitiatorOpen:width50% append-to-bodya-descriptions bordered layoutverticala-descriptions-item :span3a-badge statusprocessing text选择提醒 //a-descriptions-itema-descriptions-item label重新发起新流程按钮 labelStyle{ color: #fff, fontWeight: bold, fontSize18px}重新发起新流程会删除之前发起的任务,重新开始./a-descriptions-itema-descriptions-item label继续发起老流程按钮继续发起流程就在原来流程基础上继续流转./a-descriptions-item/a-descriptionsspan slotfooter classdialog-footerel-button typeprimary clickReStartByDataId(true)重新发起新流程/el-buttonel-button typeprimary clickReStartByDataId(false)继续发起老流程/el-buttonel-button clickfirstInitiatorOpen false取 消/el-button/span/a-modal!--挂载关联多个流程--a-modal cancelflowOpen false :titleflowTitle :visible.syncflowOpen width70% append-to-bodyel-row :gutter64el-col :span20 :xs64 stylewidth: 100%el-table refsingleTable :dataprocessList border highlight-current-row stylewidth: 100%el-table-column typeselection width55 aligncenter /el-table-column label主键 aligncenter propid v-iftrue/el-table-column label业务表单名称 aligncenter propbusinessName /el-table-column label业务服务名称 aligncenter propbusinessService /el-table-column label流程名称 aligncenter propflowName /el-table-column label关联流程发布主键 aligncenter propdeployId /el-table-column label前端路由地址 aligncenter proprouteName /el-table-column label组件注入方法 aligncenter propcomponent /el-table-column label操作 aligncenter class-namesmall-padding fixed-widthtemplate slot-scopescopeel-button sizemini typetext clickselectProcess(scope.row)确定/el-button/template/el-table-column/el-table/el-col/el-row/a-modal/span /templatescriptimport {startByDataId,isFirstInitiator,deleteActivityAndJoin,getProcesss} from /api/workflow/process;export default {name: ActApplyBtn,components: {},props: {btnType: {type: String,default: link,required: false},/**/dataId: {type: String,default: ,required: true},serviceName: {type: String,default: ,required: true},variables: {type: Object,default: {},},text: {type: String,default: 提交申请,required: false}},data() {return {modalVisible: false,submitLoading: false,form: {},firstInitiatorOpen: false,firstInitiatorTitle: ,// 关联流程数据processList: [],flowOpen: false,flowTitle: ,selectFlowId: , //选择或使用的流程ID};},created() {},watch: {},methods: {selectProcess(row) {this.selectFlowId row.id;this.flowOpen false;var params Object.assign({dataId: this.dataId}, this.variables);startByDataId(this.dataId, this.selectFlowId, this.serviceName, params).then(res {//console.log(startByDataId res,res);if (res.code 200 ) {this.$message.success(res.msg);this.$emit(success);} else {this.$message.error(res.msg);}}).finally(() (this.submitLoading false));},ReStartByDataId(isNewFlow) {if(isNewFlow) {this.submitLoading true;deleteActivityAndJoin(this.dataId,this.variables).then(res {if (res.success res.result) { //若删除成功var params Object.assign({dataId: this.dataId}, this.variables);startByDataId(this.dataId, this.selectFlowId, this.serviceName, params).then(res {if (res.success) {this.firstInitiatorOpen false;this.$message.success(res.message);this.$emit(success);} else {this.$message.error(res.message);}})}}).finally(() (this.submitLoading false));}else {//继续原有流程流转跳到流程处理界面上//console.log(this.variables,this.variables);this.$router.push({ path: /flowable/task/record/index,query: {procInsId: this.variables.processInstanceId,deployId: this.variables.deployId,taskId: this.variables.taskId,businessKey: this.dataId,nodeType: ,category: zdyyw,finished: true}})}},applySubmit() {if (this.dataId this.dataId.length 1) {this.error 必须传入参数dataId;this.$message.error(this.error);return;}if (this.serviceName this.serviceName.length 1) {this.error 必须传入参数serviceName;this.$message.error(this.error);return;} else {this.error ;}//对于自定义业务,判断是否是驳回或退回的第一个发起人节点this.submitLoading true;isFirstInitiator(this.dataId, this.variables).then(res {if (res.code 200 res.data) { //若是弹出窗口选择重新发起新流程还是继续老流程this.firstInitiatorTitle 根据自己需要进行选择this.firstInitiatorOpen true;}else {this.submitLoading true;const processParams {serviceName: this.serviceName}getProcesss(processParams).then(res {/**查询关联流程信息 */this.processList res.data;this.submitLoading false;if (this.processList this.processList.length 1) {this.flowOpen true;}else if (this.processList this.processList.length 1) {this.selectFlowId res.data[0].id;var params Object.assign({dataId: this.dataId}, this.variables);startByDataId(this.dataId, this.selectFlowId, this.serviceName, params).then(res {console.log(startByDataId res,res);if (res.code 200 ) {this.$message.success(res.msg);this.$emit(success);} else {this.$message.error(res.msg);}}).finally(() (this.submitLoading false));} else {this.$message.error(检查该业务是否已经关联流程);}}).finally(() (this.submitLoading false));}}).finally(() (this.submitLoading false));}}}; /script2、修改成vue3版本的代码如下 templatespana-button :typebtnType clickapplySubmit() :loadingsubmitLoading{{text}}/a-buttona-modal :z-index100 :titlefirstInitiatorTitle cancelfirstInitiatorOpen false v-model:visiblefirstInitiatorOpen:width50% append-to-bodya-descriptions bordered layoutverticala-descriptions-item :span3a-badge statusprocessing text选择提醒 //a-descriptions-itema-descriptions-item label重新发起新流程按钮 labelStyle{ color: #fff, fontWeight: bold, fontSize18px}重新发起新流程会删除之前发起的任务,重新开始./a-descriptions-itema-descriptions-item label继续发起老流程按钮继续发起流程就在原来流程基础上继续流转./a-descriptions-item/a-descriptionsspan slotfooter classdialog-footerel-button typeprimary clickReStartByDataId(true)重新发起新流程/el-buttonel-button typeprimary clickReStartByDataId(false)继续发起老流程/el-buttonel-button clickfirstInitiatorOpen false取 消/el-button/span/a-modal!--挂载关联多个流程--a-modal cancelflowOpen false :titleflowTitle v-model:visibleflowOpen width70% append-to-bodyel-row :gutter64el-col :span20 :xs64 stylewidth: 100%el-table refsingleTable :dataprocessList border highlight-current-row stylewidth: 100%el-table-column typeselection width55 aligncenter /el-table-column label主键 aligncenter propid v-iftrue/el-table-column label业务表单名称 aligncenter propbusinessName /el-table-column label业务服务名称 aligncenter propbusinessService /el-table-column label流程名称 aligncenter propflowName /el-table-column label关联流程发布主键 aligncenter propdeployId /el-table-column label前端路由地址 aligncenter proprouteName /el-table-column label组件注入方法 aligncenter propcomponent /el-table-column label操作 aligncenter class-namesmall-padding fixed-widthtemplate #defaultscopeel-button sizesmall typeprimary clickselectProcess(scope.row)确定/el-button/template/el-table-column/el-table/el-col/el-row/a-modal/span /templatescript langts setupimport {startByDataId,isFirstInitiator,deleteActivityAndJoin,getProcesss} from /api/workflow/process;defineOptions({ name: ActApplyBtn })const props defineProps({btnType: {type: String,default: link,required: false},dataId: {type: String,default: ,required: true},serviceName: {type: String,default: ,required: true},variables: {type: Object,default: {},},text: {type: String,default: 提交申请,required: false}})const emit defineEmits([success])const router useRouter()const { proxy } getCurrentInstance() as ComponentInternalInstanceconst modalVisible ref(false)const submitLoading ref(false)const form refany({})const firstInitiatorOpen ref(false)const firstInitiatorTitle ref()// 关联流程数据const processList refany([])const flowOpen ref(false)const flowTitle ref()const selectFlowId ref() //选择或使用的流程IDconst error ref()const selectProcess (row) {selectFlowId.value row.id;flowOpen.value false;var params Object.assign({dataId: props.dataId}, props.variables);startByDataId(props.dataId, selectFlowId.value, props.serviceName, params).then(res {//console.log(startByDataId res,res);if (res.code 200 ) {proxy?.$modal.msgSuccess(res.msg);emit(success);} else {proxy?.$modal.msgError(res.msg);}}).finally(() (submitLoading.value false));}const ReStartByDataId (isNewFlow: boolean) {if(isNewFlow) {submitLoading.value true;deleteActivityAndJoin(props.dataId,props.variables).then(res {if (res.code 200 res.result) { //若删除成功var params Object.assign({dataId: props.dataId}, props.variables);startByDataId(props.dataId, selectFlowId.value, props.serviceName, params).then(res {if (res.code 200) {firstInitiatorOpen.value false;proxy?.$modal.msgSuccess(res.message);emit(success);} else {proxy?.$modal.msgError(res.message);}})}}).finally(() (submitLoading.value false));}else {//继续原有流程流转跳到流程处理界面上//console.log(props.variables,props.variables);router.push({path: /flowable/task/record/index,query: {procInsId: props.variables.processInstanceId,deployId: props.variables.deployId,taskId: props.variables.taskId,businessKey: props.dataId,nodeType: ,category: zdyyw,finished: true},})}}const applySubmit () {if (props.dataId props.dataId.length 1) {error.value 必须传入参数dataId;proxy?.$modal.msgError(error.value);return;}if (props.serviceName props.serviceName.length 1) {error.value 必须传入参数serviceName;proxy?.$modal.msgError(error.value);return;} else {error.value ;}//对于自定义业务,判断是否是驳回或退回的第一个发起人节点submitLoading.value true;isFirstInitiator(props.dataId, props.variables).then(res {if (res.code 200 res.data) { //若是弹出窗口选择重新发起新流程还是继续老流程firstInitiatorTitle.value 根据自己需要进行选择firstInitiatorOpen.value true;}else {submitLoading.value true;const processParams {serviceName: props.serviceName}getProcesss(processParams).then(res {/**查询关联流程信息 */processList.value res.data;submitLoading.value false;if (processList.value processList.value.length 1) {flowOpen.value true;}else if (processList.value processList.value.length 1) {selectFlowId.value res.data[0].id;var params Object.assign({dataId: props.dataId}, props.variables);startByDataId(props.dataId, selectFlowId.value, props.serviceName, params).then(res {console.log(startByDataId res,res);if (res.code 200 ) {proxy?.$modal.msgSuccess(res.msg);emit(success);} else {proxy?.$modal.msgError(res.msg);}}).finally(() (submitLoading.value false));} else {proxy?.$modal.msgError(检查该业务是否已经关联流程);}}).finally(() (submitLoading.value false));}}).finally(() (submitLoading.value false));} /script3、效果图 就是下面提交申请这个组件
http://www.pierceye.com/news/881197/

相关文章:

  • 营销外包网站网站类别标签文本
  • 企业概况简介解答网站内容优化策略
  • ImQQ网站是怎么做的做网站把自己做死
  • 房产网站制作流程php网站开发教程网
  • 小程序商城名字谷歌优化技巧
  • 备案的时候需要网站吗seo搜索引擎优化公司
  • 网站 空间转移wordpress后台点击菜单没反应应
  • 企业网站可以自己做国外域名交易网站
  • 龙岗网站建设费用明细国外的服务器做的网站在国外能打开在国内打不开是什么原因
  • 个人网站的设计与实现摘要东莞学校网站建设
  • 深圳建设局招标网站网站空间pdf下载不了
  • 中国网站建设服务中心百度搜索风云榜电脑版
  • 开发网站性能监控网站开发常见技术问题
  • wordpress 手风琴插件长沙网站优化联系方式
  • 上海松江水处理网站建设做网站项目
  • 长沙快速建站模板仿牌网站怎么做301跳转
  • 网站建设与管理和计算机网络技术网站运行速度慢的原因
  • 百度推广网络推广微信网站公司网站建设设计服务
  • 免费建站有哪些网站代码编程教学入门
  • 湖南衡五建设公司网站中国网络营销网
  • 做企业网站有什么工作内容有创意的网络公司名字
  • 广西城乡与住房建设厅网站房产网站栏目建设
  • 已收录的网站不好优化上海上市公司排名
  • 保定网站建设公司大全开发微信微网站建设
  • 微信扫码抢红包网站做渝网互联重庆网站制作
  • 用wordpress开发网站缪斯设计官网
  • 黄南州wap网站建设公司旅游类网站做百度竞价
  • 中国电力建设集团有限公司网站wordpress购买
  • 深圳工装公司网站优化顺义案例
  • 四川省工程建设信息官方网站个人域名注册免费