提交 318e928b 编写于 作者: ibizdev's avatar ibizdev

lab_qyk 发布系统代码

上级 babfc16f
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"font-awesome": "^4.7.0", "font-awesome": "^4.7.0",
"ibiz-gantt-elastic": "^1.0.13", "ibiz-gantt-elastic": "^1.0.13",
"ibiz-vue-lib": "^0.1.7", "ibiz-vue-lib": "^0.1.8",
"interactjs": "^1.9.4", "interactjs": "^1.9.4",
"moment": "^2.24.0", "moment": "^2.24.0",
"path-to-regexp": "^6.1.0", "path-to-regexp": "^6.1.0",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="ibiz-group-picker"> <div class="ibiz-group-picker">
<div class="ibiz-group-container"> <div class="ibiz-group-container">
<div v-if="showTree" class="ibiz-group-tree"> <div v-if="showTree" class="ibiz-group-tree">
<ibiz-select-tree :NodesData="treeItems" v-model="treeSelectVal" :treeOnly="true" @select="treeSelect"></ibiz-select-tree> <ibiz-select-tree :NodesData="treeItems" v-model="treeSelectVal" :treeOnly="true" :defaultChecked="true" @select="treeSelect"></ibiz-select-tree>
</div> </div>
<div class="ibiz-group-content"> <div class="ibiz-group-content">
<ibiz-group-card :data="cardItems" text="label" value="id" groupName="group" :multiple="multiple" :defaultSelect="cardSelctVal" @select="groupSelect"></ibiz-group-card> <ibiz-group-card :data="cardItems" text="label" value="id" groupName="group" :multiple="multiple" :defaultSelect="cardSelctVal" @select="groupSelect"></ibiz-group-card>
......
...@@ -854,7 +854,7 @@ export default class EditGridBase extends Vue implements ControlInterface { ...@@ -854,7 +854,7 @@ export default class EditGridBase extends Vue implements ControlInterface {
* *
* @memberof EditGrid * @memberof EditGrid
*/ */
public validtor(property:string, data:any, rowIndex:number){ public validate(property:string, data:any, rowIndex:number){
this.$util.validateItem(property,data,this.rules).then(()=>{ this.$util.validateItem(property,data,this.rules).then(()=>{
this.gridItemsModel[rowIndex][property].setError(null); this.gridItemsModel[rowIndex][property].setError(null);
}).catch(({ errors, fields }) => { }).catch(({ errors, fields }) => {
...@@ -1662,7 +1662,7 @@ export default class EditGridBase extends Vue implements ControlInterface { ...@@ -1662,7 +1662,7 @@ export default class EditGridBase extends Vue implements ControlInterface {
return; return;
} }
row[$event.name] = $event.value; row[$event.name] = $event.value;
this.gridEditItemChange(row, $event.name, $event.value); this.gridEditItemChange(row, $event.name, $event.value, rowIndex);
} }
/** /**
...@@ -1677,7 +1677,7 @@ export default class EditGridBase extends Vue implements ControlInterface { ...@@ -1677,7 +1677,7 @@ export default class EditGridBase extends Vue implements ControlInterface {
*/ */
public gridEditItemChange(row: any, property: string, value: any, rowIndex: number){ public gridEditItemChange(row: any, property: string, value: any, rowIndex: number){
row.rowDataState = row.rowDataState ? row.rowDataState : "update" ; row.rowDataState = row.rowDataState ? row.rowDataState : "update" ;
this.validtor(property,row,rowIndex); this.validate(property,row,rowIndex);
} }
/** /**
......
...@@ -714,7 +714,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -714,7 +714,7 @@ export default class MainBase extends Vue implements ControlInterface {
* *
* @memberof Main * @memberof Main
*/ */
public validtor(property:string, data:any, rowIndex:number){ public validate(property:string, data:any, rowIndex:number){
this.$util.validateItem(property,data,this.rules).then(()=>{ this.$util.validateItem(property,data,this.rules).then(()=>{
this.gridItemsModel[rowIndex][property].setError(null); this.gridItemsModel[rowIndex][property].setError(null);
}).catch(({ errors, fields }) => { }).catch(({ errors, fields }) => {
......
...@@ -632,7 +632,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -632,7 +632,7 @@ export default class MainBase extends Vue implements ControlInterface {
* *
* @memberof Main * @memberof Main
*/ */
public validtor(property:string, data:any, rowIndex:number){ public validate(property:string, data:any, rowIndex:number){
this.$util.validateItem(property,data,this.rules).then(()=>{ this.$util.validateItem(property,data,this.rules).then(()=>{
this.gridItemsModel[rowIndex][property].setError(null); this.gridItemsModel[rowIndex][property].setError(null);
}).catch(({ errors, fields }) => { }).catch(({ errors, fields }) => {
...@@ -1440,7 +1440,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1440,7 +1440,7 @@ export default class MainBase extends Vue implements ControlInterface {
return; return;
} }
row[$event.name] = $event.value; row[$event.name] = $event.value;
this.gridEditItemChange(row, $event.name, $event.value); this.gridEditItemChange(row, $event.name, $event.value, rowIndex);
} }
/** /**
...@@ -1455,7 +1455,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1455,7 +1455,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public gridEditItemChange(row: any, property: string, value: any, rowIndex: number){ public gridEditItemChange(row: any, property: string, value: any, rowIndex: number){
row.rowDataState = row.rowDataState ? row.rowDataState : "update" ; row.rowDataState = row.rowDataState ? row.rowDataState : "update" ;
this.validtor(property,row,rowIndex); this.validate(property,row,rowIndex);
} }
/** /**
......
...@@ -956,7 +956,7 @@ export default class EditGridBase extends Vue implements ControlInterface { ...@@ -956,7 +956,7 @@ export default class EditGridBase extends Vue implements ControlInterface {
* *
* @memberof EditGrid * @memberof EditGrid
*/ */
public validtor(property:string, data:any, rowIndex:number){ public validate(property:string, data:any, rowIndex:number){
this.$util.validateItem(property,data,this.rules).then(()=>{ this.$util.validateItem(property,data,this.rules).then(()=>{
this.gridItemsModel[rowIndex][property].setError(null); this.gridItemsModel[rowIndex][property].setError(null);
}).catch(({ errors, fields }) => { }).catch(({ errors, fields }) => {
...@@ -1772,7 +1772,7 @@ export default class EditGridBase extends Vue implements ControlInterface { ...@@ -1772,7 +1772,7 @@ export default class EditGridBase extends Vue implements ControlInterface {
return; return;
} }
row[$event.name] = $event.value; row[$event.name] = $event.value;
this.gridEditItemChange(row, $event.name, $event.value); this.gridEditItemChange(row, $event.name, $event.value, rowIndex);
} }
/** /**
...@@ -1787,7 +1787,7 @@ export default class EditGridBase extends Vue implements ControlInterface { ...@@ -1787,7 +1787,7 @@ export default class EditGridBase extends Vue implements ControlInterface {
*/ */
public gridEditItemChange(row: any, property: string, value: any, rowIndex: number){ public gridEditItemChange(row: any, property: string, value: any, rowIndex: number){
row.rowDataState = row.rowDataState ? row.rowDataState : "update" ; row.rowDataState = row.rowDataState ? row.rowDataState : "update" ;
this.validtor(property,row,rowIndex); this.validate(property,row,rowIndex);
} }
/** /**
......
...@@ -740,7 +740,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -740,7 +740,7 @@ export default class MainBase extends Vue implements ControlInterface {
* *
* @memberof Main * @memberof Main
*/ */
public validtor(property:string, data:any, rowIndex:number){ public validate(property:string, data:any, rowIndex:number){
this.$util.validateItem(property,data,this.rules).then(()=>{ this.$util.validateItem(property,data,this.rules).then(()=>{
this.gridItemsModel[rowIndex][property].setError(null); this.gridItemsModel[rowIndex][property].setError(null);
}).catch(({ errors, fields }) => { }).catch(({ errors, fields }) => {
......
...@@ -695,7 +695,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -695,7 +695,7 @@ export default class MainBase extends Vue implements ControlInterface {
* *
* @memberof Main * @memberof Main
*/ */
public validtor(property:string, data:any, rowIndex:number){ public validate(property:string, data:any, rowIndex:number){
this.$util.validateItem(property,data,this.rules).then(()=>{ this.$util.validateItem(property,data,this.rules).then(()=>{
this.gridItemsModel[rowIndex][property].setError(null); this.gridItemsModel[rowIndex][property].setError(null);
}).catch(({ errors, fields }) => { }).catch(({ errors, fields }) => {
......
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
<!--输出实体[IBZDEPT]数据结构 --> <!--输出实体[IBZDEPT]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-ibzdept-659-4"> <changeSet author="a_A_5d9d78509" id="tab-ibzdept-661-4">
<createTable tableName="IBZDEPT"> <createTable tableName="IBZDEPT">
<column name="DEPTID" remarks="" type="VARCHAR(100)"> <column name="DEPTID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_IBZDEPT_DEPTID"/> <constraints primaryKey="true" primaryKeyName="PK_IBZDEPT_DEPTID"/>
...@@ -179,10 +179,10 @@ ...@@ -179,10 +179,10 @@
<addForeignKeyConstraint baseColumnNames="USERID" baseTableName="IBZDEPTMEMBER" constraintName="DER1N_IBZDEPTMEMBER_IBZEMP_USE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="USERID" referencedTableName="IBZEMP" validate="true"/> <addForeignKeyConstraint baseColumnNames="USERID" baseTableName="IBZDEPTMEMBER" constraintName="DER1N_IBZDEPTMEMBER_IBZEMP_USE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="USERID" referencedTableName="IBZEMP" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[IBZDEPT]外键关系 --> <!--输出实体[IBZDEPT]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-ibzdept-659-10"> <changeSet author="a_A_5d9d78509" id="fk-ibzdept-661-10">
<addForeignKeyConstraint baseColumnNames="PDEPTID" baseTableName="IBZDEPT" constraintName="DER1N_IBZDEPT_IBZDEPT_PDEPTID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="DEPTID" referencedTableName="IBZDEPT" validate="true"/> <addForeignKeyConstraint baseColumnNames="PDEPTID" baseTableName="IBZDEPT" constraintName="DER1N_IBZDEPT_IBZDEPT_PDEPTID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="DEPTID" referencedTableName="IBZDEPT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_A_5d9d78509" id="fk-ibzdept-659-11"> <changeSet author="a_A_5d9d78509" id="fk-ibzdept-661-11">
<addForeignKeyConstraint baseColumnNames="ORGID" baseTableName="IBZDEPT" constraintName="DER1N_IBZDEPT_IBZORG_ORGID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGID" referencedTableName="IBZORG" validate="true"/> <addForeignKeyConstraint baseColumnNames="ORGID" baseTableName="IBZDEPT" constraintName="DER1N_IBZDEPT_IBZORG_ORGID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGID" referencedTableName="IBZORG" validate="true"/>
</changeSet> </changeSet>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册