修改字段信息管理

This commit is contained in:
shidongli 2024-08-06 15:52:59 +08:00
parent 53b99cea92
commit 9e96495eb2

View File

@ -1,11 +1,10 @@
<template> <template>
<div class="app-container" ref="layout"> <div class="app-container" ref="layout">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="5" :xs="24"> <el-col :span="5">
<div class="left" ref="box"> <div class="left" ref="box">
<!-- <div :class="itemid=='' ? 'all' : 'all'" @click="allclick"> --> <!-- <div :class="itemid=='' ? 'all' : 'all'" @click="allclick"> -->
<div class="all" @click="allclick"> <div class="all" @click="allclick">
全部 全部
</div> </div>
<el-collapse <el-collapse
@ -27,7 +26,7 @@
> >
<el-table-column prop="" label=""> <el-table-column prop="" label="">
<template slot-scope="scope"> <template slot-scope="scope">
<div <div
@click="clickitem(scope.row)" @click="clickitem(scope.row)"
:class="itemid == scope.row.id ? 'allactive' : 'collitem'" :class="itemid == scope.row.id ? 'allactive' : 'collitem'"
@ -50,7 +49,7 @@
</el-collapse> </el-collapse>
</div> </div>
</el-col> </el-col>
<el-col :span="19" :xs="24"> <el-col :span="19">
<div ref="topform" class="form"> <div ref="topform" class="form">
<el-form <el-form
:model="queryParams" :model="queryParams"
@ -157,7 +156,7 @@
prop="taskPartitionDictName" prop="taskPartitionDictName"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> />
<el-table-column label="字段类型" align="center" prop="fieldType"> <el-table-column label="字段类型" align="center" prop="fieldType">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.fieldType == "STRING" ? "默认字符串" : "" }} {{ scope.row.fieldType == "STRING" ? "默认字符串" : "" }}
@ -174,7 +173,7 @@
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> --> /> -->
<el-table-column <el-table-column
label="操作" label="操作"
align="center" align="center"
@ -330,7 +329,7 @@
label="字段编码" label="字段编码"
:rules="rules.labelFieldInfoList.fieldCode" :rules="rules.labelFieldInfoList.fieldCode"
:prop="`labelFieldInfoList.${index}.fieldCode`" :prop="`labelFieldInfoList.${index}.fieldCode`"
> >
<!-- <el-input <!-- <el-input
onkeyup="this.value=this.value.replace(/[^A-Z]/g,'')" onkeyup="this.value=this.value.replace(/[^A-Z]/g,'')"
@ -339,7 +338,7 @@
placeholder="请输入字段编码" placeholder="请输入字段编码"
style="width: 210px" style="width: 210px"
/> --> /> -->
<el-input <el-input
onkeyup="this.value=this.value. replace(/[^a-zA-Z]/g, '')" onkeyup="this.value=this.value. replace(/[^a-zA-Z]/g, '')"
@input="validateInput(aitem,index)" @input="validateInput(aitem,index)"
@ -977,7 +976,7 @@ export default {
this.form.fieldCode = this.form.fieldCode.toUpperCase(); this.form.fieldCode = this.form.fieldCode.toUpperCase();
}, },
// //
allclick() { allclick() {
@ -991,9 +990,6 @@ export default {
this.queryParams.taskPartitionDictId = row.id this.queryParams.taskPartitionDictId = row.id
this.itemid = this.queryParams.taskPartitionDictId; this.itemid = this.queryParams.taskPartitionDictId;
this.getList(); this.getList();
}, },
handleChange(val) { handleChange(val) {
console.log(val); console.log(val);
@ -1400,6 +1396,9 @@ export default {
::v-deep .el-collapse-item__wrap { ::v-deep .el-collapse-item__wrap {
border-bottom: none; border-bottom: none;
} }
::v-deep .el-col-19{
width: 78% !important;
}
::v-deep .el-table::before { ::v-deep .el-table::before {