12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <template>
- <a-modal
- :title="title"
- :width="width"
- :visible="visible"
- switchFullscreen
- @ok="handleOk"
- :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
- @cancel="handleCancel"
- cancelText="关闭">
- <a-form-model ref="form" :model="model">
- <a-row>
- <a-col :span="24">
- <a-form-model-item label="选择之前节点" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="flowPathId">
- <j-search-select-tag placeholder="选择之前节点" v-model="model.runFlowPathSept" :dictOptions="yrunList"/>
- </a-form-model-item>
- </a-col>
- <a-col :span="24">
- <a-form-model-item label="拒绝原因" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="yuanyin">
- <a-input v-model="model.yuanyin" placeholder="请输入拒绝原因" ></a-input>
- </a-form-model-item>
- </a-col>
- </a-row>
- </a-form-model>
- </a-modal>
- </template>
- <script>
- import { runFlowPathRejectDQ, runFlowPathrejectzd, runFlowPathyrunList } from '@api/api'
- export default {
- name: 'ItdmRunFlowPathShenhel1',
- components: {
- },
- data () {
- return {
- yrunList:[],
- model:{},
- title:'驳回指定节点',
- width:800,
- visible: false,
- disableSubmit: false,
- labelCol: {
- xs: { span: 24 },
- sm: { span: 5 },
- },
- wrapperCol: {
- xs: { span: 24 },
- sm: { span: 16 },
- },
- }
- },
- methods: {
- bohui (record) {
- this.visible=true
- this.model = record
- var data = { 'runFlowPath': this.model.id }
- runFlowPathyrunList(data).then(response => {
- this.yrunList= response.result
- console.log(this.yrunList)
- })
- },
- handleOk () {
- var data = { 'runFlowPath': this.model.id,"yuanyin":this.model.yuanyin,"runFlowPathSept":this.model.runFlowPathSept }
- console.log(data)
- runFlowPathrejectzd(data).then(response => {
- this.visible = false;
- this.$emit('ok');
- })
- },
- handleCancel () {
- this.visible = false;
- }
- }
- }
- </script>
|