|
@@ -146,9 +146,9 @@
|
|
<div class="tags-list inline">
|
|
<div class="tags-list inline">
|
|
<el-tag v-for="(user, index) in form.actionUrl" :key="user.id" closable @close="delFormTemplate(index)">{{ user.name }}</el-tag>
|
|
<el-tag v-for="(user, index) in form.actionUrl" :key="user.id" closable @close="delFormTemplate(index)">{{ user.name }}</el-tag>
|
|
</div>
|
|
</div>
|
|
- <div class="tags-list inline" v-if="form.actionUrl.length">
|
|
|
|
- <el-link @click.stop="showFormEv" :underline="false">
|
|
|
|
- 查看表单<el-icon class="el-icon--right"><View /></el-icon>
|
|
|
|
|
|
+ <div v-if="form.actionUrl.length" class="tags-list inline">
|
|
|
|
+ <el-link :underline="false" @click.stop="showFormEv">
|
|
|
|
+ 表单预览<el-icon class="el-icon--right"><View /></el-icon>
|
|
</el-link>
|
|
</el-link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -195,10 +195,14 @@
|
|
</el-footer>
|
|
</el-footer>
|
|
</el-container>
|
|
</el-container>
|
|
</el-drawer>
|
|
</el-drawer>
|
|
|
|
+
|
|
|
|
+ <!-- 预览子表单 -->
|
|
|
|
+ <form-detail ref="formDetail" v-model="visibleFormDetail" v-if="visibleFormDetail" :template-id="templateId"></form-detail>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import FormDetail from './formDetail'
|
|
import addNode from './addNode'
|
|
import addNode from './addNode'
|
|
// import { Plus } from '@element-plus/icons-vue'
|
|
// import { Plus } from '@element-plus/icons-vue'
|
|
import { mapState } from 'pinia' //引入映射函数
|
|
import { mapState } from 'pinia' //引入映射函数
|
|
@@ -216,7 +220,8 @@ import {
|
|
import { ElMessage } from 'element-plus'
|
|
import { ElMessage } from 'element-plus'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- addNode
|
|
|
|
|
|
+ addNode,
|
|
|
|
+ FormDetail
|
|
},
|
|
},
|
|
inject: ['select'],
|
|
inject: ['select'],
|
|
props: {
|
|
props: {
|
|
@@ -239,7 +244,9 @@ export default {
|
|
selectModeOptions,
|
|
selectModeOptions,
|
|
examineModeOptions,
|
|
examineModeOptions,
|
|
directorModeOptions,
|
|
directorModeOptions,
|
|
- approveSelfOptions
|
|
|
|
|
|
+ approveSelfOptions,
|
|
|
|
+ visibleFormDetail: false,
|
|
|
|
+ templateId: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -391,7 +398,8 @@ export default {
|
|
}*/
|
|
}*/
|
|
},
|
|
},
|
|
showFormEv() {
|
|
showFormEv() {
|
|
-
|
|
|
|
|
|
+ this.templateId = this.form.actionUrl[0].id
|
|
|
|
+ this.visibleFormDetail = !this.visibleFormDetail
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|