-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature]: 审批王表单支持时间类型字段,规则与对象中时间类型字段一致 #6781
- Loading branch information
Showing
31 changed files
with
224 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,6 +160,12 @@ | |
display: none; | ||
} | ||
} | ||
|
||
.form-control{ | ||
height: 100%; | ||
min-height: 34px; | ||
} | ||
|
||
} | ||
|
||
.steedosTable-item-add{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/* | ||
* @Author: [email protected] | ||
* @Date: 2023-10-28 15:25:17 | ||
* @LastEditors: baozhoutao@steedos.com | ||
* @LastEditTime: 2023-11-23 13:27:39 | ||
* @LastEditors: 孙浩林 sunhaolin@steedos.com | ||
* @LastEditTime: 2024-04-26 10:45:13 | ||
* @Description: | ||
*/ | ||
if (Meteor.isClient) { | ||
|
@@ -110,6 +110,14 @@ if (Meteor.isClient) { | |
$("[name='"+atts.name+"']").data('value', values); | ||
$("[name='"+atts.name+"']").data('multiple', atts.multiple); | ||
const config = JSON.parse(atts.config || "{}"); | ||
|
||
let data = disabled ? {[atts.name]: values, _display: {}} : {_display: {}}; | ||
let value = values; | ||
if (atts.fieldType === 'time') { // 因为time类型在amis中给value赋值时,在编辑状态下值显示会多8小时,所以这里特殊处理。 | ||
data = {[atts.name]: values, _display: {}}; | ||
value = undefined; | ||
} | ||
|
||
const schema = { | ||
render_engine: 'amis', | ||
name: "steedos-field-"+atts.id, | ||
|
@@ -123,7 +131,7 @@ if (Meteor.isClient) { | |
"actions": false, | ||
"wrapWithPanel": false, | ||
id: 'steedosField_' + atts.id, | ||
data: disabled ? {[atts.name]: values, _display: {}} : {_display: {}}, | ||
data: data, | ||
body: [ | ||
{ | ||
type: 'steedos-field', | ||
|
@@ -137,7 +145,7 @@ if (Meteor.isClient) { | |
reference_to_field: atts.reference_to_field, | ||
filters: _.isString(atts.filters) ? JSON.parse(atts.filters) : atts.filters, | ||
amis: { | ||
value: values, | ||
value: value, | ||
static: disabled, | ||
disabled: disabled, | ||
disabledOn: undefined | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.