提交 259c28c1 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码

上级 bf890bfe
...@@ -251,7 +251,7 @@ ...@@ -251,7 +251,7 @@
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('disabled')"> <template v-if="getColumnState('disabled')">
<el-table-column show-overflow-tooltip :prop="'disabled'" :label="$t('entities.dictoption.main_grid.columns.disabled')" :width="100" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'disabled'" :label="$t('entities.dictoption.main_grid.columns.disabled')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.dictoption.main_grid.columns.disabled')}} {{$t('entities.dictoption.main_grid.columns.disabled')}}
...@@ -285,7 +285,7 @@ ...@@ -285,7 +285,7 @@
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('expired')"> <template v-if="getColumnState('expired')">
<el-table-column show-overflow-tooltip :prop="'expired'" :label="$t('entities.dictoption.main_grid.columns.expired')" :width="100" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'expired'" :label="$t('entities.dictoption.main_grid.columns.expired')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.dictoption.main_grid.columns.expired')}} {{$t('entities.dictoption.main_grid.columns.expired')}}
...@@ -355,19 +355,25 @@ ...@@ -355,19 +355,25 @@
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<template v-if="actualIsOpenEdit"> <template v-if="actualIsOpenEdit">
<app-form-item :error="gridItemsModel[$index][column.property].error"> <app-form-item :error="gridItemsModel[$index][column.property].error">
<div class="ivu-input-wrapper ivu-input-wrapper-default ivu-input-type"> <input-box
<textarea class="ivu-input" rows="10" :disabled="row.srfuf === 1 ? (3 & 2) !== 2 : (3 & 1) !== 1" v-model="row[column.property]" style="" @change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}"></textarea> :disabled="row.srfuf === 1 ? (3 & 2) !== 2 : (3 & 1) !== 1"
</div> v-model="row[column.property]"
style=""
type="text"
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
</app-form-item> </app-form-item>
</template> </template>
<template v-if="!actualIsOpenEdit"> <template v-if="!actualIsOpenEdit">
<app-span name='extension' editorType="TEXTAREA" :value="row.extension"></app-span> <app-span name='extension' editorType="TEXTBOX" :value="row.extension"></app-span>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('updatedate')"> <template v-if="getColumnState('updatedate')">
<el-table-column show-overflow-tooltip :prop="'updatedate'" :label="$t('entities.dictoption.main_grid.columns.updatedate')" :width="100" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'updatedate'" :label="$t('entities.dictoption.main_grid.columns.updatedate')" :width="250" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.dictoption.main_grid.columns.updatedate')}} {{$t('entities.dictoption.main_grid.columns.updatedate')}}
......
...@@ -257,6 +257,22 @@ public class DictOption extends EntityMP implements Serializable { ...@@ -257,6 +257,22 @@ public class DictOption extends EntityMP implements Serializable {
} }
/**
* 获取 [标识]
*/
public String getValueKey(){
if(ObjectUtils.isEmpty(valueKey)){
valueKey=(String)getDefaultKey(true);
}
return valueKey;
}
@Override
public Serializable getDefaultKey(boolean gen) {
if((!ObjectUtils.isEmpty(this.getCatalogId()))&&(!ObjectUtils.isEmpty(this.getValue())))
return DigestUtils.md5DigestAsHex(String.format("%s||%s" ,this.getCatalogId(),this.getValue()).getBytes());
return null;
}
} }
...@@ -114,7 +114,7 @@ public class DictOptionServiceImpl extends ServiceImpl<DictOptionMapper, DictOpt ...@@ -114,7 +114,7 @@ public class DictOptionServiceImpl extends ServiceImpl<DictOptionMapper, DictOpt
@Override @Override
public void createBatch(List<DictOption> list) { public void createBatch(List<DictOption> list) {
list.forEach(item->fillParentData(item)); list.forEach(item->fillParentData(item));
this.saveBatch(list,batchSize); this.saveOrUpdateBatch(list,batchSize);
} }
@Override @Override
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!--输出实体[DICT_OPTION]数据结构 --> <!--输出实体[DICT_OPTION]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dict_option-83-1"> <changeSet author="a_A_5d9d78509" id="tab-dict_option-85-1">
<createTable tableName="IBZDICTOPTION"> <createTable tableName="IBZDICTOPTION">
<column name="VKEY" remarks="" type="VARCHAR(100)"> <column name="VKEY" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DICT_OPTION_VKEY"/> <constraints primaryKey="true" primaryKeyName="PK_DICT_OPTION_VKEY"/>
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</changeSet> </changeSet>
<!--输出实体[DICT_OPTION]外键关系 --> <!--输出实体[DICT_OPTION]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-dict_option-83-3"> <changeSet author="a_A_5d9d78509" id="fk-dict_option-85-3">
<addForeignKeyConstraint baseColumnNames="CID" baseTableName="IBZDICTOPTION" constraintName="DER1N_DICT_OPTION_DICT_CATALOG" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CID" referencedTableName="IBZDICTCATALOG" validate="true"/> <addForeignKeyConstraint baseColumnNames="CID" baseTableName="IBZDICTOPTION" constraintName="DER1N_DICT_OPTION_DICT_CATALOG" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CID" referencedTableName="IBZDICTCATALOG" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[DICT_CATALOG]外键关系 --> <!--输出实体[DICT_CATALOG]外键关系 -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册