|
@@ -0,0 +1,80 @@
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <el-button type="primary" icon="plus" round @click="selectProcessForm">选择流程表单</el-button>
|
|
|
+ <el-tag v-for="(user, index) in [{ name: '测试', id: '1' }]" :key="user.id" closable @close="delProcessForm">{{ user.name }}</el-tag>
|
|
|
+ <!-- 查看流程表单 查看 -->
|
|
|
+ <el-dialog v-model="visible" class="le-dialog local-select-process-form-dialog" title="选择流程表单" width="800">
|
|
|
+ <div>dsdddd</div>
|
|
|
+ <template #footer>
|
|
|
+ <el-button @click="closeDialog">关 闭</el-button>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup lang="ts">
|
|
|
+import { computed, onMounted, type PropType, reactive, ref, watch } from 'vue'
|
|
|
+// import { processTaskApprovalInfo } from '@/api/flow/processTask'
|
|
|
+// import { ElMessage } from 'element-plus'
|
|
|
+// import { formatTimestamp } from '@/utils/datetime.ts'
|
|
|
+
|
|
|
+const props = defineProps({
|
|
|
+ modelValue: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ },
|
|
|
+ // value: {
|
|
|
+ // type: String,
|
|
|
+ // default: ''
|
|
|
+ // }
|
|
|
+})
|
|
|
+const visible = ref(false)
|
|
|
+const selectProcessForm = () => {
|
|
|
+ console.log('selectProcessForm')
|
|
|
+ visible.value = true
|
|
|
+}
|
|
|
+const delProcessForm = () => {
|
|
|
+ console.log('delProcessForm')
|
|
|
+}
|
|
|
+
|
|
|
+const validateForm = ref({
|
|
|
+ rule: [],
|
|
|
+ loading: false
|
|
|
+})
|
|
|
+const EReditorRef = ref()
|
|
|
+const modelContentConfig = ref({})
|
|
|
+const activeData = ref([])
|
|
|
+
|
|
|
+const $myEmit = defineEmits(['update:modelValue'/*, 'update:value'*/])
|
|
|
+
|
|
|
+const queryDetail = () => {}
|
|
|
+onMounted(queryDetail)
|
|
|
+const closeDialog = () => {
|
|
|
+ $myEmit('update:modelValue', false)
|
|
|
+}
|
|
|
+
|
|
|
+/*const visible = computed({
|
|
|
+ get() {
|
|
|
+ return props.modelValue
|
|
|
+ },
|
|
|
+ set(val) {
|
|
|
+ $myEmit('update:modelValue', val)
|
|
|
+ }
|
|
|
+})*/
|
|
|
+watch(() => props.value, (val) => {
|
|
|
+ console.error(val, 'props.value')
|
|
|
+})
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang="scss">
|
|
|
+.flow-detail-content {}
|
|
|
+</style>
|
|
|
+<style lang="scss">
|
|
|
+// 全局样式
|
|
|
+.local-select-process-form-dialog {
|
|
|
+ .el-dialog__body {
|
|
|
+ height: calc(100vh - 160px);
|
|
|
+ padding: 12px 16px;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|