提交 25defc75 编写于 作者: Mosher's avatar Mosher

update:更新表格

上级 dbdcceba
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
{{#if item.align}} {{#if item.align}}
align: "{{lowerCase item.align}}", align: "{{lowerCase item.align}}",
{{/if}} {{/if}}
{{#if (eq item.widthUnit 'PX')}} {{#if (eq item.widthUnit 'PX')}}
width: {{item.width}}, width: {{item.width}},
{{else}} {{else if (gt item.width 1)}}
minWidth: {{item.width}}, minWidth: {{item.width}},
{{/if}} {{/if}}
resizable: true, resizable: true,
{{#if (and item.enableLinkView item.linkPSAppView)}} {{#if (and item.enableLinkView item.linkPSAppView)}}
linkView: "{{item.linkPSAppView.codeName}}", linkView: "{{item.linkPSAppView.codeName}}",
......
...@@ -171,7 +171,7 @@ export class GridControl extends MDControl { ...@@ -171,7 +171,7 @@ export class GridControl extends MDControl {
* @param {string} tag * @param {string} tag
* @memberof GridControl * @memberof GridControl
*/ */
public handleGridItemValueChange(rowIndex: number, tag: string, data: any) { private handleGridItemValueChange(rowIndex: number, tag: string, data: any) {
const { items } = toRefs(this.state); const { items } = toRefs(this.state);
if (items.value[rowIndex][tag] !== data) { if (items.value[rowIndex][tag] !== data) {
items.value[rowIndex][tag] = data; items.value[rowIndex][tag] = data;
...@@ -518,7 +518,7 @@ export class GridControl extends MDControl { ...@@ -518,7 +518,7 @@ export class GridControl extends MDControl {
* @protected * @protected
* @memberof MDControl * @memberof MDControl
*/ */
protected async codeListGroupData() { protected async codeListGroupData() {
const { groupField, groupCodeList } = this.state.mdCtrlGroup; const { groupField, groupCodeList } = this.state.mdCtrlGroup;
const { items, context, viewParams, columnsModel } = toRefs(this.state); const { items, context, viewParams, columnsModel } = toRefs(this.state);
if (!groupCodeList || !isExistAndNotEmpty(groupCodeList.codeListTag)) { if (!groupCodeList || !isExistAndNotEmpty(groupCodeList.codeListTag)) {
......
...@@ -65,8 +65,12 @@ export class MDControl extends MainControl { ...@@ -65,8 +65,12 @@ export class MDControl extends MainControl {
let tempViewParams = deepCopy(viewParams ? viewParams : {}); let tempViewParams = deepCopy(viewParams ? viewParams : {});
const { noSort, minorSortDir, minorSortPSDEF } = mdCtrlSort; const { noSort, minorSortDir, minorSortPSDEF } = mdCtrlSort;
let { enablePagingBar, current, pageSize } = mdCtrlPaging; let { enablePagingBar, current, pageSize } = mdCtrlPaging;
if (!noSort && minorSortDir && minorSortPSDEF) { if (!noSort) {
Object.assign(tempViewParams, { sort: `${minorSortPSDEF},${minorSortDir}` }); if (arg && arg.sort) {
Object.assign(tempViewParams, { sort: arg.sort });
} else if (minorSortDir && minorSortPSDEF) {
Object.assign(tempViewParams, { sort: `${minorSortPSDEF},${minorSortDir}` });
}
} }
if (enablePagingBar) { if (enablePagingBar) {
Object.assign(tempViewParams, { page: current - 1, size: pageSize }); Object.assign(tempViewParams, { page: current - 1, size: pageSize });
......
...@@ -10,8 +10,8 @@ body{ ...@@ -10,8 +10,8 @@ body{
// 滚动条样式 // 滚动条样式
::-webkit-scrollbar { ::-webkit-scrollbar {
background: transparent; background: transparent;
width: 4px; width: 6px;
height: 4px; height: 6px;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
......
...@@ -161,14 +161,14 @@ export const ctrlState = { ...@@ -161,14 +161,14 @@ export const ctrlState = {
rules:{ rules:{
{{#each ctrl.psDEGridEditItemVRs as | ruleItem |}} {{#each ctrl.psDEGridEditItemVRs as | ruleItem |}}
{{#if (eq ruleItem.valueRuleType 'SYSVALUERULE')}} {{#if (eq ruleItem.valueRuleType 'SYSVALUERULE')}}
{{ruleItem.psDEGridEditItemName}}: [ {{ruleItem.psDEGridEditItemName}}: [
{ {
trigger: ['change', 'blur'], trigger: ['change', 'blur'],
{{#eq ruleItem.psSysValueRule.ruleType 'REG'}} {{#eq ruleItem.psSysValueRule.ruleType 'REG'}}
pattern: /{{ruleItem.psSysValueRule.regExCode}}/, pattern: /{{ruleItem.psSysValueRule.regExCode}}/,
{{/eq}} {{/eq}}
message:'{{ruleItem.psSysValueRule.ruleInfo}}' message:'{{ruleItem.psSysValueRule.ruleInfo}}'
}], }],
{{/if}} {{/if}}
{{/each}} {{/each}}
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册