vue2-client 1.16.76 → 1.16.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -507,7 +507,9 @@ export default {
|
|
|
507
507
|
btnName = '提交',
|
|
508
508
|
childTablePriority = false,
|
|
509
509
|
btnPlace = 'center',
|
|
510
|
-
simpleInline = null
|
|
510
|
+
simpleInline = null,
|
|
511
|
+
paramLogicName,
|
|
512
|
+
paramLogicNameParam
|
|
511
513
|
} = params
|
|
512
514
|
this.loaded = false
|
|
513
515
|
// 兼容需要省略 传递 layout: res.xAddFormLayout 可以使用 ...res 展开运算符 直接转递
|
|
@@ -547,6 +549,11 @@ export default {
|
|
|
547
549
|
}
|
|
548
550
|
// 设置普通表单项的相关参数
|
|
549
551
|
const formData = Object.assign({}, fixedAddForm)
|
|
552
|
+
if (paramLogicName) {
|
|
553
|
+
runLogic(paramLogicName, paramLogicNameParam, this.serviceName).then(res => {
|
|
554
|
+
Object.assign(formData, res)
|
|
555
|
+
})
|
|
556
|
+
}
|
|
550
557
|
for (let i = 0; i < this.realJsonData.length; i++) {
|
|
551
558
|
const item = this.realJsonData[i]
|
|
552
559
|
this.setFormProps(formData, item, null)
|
|
@@ -323,9 +323,9 @@ export default {
|
|
|
323
323
|
realTableColumns () {
|
|
324
324
|
return this.tableContext.tableColumns.filter(item => item.slotType !== 'action' || !this.disableAction).map((item) => {
|
|
325
325
|
// todo delete 后台现在也是200 不过要清楚配置缓存 这里是为了让不清缓存也能达到争取的效果
|
|
326
|
-
if (item.slotType === 'date' || item.slotType === 'dateTime') {
|
|
327
|
-
|
|
328
|
-
}
|
|
326
|
+
// if (item.slotType === 'date' || item.slotType === 'dateTime') {
|
|
327
|
+
// item.width = 200
|
|
328
|
+
// }
|
|
329
329
|
if (['ellipsis', 'towDecimal', 'date', 'dateTime', 'fourDecimal', 'int'].includes(item.slotType)) {
|
|
330
330
|
item.ellipsis = true
|
|
331
331
|
}
|
|
@@ -924,6 +924,7 @@ export default {
|
|
|
924
924
|
this.$nextTick(() => {
|
|
925
925
|
this.$refs.xAddForm && this.$refs.xAddForm.init({
|
|
926
926
|
...properties.form,
|
|
927
|
+
paramLogicNameParam: { workflowId: this.workflowId },
|
|
927
928
|
businessType: '修改',
|
|
928
929
|
formItems: this.stepDefine,
|
|
929
930
|
layout: properties.form.xAddFormLayout,
|