|
@@ -6,9 +6,48 @@
|
|
|
<bpmn-panel v-if="getEditorConfig.penalMode === 'custom'" />
|
|
|
<div v-else class="camunda-panel" id="camunda-panel"></div>
|
|
|
</div>
|
|
|
-
|
|
|
<bpmn-settings v-show="false" />
|
|
|
<bpmn-context-menu />
|
|
|
+ <el-dialog
|
|
|
+ title="请选择流程类型"
|
|
|
+ :visible.sync="show"
|
|
|
+ width="30%"
|
|
|
+ append-to-body
|
|
|
+ destroy-on-close
|
|
|
+ :center="true"
|
|
|
+ >
|
|
|
+ <el-form
|
|
|
+ :model="processForm"
|
|
|
+ ref="ProcessFormRef"
|
|
|
+ :rules="rules"
|
|
|
+ label-width="80px"
|
|
|
+ :inline="false"
|
|
|
+ size="normal"
|
|
|
+ >
|
|
|
+ <el-form-item label="流程类型">
|
|
|
+ <el-select
|
|
|
+ v-model="processForm.processType"
|
|
|
+ placeholder="请选择流程类型"
|
|
|
+ filterable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in dict.type.bpm_type"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <template #footer>
|
|
|
+ <span>
|
|
|
+ <el-button @click="cancelHandler">取消</el-button>
|
|
|
+ <el-button type="primary" @click="confirmHandler">确认</el-button>
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -44,6 +83,7 @@ import { listRole } from "@/api/system/role";
|
|
|
|
|
|
export default {
|
|
|
name: "App",
|
|
|
+ dicts: ["bpm_type"],
|
|
|
components: {
|
|
|
BpmnPanel,
|
|
|
BpmnContextMenu,
|
|
@@ -60,6 +100,13 @@ export default {
|
|
|
allScriptList: [],
|
|
|
allUserList: [],
|
|
|
allRoleList: [],
|
|
|
+
|
|
|
+ // 流程类型数据
|
|
|
+ show: true,
|
|
|
+ processForm: {
|
|
|
+ processType: "0",
|
|
|
+ },
|
|
|
+ rules: {},
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -72,6 +119,7 @@ export default {
|
|
|
allScriptList: () => this.allScriptList,
|
|
|
allUserList: () => this.allUserList,
|
|
|
allRoleList: () => this.allRoleList,
|
|
|
+ processType: () => this.processForm.processType,
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -131,6 +179,14 @@ export default {
|
|
|
this.$message.warning("网络异常,请稍后再试");
|
|
|
}
|
|
|
},
|
|
|
+ confirmHandler() {
|
|
|
+ this.show = false;
|
|
|
+ },
|
|
|
+ cancelHandler() {
|
|
|
+ this.show = false;
|
|
|
+ this.$tab.closePage();
|
|
|
+ this.$router.back();
|
|
|
+ },
|
|
|
},
|
|
|
async mounted() {
|
|
|
document.body.addEventListener("contextmenu", this.Provence);
|