|
@@ -24,7 +24,7 @@
|
|
|
<span class="custom-tree-node">
|
|
|
<span class="label">{{ node.label }}</span>
|
|
|
<!--<span v-if="false" class="code">{{ data.code }}</span>-->
|
|
|
- <span class="do" v-if="node.label !== treeParentName">
|
|
|
+ <span v-if="node.label !== treeParentName" class="do">
|
|
|
<el-icon @click.stop="addHandler('table')"><Plus /></el-icon>
|
|
|
<el-icon @click.stop="dicEdit(data)"><Edit /></el-icon>
|
|
|
<el-icon @click.stop="dictDel(node, data)"><Delete /></el-icon>
|
|
@@ -78,31 +78,21 @@
|
|
|
</template>
|
|
|
|
|
|
<template #actionSlot="{ row }">
|
|
|
- <div style="display: flex; align-items: center; justify-content: flex-end">
|
|
|
- <!--设计表单才有-->
|
|
|
+ <div class="flex flex-align-pack-center">
|
|
|
<template v-if="row.type === 0">
|
|
|
- <el-tooltip content="设计" placement="bottom" effect="light">
|
|
|
- <el-icon class="ibt0" @click="designTemplateEv(row)">
|
|
|
- <Money />
|
|
|
- </el-icon>
|
|
|
+ <el-tooltip effect="dark" content="设计表单" placement="top">
|
|
|
+ <LeIcon class="text-lg text-icon-color" icon-class="icon-processInfo-material-design" @click="designTemplateEv(row)" />
|
|
|
</el-tooltip>
|
|
|
- <el-divider direction="vertical"></el-divider>
|
|
|
</template>
|
|
|
- <el-tooltip content="编辑" placement="bottom" effect="light">
|
|
|
- <el-icon class="ibt0" @click="tableTemplateEdit(row)">
|
|
|
- <Edit />
|
|
|
- </el-icon>
|
|
|
- </el-tooltip>
|
|
|
- <div v-if="row.status !== 3">
|
|
|
- <el-divider direction="vertical"></el-divider>
|
|
|
- <el-popconfirm title="确定删除吗?" @confirm="deleteTemplateItem([row.id])">
|
|
|
- <template #reference>
|
|
|
- <el-icon class="ibt0">
|
|
|
- <Delete />
|
|
|
- </el-icon>
|
|
|
- </template>
|
|
|
- </el-popconfirm>
|
|
|
- </div>
|
|
|
+
|
|
|
+ <LeIcon class="text-lg ml-2 text-icon-color" icon-class="icon-processInfo-mage--edit" @click="tableTemplateEdit(row)" />
|
|
|
+
|
|
|
+ <LeIcon
|
|
|
+ v-if="row.status !== 3"
|
|
|
+ class="text-lg ml-2 text-rose-700"
|
|
|
+ icon-class="icon-processInfo-iconoir--trash"
|
|
|
+ @click="table_del1(row)"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
</LeTable>
|
|
@@ -352,6 +342,7 @@ const columns = [
|
|
|
prop: 'action',
|
|
|
label: '操作',
|
|
|
width: 100,
|
|
|
+ align: 'center',
|
|
|
fixed: 'right',
|
|
|
slots: {
|
|
|
default: 'actionSlot'
|
|
@@ -422,10 +413,20 @@ const designTemplateEv = async row => {
|
|
|
visibleDesignForm.value = true
|
|
|
}
|
|
|
|
|
|
+const table_del1 = (row: any) => {
|
|
|
+ ElMessageBox.confirm(`确认删除「${row.name}」这条数据?`, '提示', {
|
|
|
+ confirmButtonText: '确认',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'error'
|
|
|
+ }).then(async () => {
|
|
|
+ deleteTemplateItem([row.id])
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
const deleteTemplateItem = async ids => {
|
|
|
await formtemplate.formTemplateDeleteApi(ids)
|
|
|
- updateParams()
|
|
|
ElMessage.success(`删除成功~`)
|
|
|
+ updateParams()
|
|
|
}
|
|
|
// 弹窗事件
|
|
|
const submitHandler = async params => {
|