rev:触发按钮
This commit is contained in:
@@ -138,20 +138,19 @@
|
|||||||
placement="top"
|
placement="top"
|
||||||
width="180"
|
width="180"
|
||||||
trigger="click"
|
trigger="click"
|
||||||
:value="popoverVisible"
|
style="z-index: 9999;"
|
||||||
@hide="onPopoverHide"
|
:ref="`popover-${scope.$index}`"
|
||||||
>
|
>
|
||||||
<p>{{ popoverMessage }}</p>
|
<p>{{ popoverMessage }}</p>
|
||||||
<div style="text-align: right; margin: 0">
|
<div style="text-align: right; margin: 0">
|
||||||
<el-button size="mini" type="text" @click="cancelFlow">取消</el-button>
|
<el-button size="mini" type="text" @click="cancelFlow(scope)">取消</el-button>
|
||||||
<el-button :loading="triggerLoading" type="primary" size="mini"
|
<el-button type="primary" size="mini"
|
||||||
@click="confirmFlow(scope.row.proc_inst_id)">确定
|
@click="confirmFlow(scope.row.proc_inst_id,scope)">确定
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-button slot="reference" type="text" icon="el-icon-video-play" size="mini" @click="showPopover">触发
|
<el-button slot="reference" type="text" icon="el-icon-video-play" size="mini" @click="showPopover">触发
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
<!-- <el-button slot="right" @click="flowConfirm(scope.row.proc_inst_id)" type="text" icon="el-icon-video-play" size="mini">触发</el-button>-->
|
|
||||||
<el-button slot="right" @click="viewClick(scope.row)" type="text" icon="el-icon-thumb" size="mini">预览
|
<el-button slot="right" @click="viewClick(scope.row)" type="text" icon="el-icon-thumb" size="mini">预览
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
@@ -213,8 +212,6 @@ export default {
|
|||||||
permission: {},
|
permission: {},
|
||||||
modelJson: '',
|
modelJson: '',
|
||||||
popoverMessage: "确定要触发流程吗?",
|
popoverMessage: "确定要触发流程吗?",
|
||||||
triggerLoading: false,
|
|
||||||
popoverVisible: false,
|
|
||||||
statusList: [
|
statusList: [
|
||||||
{
|
{
|
||||||
value: "30",
|
value: "30",
|
||||||
@@ -244,23 +241,19 @@ export default {
|
|||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
showPopover() {
|
showPopover() {
|
||||||
this.popoverVisible = true;
|
// this.popoverVisible = true;
|
||||||
},
|
},
|
||||||
cancelFlow() {
|
cancelFlow(scope) {
|
||||||
this.popoverVisible = false;
|
scope._self.$refs[`popover-${scope.$index}`].doClose()
|
||||||
},
|
},
|
||||||
confirmFlow(proc_inst_id) {
|
confirmFlow(proc_inst_id, scope) {
|
||||||
this.triggerLoading = true;
|
|
||||||
curdExecution.flowConfirm(proc_inst_id).then(res => {
|
curdExecution.flowConfirm(proc_inst_id).then(res => {
|
||||||
this.crud.notify("触发成功", CRUD.NOTIFICATION_TYPE.SUCCESS)
|
this.crud.notify("触发成功", CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||||
this.triggerLoading = false;
|
this.crud.toQuery()
|
||||||
this.popoverVisible = false;
|
|
||||||
})
|
})
|
||||||
this.crud.toQuery()
|
scope._self.$refs[`popover-${scope.$index}`].doClose()
|
||||||
},
|
|
||||||
onPopoverHide() {
|
|
||||||
this.triggerLoading = false;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
jsonFormat(row, index) {
|
jsonFormat(row, index) {
|
||||||
if (row.form_data != null) {
|
if (row.form_data != null) {
|
||||||
return JSON.stringify(row.form_data)
|
return JSON.stringify(row.form_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user