| | |
| | | @current-change="currentChange" |
| | | > |
| | | <template slot="menuLeft" slot-scope="scope"> |
| | | <el-button icon="el-icon-plus" plain size="small" type="primary" @click="rowSaveHandlerClick">创建</el-button> |
| | | <el-button icon="el-icon-delete" plain size="small" type="danger" @click="allDelHandler">删除</el-button> |
| | | <el-button icon="el-icon-view" plain size="small" type="primary" @click="chekView">查看使用范围</el-button> |
| | | <el-button icon="el-icon-download" plain size="small" type="primary" @click="downloadTemplateHandler"> |
| | | <el-button v-if="permissionList.addBtn" icon="el-icon-plus" plain size="small" type="primary" |
| | | @click="rowSaveHandlerClick">创建 |
| | | </el-button> |
| | | <el-button v-if="permissionList.delBtn" icon="el-icon-delete" plain size="small" type="danger" |
| | | @click="allDelHandler">删除 |
| | | </el-button> |
| | | <el-button v-if="permissionList.viewTheScopeBtn" icon="el-icon-view" plain size="small" type="primary" |
| | | @click="chekView">查看使用范围 |
| | | </el-button> |
| | | <el-button v-if="permissionList.downloadImportTemplateBtn" icon="el-icon-download" plain size="small" |
| | | type="primary" @click="downloadTemplateHandler"> |
| | | 下载导入模板 |
| | | </el-button> |
| | | <el-button icon="el-icon-upload2" plain size="small" type="primary" @click="upLoadHandler">导入</el-button> |
| | | <el-button icon="el-icon-download" plain size="small" type="primary" @click="downLoadHandler">导出</el-button> |
| | | <el-button v-if="permissionList.importBtn" icon="el-icon-upload2" plain size="small" type="primary" |
| | | @click="upLoadHandler">导入 |
| | | </el-button> |
| | | <el-button v-if="permissionList.exportBtn" icon="el-icon-download" plain size="small" type="primary" |
| | | @click="downLoadHandler">导出 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button icon="el-icon-edit" size="small" type="text" @click="editBtnClick(scope.row)">编辑 |
| | | <el-button v-if="permissionList.editBtn" icon="el-icon-edit" size="small" type="text" |
| | | @click="editBtnClick(scope.row)">编辑 |
| | | </el-button> |
| | | <el-button icon="el-icon-delete" size="small" type="text" @click="rowDeleteHandler(scope.row)">删除 |
| | | <el-button v-if="permissionList.delBtn" icon="el-icon-delete" size="small" type="text" |
| | | @click="rowDeleteHandler(scope.row)">删除 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | <el-aside width="30%"> |
| | | <basic-container> |
| | | <div style="height: 85vh; overflow-y: auto"> |
| | | <el-descriptions :column="1" border size="medium" title="属性项" :labelStyle="{width:'120px'}"> |
| | | <el-descriptions :column="1" :labelStyle="{width:'120px'}" border size="medium" title="属性项"> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 名称 |
| | |
| | | 标签 |
| | | </template> |
| | | <div> |
| | | {{ lastItem.name }} |
| | | {{ lastItem.name }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | |
| | | 描述 |
| | | </template> |
| | | <div> |
| | | {{ lastItem.description }} |
| | | {{ lastItem.description }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | |
| | | </el-descriptions> |
| | | |
| | | <!-- 值域 --> |
| | | <el-descriptions v-if="!isSpecialDataType" :column="1" :title="lastItem.attributeDataType || 'VTString'" border |
| | | class="margin-top" |
| | | size="medium" :labelStyle="{width:'120px'}"> |
| | | <el-descriptions v-if="!isSpecialDataType" :column="1" :labelStyle="{width:'120px'}" |
| | | :title="lastItem.attributeDataType || 'VTString'" |
| | | border |
| | | class="margin-top" size="medium"> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 允许为空 |
| | | </template> |
| | | <div> |
| | | <el-tag :type="lastItem.nullableFlag ? 'success' : 'danger'"> |
| | | {{ lastItem.nullableFlag ? '是' : '否' }} |
| | | </el-tag> |
| | | <el-tag :type="lastItem.nullableFlag ? 'success' : 'danger'"> |
| | | {{ lastItem.nullableFlag ? '是' : '否' }} |
| | | </el-tag> |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item v-if="accuracy"> |
| | |
| | | 长度 |
| | | </template> |
| | | <div> |
| | | {{ lastItem.attrLength }} |
| | | {{ lastItem.attrLength }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | |
| | | 默认值 |
| | | </template> |
| | | <div> |
| | | {{ lastItem.defaultValue }} |
| | | {{ lastItem.defaultValue }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | |
| | | <!-- VTString --> |
| | | <el-descriptions v-if="lastItem.attributeDataType === 'VTString' || !lastItem.attributeDataType" |
| | | :column="1" border class="margin-top" size="medium" title="值域" :labelStyle="{width:'120px'}"> |
| | | :column="1" :labelStyle="{width:'120px'}" border class="margin-top" size="medium" title="值域"> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 当前类型 |
| | | </template> |
| | | <div> |
| | | {{ lastItem.version ? '链接类型' : '业务类型' }} |
| | | {{ lastItem.version ? '链接类型' : '业务类型' }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | |
| | | 当前类型值 |
| | | </template> |
| | | <div> |
| | | {{ lastItem.version ? lastItem.linkTypeName : lastItem.btmTypeId }} |
| | | {{ lastItem.version ? lastItem.linkTypeName : lastItem.btmTypeId }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item v-if="lastItem.version"> |
| | |
| | | 当前版本次 |
| | | </template> |
| | | <div> |
| | | {{ lastItem.version }} |
| | | {{ lastItem.version }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | |
| | | 使用枚举 |
| | | </template> |
| | | <div> |
| | | <el-tag :type="lastItem.enumId ? 'success' : 'danger'"> |
| | | {{ lastItem.enumId ? '是' : '否' }} |
| | | </el-tag> |
| | | <el-tag :type="lastItem.enumId ? 'success' : 'danger'"> |
| | | {{ lastItem.enumId ? '是' : '否' }} |
| | | </el-tag> |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | |
| | | 当前枚举类型 |
| | | </template> |
| | | <div> |
| | | {{ lastItem.enumId }} |
| | | {{ lastItem.enumId }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | |
| | | <!-- VTInteger && VTInteger --> |
| | | <el-descriptions |
| | | v-if="lastItem.attributeDataType === 'VTInteger' || lastItem.attributeDataType === 'VTInteger'" |
| | | :column="1" border class="margin-top" size="medium" title="值域" :labelStyle="{width:'120px'}"> |
| | | :column="1" :labelStyle="{width:'120px'}" border class="margin-top" size="medium" title="值域"> |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | | 使用枚举 |
| | | </template> |
| | | <div> |
| | | <el-tag :type="lastItem.enumFlag ? 'success' : 'danger'"> |
| | | {{ lastItem.enumFlag ? '是' : '否' }} |
| | | </el-tag> |
| | | <el-tag :type="lastItem.enumFlag ? 'success' : 'danger'"> |
| | | {{ lastItem.enumFlag ? '是' : '否' }} |
| | | </el-tag> |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | |
| | | 枚举类型 |
| | | </template> |
| | | <div> |
| | | {{ lastItem.enumFlag }} |
| | | {{ lastItem.enumFlag }} |
| | | </div> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | |
| | | </el-descriptions> |
| | | <!-- VTDouble --> |
| | | <el-descriptions v-if="lastItem.attributeDataType === 'VTDouble'" |
| | | :column="1" border class="margin-top" size="medium" title="值域" :labelStyle="{width:'120px'}"> |
| | | :column="1" :labelStyle="{width:'120px'}" border class="margin-top" size="medium" title="值域"> |
| | | |
| | | <el-descriptions-item> |
| | | <template slot="label"> |
| | |
| | | </el-col> |
| | | <!-- VTString --> |
| | | <div v-if="form.attributeDataType === 'VTString'" style="clear: both"> |
| | | <h3 style="border-bottom: 1px solid #eee;margin: -10px 0 20px;line-height: 40px">{{ form.attributeDataType }}</h3> |
| | | <h3 style="border-bottom: 1px solid #eee;margin: -10px 0 20px;line-height: 40px">{{ |
| | | form.attributeDataType |
| | | }}</h3> |
| | | <el-col :span="8"> |
| | | <el-form-item label="长度:" prop="attrLength"> |
| | | <el-input-number v-model="form.attrLength" controls-position="right" :min="0"></el-input-number> |
| | | <el-input-number v-model="form.attrLength" :min="0" controls-position="right"></el-input-number> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item v-if="form.enumSwitch" label="默认值:" prop="defaultValue"> |
| | | <el-form-item v-if="form.enumSwitch" label="默认值:" prop="defaultValue"> |
| | | <el-select v-model="form.defaultValue"> |
| | | <el-option v-for="(item,index) in enumAddListChange" :key="index" :label="item.replace('=','')" |
| | | :value="item.replace('=','')"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item v-else label="默认值:" prop="defaultValue"> |
| | | <el-form-item v-else label="默认值:" prop="defaultValue"> |
| | | <el-input v-model="form.defaultValue"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="选择参照类型:" prop="referValue"> |
| | | <el-input v-model="form.referValue" @focus="referFormFocusHandler" :clearable="true"></el-input> |
| | | <el-input v-model="form.referValue" :clearable="true" @focus="referFormFocusHandler"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item :label="form.enumSwitch ? '枚举选择:' : '添加值域:'" prop="enumSwitch"> |
| | | <el-select v-if="form.enumSwitch" v-model="form.enumId" placeholder="请选择枚举类型" @change="enumSelectChange"> |
| | | <el-select v-if="form.enumSwitch" v-model="form.enumId" placeholder="请选择枚举类型" |
| | | @change="enumSelectChange"> |
| | | <el-option v-for="(item,index) in attributeDataTypePickList" :key="index" :label="item.key" |
| | | :value="item.key"></el-option> |
| | | </el-select> |
| | |
| | | <el-col :span="8"> |
| | | <el-form-item v-if="!form.enumSwitch" label-width="10px" labeldd="运算符:"> |
| | | <div> |
| | | <el-button size="mini" @click="enumAddHandler"> = </el-button> |
| | | <el-button size="mini" @click="enumAddHandler"> =</el-button> |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24" v-if="form.rangeValue && form.rangeValue.length>0"> |
| | | <el-col v-if="form.rangeValue && form.rangeValue.length>0" :span="24"> |
| | | <el-form-item :label="form.enumSwitch ? '当前枚举值:' : '当前值域:'" prop="rangeValue"> |
| | | <el-tag :key="item" v-for="item in form.rangeValue.split('\n')" plain :closable="!form.enumSwitch" type="success" @close="handleRangeValueDel(item)" style="margin: 0 10px 5px 0">{{ item }}</el-tag> |
| | | <el-input v-model="form.rangeValue" :readonly="form.enumSwitch" type="textarea" :rows="2" style="width: 0;height:0;overflow: hidden"></el-input> |
| | | <el-tag v-for="item in form.rangeValue.split('\n')" :key="item" :closable="!form.enumSwitch" plain |
| | | style="margin: 0 10px 5px 0" type="success" @close="handleRangeValueDel(item)">{{ item }} |
| | | </el-tag> |
| | | <el-input v-model="form.rangeValue" :readonly="form.enumSwitch" :rows="2" |
| | | style="width: 0;height:0;overflow: hidden" |
| | | type="textarea"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </div> |
| | | </div> |
| | | <!-- VTInteger VTLong --> |
| | | <div v-else-if="form.attributeDataType === 'VTInteger' || form.attributeDataType === 'VTLong' " style="clear: both"> |
| | | <h3 style="border-bottom: 1px solid #eee;margin: -10px 0 20px;line-height: 40px">{{ form.attributeDataType }}</h3> |
| | | <div v-else-if="form.attributeDataType === 'VTInteger' || form.attributeDataType === 'VTLong' " |
| | | style="clear: both"> |
| | | <h3 style="border-bottom: 1px solid #eee;margin: -10px 0 20px;line-height: 40px">{{ |
| | | form.attributeDataType |
| | | }}</h3> |
| | | <el-col :span="8"> |
| | | <el-form-item v-if="form.enumSwitch" label="默认值:" prop="defaultValue"> |
| | | <el-form-item v-if="form.enumSwitch" label="默认值:" prop="defaultValue"> |
| | | <el-select v-model="form.defaultValue"> |
| | | <el-option v-for="(item,index) in enumAddListChange" :key="index" :label="item.replace('=','')" |
| | | :value="item.replace('=','')"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item v-else label="默认值:" prop="defaultValue"> |
| | | <el-form-item v-else label="默认值:" prop="defaultValue"> |
| | | <el-input-number v-model="form.defaultValue" controls-position="right"></el-input-number> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24" v-if="form.rangeValue && form.rangeValue.length>0"> |
| | | <el-col v-if="form.rangeValue && form.rangeValue.length>0" :span="24"> |
| | | <el-form-item :label="form.enumSwitch ? '当前枚举值:' : '当前值域:'" prop="rangeValue"> |
| | | <el-tag :key="item" v-for="item in form.rangeValue.split('\n')" plain :closable="!form.enumSwitch" type="success" @close="handleRangeValueDel(item)" style="margin: 0 10px 5px 0">{{ item }}</el-tag> |
| | | <el-input v-model="form.rangeValue" :readonly="form.enumSwitch" type="textarea" :rows="2" style="width: 0;height:0;overflow: hidden"></el-input> |
| | | <el-tag v-for="item in form.rangeValue.split('\n')" :key="item" :closable="!form.enumSwitch" plain |
| | | style="margin: 0 10px 5px 0" type="success" @close="handleRangeValueDel(item)">{{ item }} |
| | | </el-tag> |
| | | <el-input v-model="form.rangeValue" :readonly="form.enumSwitch" :rows="2" |
| | | style="width: 0;height:0;overflow: hidden" |
| | | type="textarea"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </div> |
| | | <!-- VTDouble --> |
| | | <div v-else-if="form.attributeDataType === 'VTDouble'" style="clear: both"> |
| | | <h3 style="border-bottom: 1px solid #eee;margin: -10px 0 20px;line-height: 40px">{{ form.attributeDataType }}</h3> |
| | | <h3 style="border-bottom: 1px solid #eee;margin: -10px 0 20px;line-height: 40px">{{ |
| | | form.attributeDataType |
| | | }}</h3> |
| | | <el-col :span="8"> |
| | | <el-form-item label="精度:" prop="precisionLength"> |
| | | <el-input-number v-model="form.precisionLength" controls-position="right" :precision="0" :step="1" :min="0"></el-input-number> |
| | | <el-input-number v-model="form.precisionLength" :min="0" :precision="0" :step="1" |
| | | controls-position="right"></el-input-number> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="长度:" prop="scaleLength"> |
| | | <el-input-number v-model="form.scaleLength" controls-position="right" :precision="0" :step="1" :min="0"></el-input-number> |
| | | <el-input-number v-model="form.scaleLength" :min="0" :precision="0" :step="1" |
| | | controls-position="right"></el-input-number> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item v-if="form.enumSwitch" label="默认值:" prop="defaultValue"> |
| | | <el-form-item v-if="form.enumSwitch" label="默认值:" prop="defaultValue"> |
| | | <el-select v-model="form.defaultValue"> |
| | | <el-option v-for="(item,index) in enumAddListChange" :key="index" :label="item.replace('=','')" |
| | | :value="item.replace('=','')"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item v-else label="默认值:" prop="defaultValue"> |
| | | <el-input-number v-model="form.defaultValue" controls-position="right" :precision="form.precisionLength"></el-input-number> |
| | | <el-form-item v-else label="默认值:" prop="defaultValue"> |
| | | <el-input-number v-model="form.defaultValue" :precision="form.precisionLength" |
| | | controls-position="right"></el-input-number> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | |
| | | <h3 style="border-bottom: 1px solid #eee;margin: -10px 0 20px;line-height: 40px;clear: both">值域</h3> |
| | | <el-col :span="8"> |
| | | <el-form-item :label="form.enumSwitch ? '枚举选择:' : '添加值域:'" prop="enumAddValue"> |
| | | <el-input v-model="form.enumAddValue"> </el-input> |
| | | <el-input v-model="form.enumAddValue"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="16"> |
| | |
| | | </div> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24" v-if="form.rangeValue && form.rangeValue.length>0"> |
| | | <el-col v-if="form.rangeValue && form.rangeValue.length>0" :span="24"> |
| | | <el-form-item :label="form.enumSwitch ? '当前枚举值:' : '当前值域:'" prop="rangeValue"> |
| | | <el-tag :key="item" v-for="item in form.rangeValue.split('\n')" plain closable type="success" @close="handleRangeValueDel(item)" style="margin: 0 10px 5px 0">{{ item }}</el-tag> |
| | | <el-input v-model="form.rangeValue" type="textarea" :rows="2" style="width: 0;height:0;overflow: hidden"></el-input> |
| | | <el-tag v-for="item in form.rangeValue.split('\n')" :key="item" closable plain |
| | | style="margin: 0 10px 5px 0" |
| | | type="success" @close="handleRangeValueDel(item)">{{ item }} |
| | | </el-tag> |
| | | <el-input v-model="form.rangeValue" :rows="2" style="width: 0;height:0;overflow: hidden" |
| | | type="textarea"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </div> |
| | | <div v-else-if="form.attributeDataType === 'VTBoolean'" style="clear: both"> |
| | | <h3 style="border-bottom: 1px solid #eee;margin: -10px 0 20px;line-height: 40px">{{ form.attributeDataType }}</h3> |
| | | <h3 style="border-bottom: 1px solid #eee;margin: -10px 0 20px;line-height: 40px">{{ |
| | | form.attributeDataType |
| | | }}</h3> |
| | | <el-col :span="8"> |
| | | <el-form-item label="默认值:" prop="defaultValue"> |
| | | <el-select v-model="form.defaultValue"> |
| | |
| | | import basicOption from '@/util/basic-option'; |
| | | import {column} from "./option" |
| | | import func from "@/util/func"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | | export default { |
| | | name: "index", |
| | |
| | | searchMenuSpan: 8, |
| | | refreshBtn: false, |
| | | selection: false, |
| | | header:false, |
| | | header: false, |
| | | column: [ |
| | | { |
| | | label: '名称', |
| | |
| | | description: "", |
| | | nullableFlag: true, |
| | | attrLength: 50, |
| | | precisionLength:2,//精度 |
| | | scaleLength:20,//长度 |
| | | precisionLength: 2,//精度 |
| | | scaleLength: 20,//长度 |
| | | enumFlag: false, |
| | | enumId: "", |
| | | enumSwitch: false, |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission[this.$route.query.id].ADD, false), |
| | | delBtn: this.vaildData(this.permission[this.$route.query.id].DELETE, false), |
| | | editBtn: this.vaildData(this.permission[this.$route.query.id].EDIT, false), |
| | | exportBtn: this.vaildData(this.permission[this.$route.query.id].EXPORT, false), |
| | | importBtn: this.vaildData(this.permission[this.$route.query.id].IMPORT, false), |
| | | downloadImportTemplateBtn: this.vaildData(this.permission[this.$route.query.id].downloadImportTemplate, false), |
| | | viewTheScopeBtn: this.vaildData(this.permission[this.$route.query.id].viewTheScope, false), |
| | | }; |
| | | }, |
| | | lastItem() { |
| | | return this.selectList.length > 0 ? this.selectList[this.selectList.length - 1] : {}; |
| | | }, |
| | |
| | | } |
| | | this.getEnumMapByTypeHandler(this.form.attributeDataType); |
| | | this.addVisible = true; |
| | | this.lastIndex=-1;//防止触发行点击事件后清除选中项 |
| | | this.lastIndex = -1;//防止触发行点击事件后清除选中项 |
| | | }, |
| | | |
| | | // 属性类型下拉框change |
| | | attributeDataTypeChange(val) { |
| | | this.form.rangeValue = null; |
| | | this.form.nullableFlag=true; |
| | | this.form.nullableFlag = true; |
| | | this.getEnumMapByTypeHandler(val); |
| | | this.form.enumSwitch = false; |
| | | if (val === 'VTBoolean') { |
| | | this.form.defaultValue = 'false'; |
| | | } else{ |
| | | } else { |
| | | this.form.defaultValue = ''; |
| | | } |
| | | }, |
| | |
| | | enumSelectChange(val) { |
| | | const list = this.attributeDataTypePickList.find(item => item.key === val).values; |
| | | this.form.rangeValue = list.join('\n'); |
| | | this.enumAddListChange=list; |
| | | this.form.defaultValue = list[0].replace('=',''); |
| | | this.enumAddListChange = list; |
| | | this.form.defaultValue = list[0].replace('=', ''); |
| | | }, |
| | | |
| | | // 使用枚举switch滑块change事件 |
| | |
| | | this.form.enumId = this.attributeDataTypePickList[0].key; |
| | | const list = this.attributeDataTypePickList[0].values; |
| | | this.form.rangeValue = list.join('\n'); |
| | | this.enumAddListChange=list; |
| | | this.form.defaultValue = list[0].replace('=',''); |
| | | this.enumAddListChange = list; |
| | | this.form.defaultValue = list[0].replace('=', ''); |
| | | } else { |
| | | this.form.defaultValue = ""; |
| | | this.form.rangeValue = ""; |
| | | this.enumAddListChange=[]; |
| | | this.enumAddListChange = []; |
| | | this.enumId = ""; |
| | | } |
| | | }, |
| | |
| | | //删除值域 |
| | | handleRangeValueDel(val) { |
| | | let currentRangeArray = this.form.rangeValue ? this.form.rangeValue.split('\n').filter(item => item.trim() !== val) : []; |
| | | this.enumAddListChange =currentRangeArray; |
| | | this.enumAddListChange = currentRangeArray; |
| | | this.form.rangeValue = currentRangeArray.join('\n'); |
| | | }, |
| | | // 值域类型切换 |
| | |
| | | description: "", |
| | | nullableFlag: true, |
| | | attrLength: 50, |
| | | precisionLength:2,//精度 |
| | | scaleLength:20,//长度 |
| | | precisionLength: 2,//精度 |
| | | scaleLength: 20,//长度 |
| | | enumFlag: false, |
| | | enumId: "", |
| | | enumSwitch: false, |
| | |
| | | this.form.range = this.form.rangeValue ? this.form.rangeValue.replace(/\n/g, ';') : ''; |
| | | if (this.form.attributeSelectType === 'business') { |
| | | this.form.btmTypeId = this.form.referValue; |
| | | this.form.linkTypeName=""; |
| | | this.form.linkTypeName = ""; |
| | | } else { |
| | | this.form.linkTypeName = this.form.referValue; |
| | | this.form.btmTypeId=""; |
| | | this.form.btmTypeId = ""; |
| | | } |
| | | if (this.dialogTitle === 'add') { |
| | | addAttribute(this.form).then(res => { |
| | |
| | | width: 100%; |
| | | } |
| | | } |
| | | |
| | | .margin-top { |
| | | margin-top: 25px; |
| | | } |