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

ShineKOT 发布系统代码 [后台服务,演示应用]

上级 7eb28a27
...@@ -430,7 +430,6 @@ export default { ...@@ -430,7 +430,6 @@ export default {
rowrules_grid: { rowrules_grid: {
columns: { columns: {
ibizbookname: "图书名称", ibizbookname: "图书名称",
author: "图书作者",
type: "图书类型", type: "图书类型",
press: "图书出版社", press: "图书出版社",
price: "图书价格", price: "图书价格",
......
...@@ -429,7 +429,6 @@ export default { ...@@ -429,7 +429,6 @@ export default {
rowrules_grid: { rowrules_grid: {
columns: { columns: {
ibizbookname: "图书名称", ibizbookname: "图书名称",
author: "图书作者",
type: "图书类型", type: "图书类型",
press: "图书出版社", press: "图书出版社",
price: "图书价格", price: "图书价格",
......
...@@ -28,7 +28,7 @@ export default class ViewMsg5MessageServiceBase extends ViewMessageService { ...@@ -28,7 +28,7 @@ export default class ViewMsg5MessageServiceBase extends ViewMessageService {
this.name = "表格值规则"; this.name = "表格值规则";
this.codename = "ViewMsg5"; this.codename = "ViewMsg5";
this.title = ""; this.title = "";
this.content = "本示例展示表格的值规则功能:作者名不能为空;图书数量不能小于0。"; this.content = "本示例展示表格的值规则功能:图书数量不能小于0。";
this.closeMode = 0; this.closeMode = 0;
this.position = "TOP"; this.position = "TOP";
this.type = "error"; this.type = "error";
......
...@@ -49,34 +49,6 @@ ...@@ -49,34 +49,6 @@
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('author')">
<el-table-column show-overflow-tooltip :prop="'author'" :label="$t('entities.ibizbook.rowrules_grid.columns.author')" :width="280" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.ibizbook.rowrules_grid.columns.author')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<template v-if="actualIsOpenEdit && !row.children">
<app-form-item :error="gridItemsModel[$index][column.property].error">
<input-box
:disabled="getColumnDisabled(row,column.property)"
v-model="row[column.property]"
style=""
type="text"
@change="($event)=>{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
</app-form-item>
</template>
<template v-if="!actualIsOpenEdit">
<app-span name='author' editorType="TEXTBOX" :value="row.author" dataType="TEXT" precision="0" ></app-span>
</template>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('type')"> <template v-if="getColumnState('type')">
<el-table-column show-overflow-tooltip :prop="'type'" :label="$t('entities.ibizbook.rowrules_grid.columns.type')" :width="280" :align="'center'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'type'" :label="$t('entities.ibizbook.rowrules_grid.columns.type')" :width="280" :align="'center'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
...@@ -666,7 +638,7 @@ export default class RowRulesBase extends Vue implements ControlInterface { ...@@ -666,7 +638,7 @@ export default class RowRulesBase extends Vue implements ControlInterface {
* *
* @memberof RowRulesBase * @memberof RowRulesBase
*/ */
public defaultUpdateItems:Array<any> =[,,,,,,]; public defaultUpdateItems:Array<any> =[,,,,,];
/** /**
* 选中行数据 * 选中行数据
...@@ -753,15 +725,6 @@ export default class RowRulesBase extends Vue implements ControlInterface { ...@@ -753,15 +725,6 @@ export default class RowRulesBase extends Vue implements ControlInterface {
isEnableRowEdit: true, isEnableRowEdit: true,
enableCond: 3 , enableCond: 3 ,
}, },
{
name: 'author',
label: '图书作者',
langtag: 'entities.ibizbook.rowrules_grid.columns.author',
show: true,
unit: 'PX',
isEnableRowEdit: true,
enableCond: 3 ,
},
{ {
name: 'type', name: 'type',
label: '图书类型', label: '图书类型',
...@@ -884,7 +847,6 @@ export default class RowRulesBase extends Vue implements ControlInterface { ...@@ -884,7 +847,6 @@ export default class RowRulesBase extends Vue implements ControlInterface {
*/ */
public getGridRowModel(){ public getGridRowModel(){
return { return {
author: new FormItemModel(),
press: new FormItemModel(), press: new FormItemModel(),
ibizbookname: new FormItemModel(), ibizbookname: new FormItemModel(),
price: new FormItemModel(), price: new FormItemModel(),
...@@ -912,16 +874,6 @@ export default class RowRulesBase extends Vue implements ControlInterface { ...@@ -912,16 +874,6 @@ export default class RowRulesBase extends Vue implements ControlInterface {
deName:"booknumber", deName:"booknumber",
}, },
], ],
author:[
{
type:"SIMPLE",
condOP:"ISNOTNULL",
ruleInfo:"",
isKeyCond:false,
isNotMode:false,
deName:"author",
},
],
}; };
/** /**
...@@ -931,11 +883,6 @@ export default class RowRulesBase extends Vue implements ControlInterface { ...@@ -931,11 +883,6 @@ export default class RowRulesBase extends Vue implements ControlInterface {
* @memberof RowRulesBase * @memberof RowRulesBase
*/ */
public rules: any = { public rules: any = {
author: [
{ required: false, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '图书作者 值不能为空', trigger: 'change' },
{ required: false, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '图书作者 值不能为空', trigger: 'blur' },
{validator:(rule:any, value:any, callback:any)=>{return this.verifyDeRules("author",this.deRules,"AND",value).isPast},message: "作者名非空", trigger: 'blur' },
],
press: [ press: [
{ required: false, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '图书出版社 值不能为空', trigger: 'change' }, { required: false, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '图书出版社 值不能为空', trigger: 'change' },
{ required: false, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '图书出版社 值不能为空', trigger: 'blur' }, { required: false, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '图书出版社 值不能为空', trigger: 'blur' },
...@@ -1553,7 +1500,7 @@ export default class RowRulesBase extends Vue implements ControlInterface { ...@@ -1553,7 +1500,7 @@ export default class RowRulesBase extends Vue implements ControlInterface {
* @memberof RowRulesBase * @memberof RowRulesBase
*/ */
public arraySpanMethod({row, column, rowIndex, columnIndex} : any) { public arraySpanMethod({row, column, rowIndex, columnIndex} : any) {
let allColumns:Array<any> = ['ibizbookname','author','type','press','price','booknumber']; let allColumns:Array<any> = ['ibizbookname','type','press','price','booknumber'];
if(row && row.children) { if(row && row.children) {
if(columnIndex == (this.isSingleSelect ? 0:1)) { if(columnIndex == (this.isSingleSelect ? 0:1)) {
return [1, allColumns.length+1]; return [1, allColumns.length+1];
...@@ -1634,7 +1581,6 @@ export default class RowRulesBase extends Vue implements ControlInterface { ...@@ -1634,7 +1581,6 @@ export default class RowRulesBase extends Vue implements ControlInterface {
groupById: Number((i+1)*100), groupById: Number((i+1)*100),
group: group.label, group: group.label,
ibizbookname:'', ibizbookname:'',
author:'',
type:'', type:'',
press:'', press:'',
price:'', price:'',
...@@ -1667,7 +1613,6 @@ export default class RowRulesBase extends Vue implements ControlInterface { ...@@ -1667,7 +1613,6 @@ export default class RowRulesBase extends Vue implements ControlInterface {
groupById: Number((allGroup.length+1)*100), groupById: Number((allGroup.length+1)*100),
group: this.$t('app.gridpage.other'), group: this.$t('app.gridpage.other'),
ibizbookname:'', ibizbookname:'',
author:'',
type:'', type:'',
press:'', press:'',
price:'', price:'',
...@@ -1733,7 +1678,6 @@ export default class RowRulesBase extends Vue implements ControlInterface { ...@@ -1733,7 +1678,6 @@ export default class RowRulesBase extends Vue implements ControlInterface {
groupById: Number((groupIndex+1)*100), groupById: Number((groupIndex+1)*100),
group: group, group: group,
ibizbookname:'', ibizbookname:'',
author:'',
type:'', type:'',
press:'', press:'',
price:'', price:'',
......
...@@ -26,12 +26,6 @@ export default class RowRulesModel { ...@@ -26,12 +26,6 @@ export default class RowRulesModel {
] ]
}else{ }else{
return [ return [
{
name: 'author',
prop: 'author',
dataType: 'TEXT',
isEditable:true
},
{ {
name: 'press', name: 'press',
prop: 'press', prop: 'press',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册