diff --git a/app/view/component/common/dateTimePicker.html b/app/view/component/common/dateTimePicker.html
new file mode 100644
index 0000000..0dfee63
--- /dev/null
+++ b/app/view/component/common/dateTimePicker.html
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/view/component/tpl/formItemListGenerator.html b/app/view/component/tpl/formItemListGenerator.html
index ce1fe6a..d463c11 100644
--- a/app/view/component/tpl/formItemListGenerator.html
+++ b/app/view/component/tpl/formItemListGenerator.html
@@ -55,7 +55,7 @@
style="cursor: move"
dense outlined>
-
{{ index + 1 }}. {{ formItem.statement }}
+
{{ index + 1 }}. {{ formItem.statement }}*
@@ -94,14 +94,53 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -135,6 +174,13 @@
+
+
+ 是否必填
+
+
+
+
@@ -193,38 +239,18 @@ Vue.component("form-item-list-generator", {
},
data: () => ({
componentList: [
- {typeName: '单行文本', type: 'input', statement: '单行文本', property: {}, icon: 'mdi-form-textarea'},
- {typeName: '多行文本', type: 'textarea', statement: '多行文本', property: {}, icon: 'mdi-form-textarea'},
- {
- typeName: '单选',
- type: 'single',
- statement: '单选',
- optionList: [],
- icon: 'mdi-checkbox-marked-circle'
- },
- {
- typeName: '多选',
- type: 'multiple',
- statement: '多选',
- optionList: [],
- icon: 'mdi-checkbox-marked'
- },
+ { typeName: '单行文本', type: 'input', statement: '单行文本', property: {}, icon: 'mdi-form-textarea', isRequire: false },
+ { typeName: '多行文本', type: 'textarea', statement: '多行文本', property: {}, icon: 'mdi-form-textarea', isRequire: false },
+ { typeName: '单选', type: 'single', statement: '单选', optionList: [], icon: 'mdi-checkbox-marked-circle', isRequire: false },
+ { typeName: '多选', type: 'multiple', statement: '多选', optionList: [], icon: 'mdi-checkbox-marked', isRequire: false},
+ { typeName: '数字', type: 'number', statement: '数字', property: {}, icon: 'mdi-numeric', isRequire: false },
+ { typeName: '日期选择器', type: 'date', statement: '日期选择器', property: {}, icon: 'mdi-calendar-range', isRequire: false },
+ { typeName: '日期时间选择器', type: 'time', statement: '日期时间选择器', property: {}, icon: 'mdi-calendar-clock', isRequire: false },
+ { typeName: '上传文件', type: 'file', statement: '上传文件', property: {}, icon: 'mdi-file-account-outline', isRequire: false },
],
tempComponent: null,
-
-
- // 当 needle 是空字符串时,我们应当返回什么值呢?这是一个在面试中很好的问题。
-
- // 对于本题而言,当 needle 是空字符串时我们应当返回 0 。这与 C 语言的 strstr() 以及 Java 的 indexOf() 定义相符。
- // 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
- // `,
- // property: {}, icon: 'mdi-checkbox-marked-circle'
- // },
- // formItemData: {}
- // }
- // ],
selectedFormItemId: null,
- rightPanels: [0, 1, 2, 3, 4],
+ datetime:"2023-12-24 22:23"
}),
computed: {
selectCanvaIndex() {
@@ -303,6 +329,9 @@ Vue.component("form-item-list-generator", {
getFormItemList() {
return this.formItemList;
},
+ setDateTime(data){
+ this.datetime = data
+ }
},
})
diff --git a/app/view/component/workflowEditorDrawer.html b/app/view/component/workflowEditorDrawer.html
index b532720..b7fbc4d 100644
--- a/app/view/component/workflowEditorDrawer.html
+++ b/app/view/component/workflowEditorDrawer.html
@@ -29,7 +29,7 @@
editable
step="2"
>
- 模板设置
+ 表单设置
{{formObj.workflowForm}}
-
+