下载资源前端资源详情
rowEdit.zip
大小:5.54KB
价格:28积分
下载量:0
评分:
5.0
上传者:xiuxialala
更新日期:2025-09-22

表格行内编辑增删改查以及拖拽式分割面板组件封装

资源文件列表(大概)

文件名
大小
rowEdit/components/
-
rowEdit/components/kyy-split-pane/
-
rowEdit/components/kyy-split-pane/drag.svg
794B
rowEdit/components/kyy-split-pane/index.vue
2.53KB
rowEdit/index.vue
12.92KB
rowEdit/
-

资源内容介绍

表格行内编辑增删改查以及拖拽式分割面板组件封装
<template> <div class="tree_table"> <KyySplitPane> <template v-slot:left> <div class="splitpane_left"> <div class="hosp-tree"> <div class="hosp-tree-title flex_between"> <div>流程节点</div> </div> <div class="hosp-tree-content"> <div class="tree_main_content"> <el-tree :expand-on-click-node="false" :indent="24" default-expand-all class="filter-tree" :data="treeData" :node-key="nodeKey" :props="defaultProps" ref="tree" @node-click="handleNodeClick" :current-node-key="currentNodekey" :highlight-current="true" v-loading="treeLoading"> <div class="hosp-tree-node" slot-scope="{ node }"> <span :title="node.label">{{ node.label }}</span> </div> </el-tree> </div> </div> </div> </div> </template> <template v-slot:right> <div class="splitpane_right"> <div class="single-table-container"> <div class="search-form-wrapper"> <div class="title">转换配置</div> <div class="seach_list"> <el-button type="primary" size="mini" @click="addConfig">添加</el-button> </div> </div> <div class="single-table"> <el-table ref="table" v-loading="tableLoading" size="mini" height="100%" :data="tableData" stripe tooltip-effect="dark" :header-cell-style="{ background: '#f5f7fa', fontWeight: 'bold', color: '#303133' }" :highlight-current-row="true" border> <el-table-column type="index" header-align="center" align="center" label="序号" width="50"></el-table-column> <el-table-column prop="fieldName" label="字段名称" show-overflow-tooltip> <template slot-scope="scope"> <el-input v-if="scope.row.isEdit" class="config-text" v-model="curEdit.fieldName" placeholder="请输入" size="mini" clearable></el-input> <span class="config-text-span" v-else> {{ scope.row.fieldName }} </span> </template> </el-table-column> <el-table-column prop="mappingRefType" label="映射关系类型" show-overflow-tooltip> <template slot-scope="scope"> <span class="config-text-span" v-if="scope.row.isEdit">{{ !!curEdit.mappingRefType ? fieldFomatter(curEdit.mappingRefType, mappingRefTypeOptionsObj) : '-' }}</span> <span class="config-text-span" v-else>{{ !!scope.row.mappingRefType ? fieldFomatter(scope.row.mappingRefType, mappingRefTypeOptionsObj) : '-' }}</span> </template> </el-table-column> <el-table-column width="220" prop="mappingRefName" label="映射关系名称"> <template slot-scope="scope"> <el-select v-if="scope.row.isEdit" value-key="mappingCatalogId" v-model='curEdit.mappingRefName' placeholder='请选择' filterable clearable @change="(val) => change(val, curEdit)"> <el-option v-for="item in selectTreeData" :value='item' :key="item.mappingCatalogId" :label='item.mappingCatalogName'></el-option> </el-select> <span class="config-text-span" v-if="!scope.row.isEdit"> {{ scope.row.mappingRefName }} </span> </template> </el-table-column> <el-table-column width="220" prop="filedConfig" label="字段配置" show-overflow-tooltip> <template slot-scope="scope"> <el-input class="config-text" v-if="scope.row.isEdit" v-model="curEdit.filedConfig" placeholder="请输入" size="mini" clearable></el-input> <span class="config-text-span" v-else> {{ scope.row.filedConfig }} </span> </template> </el-table-column> <el-table-column label="操作" show-overflow-tooltip> <template slot-scope="scope"> <el-button type="text" @click="modifyConfig(scope.row, scope.$index, false)">{{scope.row.isEdit ? "保存" : "修改"}}</el-button> <el-button v-if="!scope.row.isEdit" class="btn2" type="text" @click="deleteConfig(scope.row)">删除</el-button> <el-button v-else type="text" @click="modifyConfig(scope.row, scope.$index, true)"> 取消</el-button> </template> </el-table-column> </el-table> </div> <div class="table-pagination"> <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" background :current-page="pages.pageIndex" :page-sizes="pages.pageSizeList" :page-size="pages.pageSize" layout="total, sizes, prev, pager, next, jumper" :total="pages.total"></el-pagination> </div> </div> </div> </template> </KyySplitPane> </div> </template> <script> // definePageMeta({ // title: '数据转换配置', // keepalive: true // }) // import { // getDataTransferConfigTree, // getMappingCatalogList, // deleteMappingRef, // getPageTransformInfo, // saveOrUpdate // } from '#runtime/plugins/preset-hosp-chs-core-front/api/dataTransferConfig' // import { guid } from '@/utils/index' import KyySplitPane from "./components/kyy-split-pane/index.vue"; export default { name: 'chs-base-data-transfer-config', components: { KyySplitPane }, data() { return { treeLoading: false, currentNodekey: null, nodeKey: 'id', defaultProps: { children: 'child', label: 'className' }, treeData: [], selectLoading: false, selectTreeData: [], tableLoading: false, tableData: [], mappingRefTypeOptionsObj: { 1: '业务代码转卫健标准', 2: '卫健标准转医保标准', 3: '业务代码转医保标准' }, curEdit: null, pages: { pageIndex: 1, pageSize: 20, pageSizeList: [10, 20, 30, 50, 100], total: 0 }, } }, created() { // this.initTree() // this.getMappingCatalogList() }, methods: { // 初始化树 initTree() { this.treeLoading = true setTimeout(() => { this.treeLoading = false }, 5000) // getDataTransferConfigTree().then((res) => { // if (res.code == 200) { // this.treeData = res.result // if (this.treeData.length > 0) { // this.$nextTick(() => { // this.currentNodekey = this.treeData[0].id // this.$refs.tree.setCurrentKey(this.currentNodekey) // this.initTable() // }) // } // this.treeLoading = false // } else { // this.treeData = [] // this.tableData = [] // } // }) }, //切换树节点 handleNodeClick(data, node) { this.$nextTick(() => { this.currentNodekey = data.id this.$refs.tree.setCurrentKey(this.currentNodekey) this.initTable() }) }, // 表格数据 initTable() { this.tableLoading = true setTimeout(() => { this.tableLoading = false }, 5000) let params = { classId: this.currentNodekey, current: this.pages.pageIndex, size: this.pages.pageSize

用户评论 (0)

发表评论

captcha

相关资源

GB/T 28181-2022 公共安全视频监控联网系统:信息传输、交换、控制技术要求pdf协议文档,GB/T 28181-20

GB/T 28181-2022 公共安全视频监控联网系统:信息传输、交换、控制技术要求pdf协议文档,GB/T 28181-2022 替代 GB/T 28181-2016

35MB34积分

学生信息管理系统源码+论文+开题报告+任务书

毕业设计基于Java的房屋租赁系统源码+运行说明+数据库.高分通过项目,已获导师指导。本项目是一套基于Java的房屋租赁系统,主要针对计算机相关专业的正在做毕设的学生和需要项目实战练习的Java学习者。也可作为课程设计、期末大作业包含:源码+运行说明+数据库等,该项目可以直接作为毕设使用。项目都经过严格调试,确保可以运行!本系统使用Java语言和MySQL数据库,采用B/S模式结构,开发工具采用Navicat和IDEA。选择目前主流的框架SpringBoot进行开发,前端页面呈现技术选择VUE技术实现了房屋租赁系统功能。通过房屋租赁系统,可以建立在线租房平台,使租户可以方便地浏览房源信息、预约看房、在线签订合同,提升租房体验。开发房屋租赁系统有助于提升房屋租赁市场的规范化和透明度,提高租户和房东的体验和权益保障,推动房屋租赁行业向智能化、数字化方向发展,为城市居民提供更好的居住环境和服务。本系统中管理员功能包括用户管理,房屋信息管理,预约看房管理,在线签约管理,系统管理用户主要功能模块有登录注册、房屋信息浏览、房屋资讯浏览、交流论坛、个人中心五大功能模块

20.01MB44积分

微软雅黑字体包(包含完整版和精简版)

精简版.woff2-891kb,精简版.woff-1.18M,完整版.ttf-18M,完整版.woff2-8.5M,完整版.ttc-19.2M可按需求选择不同的版本,精简版包含常用字,满足大部分网页场景

34.25MB32积分

缘空官网源码(后台版)v1.0.zip

源码下载地址:00818.cn项目介绍:该项目适用于团队/工作室等类型,全站由Layui强力驱动,及光年后台模板的使用前台板块:团队介绍、项目展示、成员列表等后台功能:多管理员、项目管理、模板切换等等功能防窥Js:有着防窥Js的使用安装说明:程序使用PHP7+版本运行安装教程:访问您的域名根据提示进行安装 或者 修改数据库连接文件(/common/config.php)后导入数据库文件(install/install.sql)迁移教程:正确的迁移步骤:备份程序和数据库->迁移恢复->修改数据库连接文件(/common/config.php)后台信息:/admin 账号admin 密码123456

4.9MB35积分