|
|
@ -74,6 +74,7 @@ |
|
|
<el-table-column label="模式名称" align="center" prop="mdlName"></el-table-column> |
|
|
<el-table-column label="模式名称" align="center" prop="mdlName"></el-table-column> |
|
|
<el-table-column label="批量对象表名" align="center" prop="bathObjTabName"></el-table-column> |
|
|
<el-table-column label="批量对象表名" align="center" prop="bathObjTabName"></el-table-column> |
|
|
<el-table-column label="批里对象字段名" align="center" prop="bathObjFldName"></el-table-column> |
|
|
<el-table-column label="批里对象字段名" align="center" prop="bathObjFldName"></el-table-column> |
|
|
|
|
|
<el-table-column label="字段特殊处理" prop="fldSpclDeal" align="center"></el-table-column> |
|
|
<el-table-column label="状态" align="center" prop="status"> |
|
|
<el-table-column label="状态" align="center" prop="status"> |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
<el-switch v-model="scope.row.status" |
|
|
<el-switch v-model="scope.row.status" |
|
|
@ -89,6 +90,7 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="操作" align="center" prop="operation"> |
|
|
<el-table-column label="操作" align="center" prop="operation"> |
|
|
<template #default="scope"> |
|
|
<template #default="scope"> |
|
|
|
|
|
<el-link type="primary" style="margin-left: 10px" @click="editData(scope.row)" :underline="false">编辑</el-link> |
|
|
<el-link type="danger" style="margin-left: 10px" @click="handleDelete([scope.row.onum])" :underline="false">删除</el-link> |
|
|
<el-link type="danger" style="margin-left: 10px" @click="handleDelete([scope.row.onum])" :underline="false">删除</el-link> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -210,11 +212,16 @@ |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<el-dialog title="选择字段" v-model="openColumn" width="800px" append-to-body> |
|
|
<el-dialog title="选择字段" v-model="openColumn" width="1000px" append-to-body> |
|
|
<el-table :data="column.children" style="width: 100%" |
|
|
<el-table :data="column.children" style="width: 100%" |
|
|
@selection-change="handleChildSelectionChange"> |
|
|
@selection-change="handleChildSelectionChange"> |
|
|
<el-table-column type="selection" width="55"></el-table-column> |
|
|
<el-table-column type="selection" width="55"></el-table-column> |
|
|
<el-table-column label="字段英文名" prop="fld_eng_name" width="200"></el-table-column> |
|
|
<el-table-column label="字段英文名" prop="fld_eng_name" width="200"></el-table-column> |
|
|
|
|
|
<el-table-column label="字段特殊处理" prop="fldSpclDeal" width="200"> |
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
<el-input v-model="scope.row.fldSpclDeal" style="width: 100%"></el-input> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column label="字段中文名" prop="fld_cn_name" width="200"></el-table-column> |
|
|
<el-table-column label="字段中文名" prop="fld_cn_name" width="200"></el-table-column> |
|
|
<el-table-column label="字段类型" width="170" align="center" prop="fld_type"></el-table-column> |
|
|
<el-table-column label="字段类型" width="170" align="center" prop="fld_type"></el-table-column> |
|
|
<el-table-column label="主键标志" align="center" prop="pk_flag"> |
|
|
<el-table-column label="主键标志" align="center" prop="pk_flag"> |
|
|
@ -231,6 +238,36 @@ |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
<el-dialog title="编辑" v-model="showEdit" width="500px" append-to-body> |
|
|
|
|
|
<el-form v-model="editForm" label-width="120" label-position="left" label-suffix=":"> |
|
|
|
|
|
<el-form-item label="系统名称"> |
|
|
|
|
|
<span>{{getSrcSysName(editForm.ssysId)}}</span> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="模式名称"> |
|
|
|
|
|
<span>{{ editForm.mdlName }}</span> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="表名称"> |
|
|
|
|
|
<span>{{ editForm.bathObjTabName }}</span> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="字段名称"> |
|
|
|
|
|
<span>{{ editForm.bathObjFldName }}</span> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="字段特殊处理"> |
|
|
|
|
|
<el-input v-model="editForm.fldSpclDeal"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="状态"> |
|
|
|
|
|
<el-switch v-model="editForm.status" |
|
|
|
|
|
active-value="1" |
|
|
|
|
|
inactive-value="0"/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<template #footer> |
|
|
|
|
|
<div class="dialog-footer"> |
|
|
|
|
|
<el-button type="primary" @click="saveOne">确 定</el-button> |
|
|
|
|
|
<el-button @click="showEdit = false">取 消</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-dialog> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<script setup> |
|
|
<script setup> |
|
|
@ -269,10 +306,12 @@ const dassetTotal = ref(0) |
|
|
const multSelection = ref([]) |
|
|
const multSelection = ref([]) |
|
|
const dataList = ref([]) |
|
|
const dataList = ref([]) |
|
|
const total = ref(0) |
|
|
const total = ref(0) |
|
|
|
|
|
const editForm = ref({}) |
|
|
const dasset = ref({ |
|
|
const dasset = ref({ |
|
|
open: false, |
|
|
open: false, |
|
|
}) |
|
|
}) |
|
|
const openColumn = ref(false) |
|
|
const openColumn = ref(false) |
|
|
|
|
|
const showEdit = ref(false) |
|
|
const column = ref({}) |
|
|
const column = ref({}) |
|
|
const treeData = ref([]) |
|
|
const treeData = ref([]) |
|
|
const defaultProps = { |
|
|
const defaultProps = { |
|
|
@ -313,6 +352,13 @@ function save(){ |
|
|
proxy.$modal.msgWarning("请至少选择一条数据") |
|
|
proxy.$modal.msgWarning("请至少选择一条数据") |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
function saveOne(){ |
|
|
|
|
|
saveCdplb({list:[editForm.value]}).then(res=> { |
|
|
|
|
|
proxy.$modal.msgSuccess("保存成功") |
|
|
|
|
|
showEdit.value = false |
|
|
|
|
|
handleQuery() |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
function confirmColumns(){ |
|
|
function confirmColumns(){ |
|
|
if (selectedColumns.value.length>0){ |
|
|
if (selectedColumns.value.length>0){ |
|
|
@ -323,6 +369,7 @@ function confirmColumns(){ |
|
|
mdlName: selectedCol.mdl_name, |
|
|
mdlName: selectedCol.mdl_name, |
|
|
bathObjTabName: column.value.dataAstEngName, |
|
|
bathObjTabName: column.value.dataAstEngName, |
|
|
bathObjFldName: selectedCol.fld_eng_name, |
|
|
bathObjFldName: selectedCol.fld_eng_name, |
|
|
|
|
|
fldSpclDeal: selectedCol.fldSpclDeal |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
saveCdplb({list:array}).then(res=>{ |
|
|
saveCdplb({list:array}).then(res=>{ |
|
|
@ -467,6 +514,11 @@ function multDelete(){ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
function editData(row){ |
|
|
|
|
|
editForm.value = {} |
|
|
|
|
|
editForm.value = JSON.parse(JSON.stringify(row)) |
|
|
|
|
|
showEdit.value = true |
|
|
|
|
|
} |
|
|
function handleDelete(array){ |
|
|
function handleDelete(array){ |
|
|
deleteCdplb(array).then(res=>{ |
|
|
deleteCdplb(array).then(res=>{ |
|
|
proxy.$modal.msgSuccess("操作成功"); |
|
|
proxy.$modal.msgSuccess("操作成功"); |
|
|
|