@zhijiancloud/bpm 0.0.7 → 0.0.9

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.
Files changed (120) hide show
  1. package/dist/bpmArea.umd.js +1 -0
  2. package/dist/bpmAudit.umd.js +1 -1
  3. package/dist/bpmField.umd.js +6 -6
  4. package/dist/bpmFormField.umd.js +6 -6
  5. package/dist/bpmSelect.umd.js +1 -1
  6. package/dist/bpmSelectCheckItem.umd.js +1 -1
  7. package/dist/bpmSelectEntranceForm.umd.js +3 -3
  8. package/dist/bpmSelectFromField.umd.js +1 -1
  9. package/dist/bpmSubForm.umd.js +1 -1
  10. package/dist/bpmText.umd.js +1 -1
  11. package/dist/css/bpmSelectCheckItem.css +1 -1
  12. package/dist/css/bpmSubForm.css +1 -0
  13. package/dist/css/index.css +1 -1
  14. package/dist/index.umd.js +6 -6
  15. package/package.json +3 -4
  16. package/components/.DS_Store +0 -0
  17. package/components/api/batch-loader.js +0 -61
  18. package/components/api/index.js +0 -108
  19. package/components/css/bpmAudit.less +0 -13
  20. package/components/css/bpmMulFile.less +0 -62
  21. package/components/css/bpmSelectCheckItem.less +0 -4
  22. package/components/css/bpmSelectEntranceForm.less +0 -62
  23. package/components/css/bpmSelectFromForm.less +0 -10
  24. package/components/css/bpmSelectFromId.less +0 -33
  25. package/components/css/bpmSelectHouseOwner.less +0 -30
  26. package/components/css/bpmSignature.less +0 -40
  27. package/components/css/bpmText.less +0 -39
  28. package/components/css/common.less +0 -43
  29. package/components/css/demo.less +0 -3
  30. package/components/css/demo2.less +0 -3
  31. package/components/css/index.less +0 -8
  32. package/components/lib/bpmAudit/index.js +0 -7
  33. package/components/lib/bpmAudit/src/main.vue +0 -117
  34. package/components/lib/bpmAudit/src/part/auditor/audit-new.vue +0 -534
  35. package/components/lib/bpmAudit/src/part/auditor/audit-select.vue +0 -127
  36. package/components/lib/bpmAudit/src/part/auditor/audit-with-others.vue +0 -634
  37. package/components/lib/bpmAudit/src/part/auditor.vue +0 -54
  38. package/components/lib/bpmAudit/src/part/editor.vue +0 -318
  39. package/components/lib/bpmAudit/src/part/reader.vue +0 -218
  40. package/components/lib/bpmDateTime/index.js +0 -7
  41. package/components/lib/bpmDateTime/src/main.vue +0 -82
  42. package/components/lib/bpmDateTime/src/part/editor.vue +0 -126
  43. package/components/lib/bpmDateTime/src/part/reader.vue +0 -55
  44. package/components/lib/bpmField/index.js +0 -7
  45. package/components/lib/bpmField/src/main.vue +0 -31
  46. package/components/lib/bpmFieldsFilter/index.js +0 -7
  47. package/components/lib/bpmFieldsFilter/src/main.vue +0 -324
  48. package/components/lib/bpmFormField/index.js +0 -7
  49. package/components/lib/bpmFormField/src/lib/form_mixin.js +0 -818
  50. package/components/lib/bpmFormField/src/lib/mixin.js +0 -245
  51. package/components/lib/bpmFormField/src/main.vue +0 -35
  52. package/components/lib/bpmMulFile/index.js +0 -7
  53. package/components/lib/bpmMulFile/src/main.vue +0 -85
  54. package/components/lib/bpmMulFile/src/part/editor.vue +0 -433
  55. package/components/lib/bpmMulFile/src/part/lib/compressImageUtils.js +0 -226
  56. package/components/lib/bpmMulFile/src/part/lib/utils.js +0 -281
  57. package/components/lib/bpmMulFile/src/part/reader.vue +0 -282
  58. package/components/lib/bpmMulImage/index.js +0 -7
  59. package/components/lib/bpmMulImage/src/main.vue +0 -86
  60. package/components/lib/bpmMulImage/src/part/editor.vue +0 -449
  61. package/components/lib/bpmMulImage/src/part/lib/compressImageUtils.js +0 -226
  62. package/components/lib/bpmMulImage/src/part/lib/utils.js +0 -281
  63. package/components/lib/bpmMulImage/src/part/reader.vue +0 -181
  64. package/components/lib/bpmNumber/index.js +0 -7
  65. package/components/lib/bpmNumber/src/main.vue +0 -83
  66. package/components/lib/bpmNumber/src/part/editor.vue +0 -47
  67. package/components/lib/bpmNumber/src/part/reader.vue +0 -7
  68. package/components/lib/bpmSelect/index.js +0 -7
  69. package/components/lib/bpmSelect/src/main.vue +0 -90
  70. package/components/lib/bpmSelect/src/part/editor.vue +0 -75
  71. package/components/lib/bpmSelect/src/part/reader.vue +0 -53
  72. package/components/lib/bpmSelectCheckItem/index.js +0 -7
  73. package/components/lib/bpmSelectCheckItem/src/main.vue +0 -101
  74. package/components/lib/bpmSelectCheckItem/src/part/editor.vue +0 -103
  75. package/components/lib/bpmSelectCheckItem/src/part/reader.vue +0 -7
  76. package/components/lib/bpmSelectEntranceForm/index.js +0 -7
  77. package/components/lib/bpmSelectEntranceForm/src/main.vue +0 -529
  78. package/components/lib/bpmSelectFromField/index.js +0 -7
  79. package/components/lib/bpmSelectFromField/src/main.vue +0 -98
  80. package/components/lib/bpmSelectFromField/src/part/editor.vue +0 -96
  81. package/components/lib/bpmSelectFromField/src/part/reader.vue +0 -7
  82. package/components/lib/bpmSelectFromForm/index.js +0 -7
  83. package/components/lib/bpmSelectFromForm/src/main.vue +0 -103
  84. package/components/lib/bpmSelectFromForm/src/part/editor.vue +0 -178
  85. package/components/lib/bpmSelectFromForm/src/part/reader.vue +0 -7
  86. package/components/lib/bpmSelectFromId/index.js +0 -7
  87. package/components/lib/bpmSelectFromId/src/main.vue +0 -102
  88. package/components/lib/bpmSelectFromId/src/part/editor.vue +0 -260
  89. package/components/lib/bpmSelectFromId/src/part/reader.vue +0 -7
  90. package/components/lib/bpmSelectHouseOwner/index.js +0 -7
  91. package/components/lib/bpmSelectHouseOwner/src/main.vue +0 -102
  92. package/components/lib/bpmSelectHouseOwner/src/part/editor.vue +0 -101
  93. package/components/lib/bpmSelectHouseOwner/src/part/reader.vue +0 -17
  94. package/components/lib/bpmSelectIssue/index.js +0 -7
  95. package/components/lib/bpmSelectIssue/src/main.vue +0 -180
  96. package/components/lib/bpmSignature/index.js +0 -7
  97. package/components/lib/bpmSignature/src/main.vue +0 -248
  98. package/components/lib/bpmSubForm/index.js +0 -7
  99. package/components/lib/bpmSubForm/src/main.vue +0 -203
  100. package/components/lib/bpmText/index.ts +0 -13
  101. package/components/lib/bpmText/src/main.vue +0 -87
  102. package/components/lib/bpmText/src/part/editor.vue +0 -104
  103. package/components/lib/bpmText/src/part/reader.vue +0 -7
  104. package/components/lib/bpmTime/index.js +0 -7
  105. package/components/lib/bpmTime/src/main.vue +0 -83
  106. package/components/lib/bpmTime/src/part/editor.vue +0 -55
  107. package/components/lib/bpmTime/src/part/reader.vue +0 -24
  108. package/components/lib/demo/index.js +0 -7
  109. package/components/lib/demo/src/main.vue +0 -11
  110. package/components/lib/demo2/index.js +0 -7
  111. package/components/lib/demo2/src/main.vue +0 -11
  112. package/components/lib/field-const.js +0 -472
  113. package/components/lib/index.ts +0 -102
  114. package/components/lib/mixins/RemoteSelectReader.vue +0 -55
  115. package/components/lib/mixins/TextReader.vue +0 -22
  116. package/components/lib/net.js +0 -21
  117. package/components/lib/utils.js +0 -89
  118. package/components/mixins/field_base_mixin.vue +0 -188
  119. package/components/sfc.d.ts +0 -27
  120. package/components/vendor/draw.js +0 -240
@@ -1,96 +0,0 @@
1
- <template>
2
- <div class="bpm-select-edit">
3
- <el-select
4
- :key="isMultiple ? 'two': 'one'"
5
- v-model="curVal"
6
- :placeholder="placeholder"
7
- :multiple="isMultiple"
8
- clearable
9
- filterable
10
- :remote-method="search"
11
- v-bind="$attrs"
12
- v-on="$listeners"
13
- @change="onChange"
14
- >
15
- <el-option
16
- v-for="item in options"
17
- :key="item.value"
18
- :label="item.label"
19
- :value="item.value"
20
- >
21
- </el-option>
22
- </el-select>
23
- </div>
24
- </template>
25
-
26
- <script>
27
- // import _ from "lodash";
28
-
29
- import Vue from "vue";
30
- import { Select, Option } from "element-ui";
31
-
32
- Vue.use(Select);
33
- Vue.use(Option);
34
-
35
- export default {
36
- props: ["value", "fieldConf", "row", "formName", "orgInfo", "isMultiple"],
37
- data() {
38
- return {
39
- curVal: "",
40
- options: []
41
- };
42
- },
43
- watch: {
44
- value() {
45
- this.curVal = this.value;
46
- },
47
- getSelectOptions: function(val) {
48
- console.log("----selectOptions----",val);
49
- this.options = _.map(val,item => {
50
- return {
51
- label:item[0],
52
- value:item[1]
53
- }
54
- });
55
- }
56
- },
57
- inject:["selectOptions"],
58
-
59
- computed: {
60
- placeholder() {
61
- return this.fieldConf.desc || this.fieldConf.name;
62
- },
63
- getSelectOptions() {
64
- return this.selectOptions()
65
- }
66
- },
67
- created () {
68
- this.curVal = this.isMultiple ? [] : ""
69
- },
70
- mounted() {
71
-
72
- //组件可见下,才去拉取下拉框
73
- if(this.fieldConf && this.fieldConf.perm && this.fieldConf.perm.visible){
74
- this.search();
75
- }
76
-
77
- this.curVal = this.value;
78
- },
79
- methods: {
80
-
81
-
82
- async search(query = "") {
83
- let formName = this.formDefId;
84
- let fieldId = this.fieldConf.id;
85
-
86
- this.options = await this.$bpm.searchSelectOpts(fieldId, query, formName, this, true, this.orgInfo)
87
-
88
- },
89
- onChange(curVal){
90
- this.$emit("input", curVal)
91
- this.$emit("change", curVal)
92
- }
93
- },
94
- };
95
- </script>
96
-
@@ -1,7 +0,0 @@
1
-
2
- <script>
3
- import TextReader from "../../../mixins/RemoteSelectReader.vue"
4
- export default {
5
- mixins: [TextReader]
6
- }
7
- </script>
@@ -1,7 +0,0 @@
1
- import BpmSelectFromForm from './src/main.vue'
2
-
3
- BpmSelectFromForm.install = function(Vue) {
4
- Vue.component(BpmSelectFromForm.name , BpmSelectFromForm);
5
- }
6
-
7
- export default BpmSelectFromForm
@@ -1,103 +0,0 @@
1
- <template>
2
- <component
3
- class="bpm-select-from-form"
4
- v-model="curVal"
5
- :is="curComponent"
6
- :fieldConf="fieldConf"
7
- :row="row"
8
- :mode="mode"
9
- :formName="formName"
10
- :orgInfo="orgInfo"
11
- :uiType="uiType"
12
- :isMultiple="isMultiple"
13
- v-bind="$attrs"
14
- v-on="$listeners"
15
- >
16
- </component>
17
- </template>
18
- <script>
19
- import editorComponent from "./part/editor.vue";
20
- import readerComponent from "./part/reader.vue";
21
-
22
- export default {
23
- name: "bpmSelectFromForm",
24
- components: {
25
- editorComponent,
26
- readerComponent
27
- },
28
- props: {
29
- value: {
30
- type: [String, Array],
31
- default(){
32
- return ""
33
- }
34
- },
35
- fieldConf: {
36
- type: Object,
37
- default() {
38
- return {};
39
- },
40
- },
41
- row: {
42
- type: Object,
43
- default() {
44
- return {};
45
- },
46
- },
47
- mode: {
48
- type: String,
49
- default() {
50
- return "view";
51
- },
52
- },
53
- uiType: {
54
- type: String,
55
- default() {
56
- return "default";
57
- },
58
- },
59
- orgInfo: {
60
- type: Object,
61
- },
62
- formName:{
63
- type: String
64
- },
65
- isMultiple: {
66
- type: Boolean,
67
- default() {
68
- return false;
69
- },
70
- }
71
- },
72
- data () {
73
- return {
74
- curVal: ""
75
- }
76
- },
77
- computed: {
78
- curComponent() {
79
- if (this.mode == "view") {
80
- return readerComponent;
81
- } else {
82
- return editorComponent;
83
- }
84
- },
85
- },
86
- watch: {
87
- curVal(val){
88
- this.$emit("input", val)
89
- },
90
- value(){
91
- this.curVal = this.value
92
- },
93
-
94
- },
95
- mounted () {
96
- this.curVal = this.value
97
- }
98
- };
99
- </script>
100
- <style>
101
- @import "../../../css/bpmSelectFromForm.less";
102
- </style>
103
-
@@ -1,178 +0,0 @@
1
- <template>
2
- <div class="select-from-form-editor">
3
- <div @click="toOpen">
4
- <div>{{ label }}</div>
5
- </div>
6
- <el-dialog
7
- :visible.sync="opened"
8
- :before-close="onHide"
9
- @open="onOpen"
10
- :title="fieldConf.name"
11
- :fullscreen="true"
12
- v-bind="$attrs"
13
- v-on="$listeners"
14
- >
15
- <el-input
16
- placeholder="只展示前100条数据,通过搜索获取更多"
17
- v-model="keyword"
18
- class="input-with-select"
19
- @change="debounceSearch"
20
- >
21
- </el-input>
22
- <div class="bpm-select-from-form-box">
23
- <el-checkbox-group v-model="curVal" v-if="isMultiple">
24
- <div class="form-item" v-for="item in formList" :key="item.id">
25
- <div :style="titleStyle">
26
- <el-checkbox
27
- :label="item.id"
28
- :value="item.id"
29
- :disable="!isChecked(item.id) && curVal.length >= maxCount"
30
- >{{ item.title }}</el-checkbox
31
- >
32
- </div>
33
- <div
34
- v-for="field in item.fields"
35
- :key="field.id"
36
- :style="geFieldStyle(field.key)"
37
- >
38
- {{ field.value }}
39
- </div>
40
- </div>
41
- </el-checkbox-group>
42
- <el-radio-group v-model="curVal" v-else>
43
- <div class="form-item" v-for="item in formList" :key="item.id">
44
- <div :style="titleStyle">
45
- <el-radio
46
- :label="item.id"
47
- :value="item.id"
48
- :disable="!isChecked(item.id) && curVal.length >= maxCount"
49
- >{{ item.title }}</el-radio
50
- >
51
- </div>
52
- <div
53
- v-for="field in item.fields"
54
- :key="field.id"
55
- :style="geFieldStyle(field.key)"
56
- >
57
- {{ field.value }}
58
- </div>
59
- </div>
60
- </el-radio-group>
61
- </div>
62
- <span slot="footer" class="dialog-footer">
63
- <el-button type="primary" @click="onSubmit">确 定</el-button>
64
- </span>
65
- </el-dialog>
66
- </div>
67
- </template>
68
- <script>
69
- import Vue from "vue";
70
- import _ from "lodash";
71
- import { Dialog } from "element-ui";
72
- Vue.use(Dialog);
73
- export default {
74
- props: ["value", "fieldConf", "row", "formName", "orgInfo", "isMultiple"],
75
- data() {
76
- return {
77
- curVal: "",
78
- label: "未选择",
79
- keyword: "",
80
- opened: false,
81
- debounceSearch: _.debounce(_.bind(this.search, this), 150, {
82
- trailing: true,
83
- leading: false,
84
- }),
85
- formList: [],
86
- };
87
- },
88
- watch: {
89
- value() {
90
- this.curVal = this.value;
91
- this.loadRemoteLabel()
92
- },
93
- },
94
- computed: {
95
- placeholder() {
96
- return this.fieldConf.desc || this.fieldConf.name;
97
- },
98
- maxCount() {
99
- return _.get(this.fieldConf, "check.max_count");
100
- },
101
- titleStyle() {
102
- let conf = this.fieldConf;
103
- let range_display = _.get(conf, "range_remote.range_display.title");
104
- return {
105
- fontSize: _.get(range_display, "size", 16) + "px",
106
- color: _.get(range_display, "color", "#333"),
107
- };
108
- },
109
- fieldStyleMap() {
110
- let conf = this.fieldConf;
111
- let fieldsStyle = _.get(conf, "range_remote.range_display.fields");
112
- return _.keyBy(fieldsStyle, "field");
113
- },
114
- },
115
- created () {
116
- this.curVal = this.isMultiple ? [] : ""
117
- },
118
- mounted() {
119
- this.curVal = this.value;
120
- this.loadRemoteLabel()
121
- },
122
- methods: {
123
- async search() {
124
- let keyword = this.keyword;
125
- let formName = this.formName;
126
- let fieldId = _.get(this.fieldConf, "id");
127
- let result = await this.$bpm.searchSelectOpts(fieldId, keyword, formName, this, true, this.orgInfo)
128
- let data = _.map(result, (item) => {
129
- return {
130
- title: item.title,
131
- id: item.form_id,
132
- fields: _.map(item.f_fields, (val, key) => {
133
- return {
134
- key,
135
- value: val,
136
- };
137
- }),
138
- };
139
- });
140
- this.formList = data;
141
- },
142
- onHide() {
143
- this.opened = false;
144
- },
145
- onOpen() {
146
- this.search();
147
- },
148
- toOpen() {
149
- this.opened = true;
150
- },
151
- isChecked(val) {
152
- return _.includes(this.curVal, val);
153
- },
154
- onSubmit() {
155
- this.$emit("input", this.curVal);
156
- this.opened = false;
157
- },
158
- async loadRemoteLabel() {
159
- let values = this.value;
160
- let fieldId = _.get(this.fieldConf, "id");
161
-
162
- if (!_.isEmpty(values)) {
163
- values = _.isArray(values) ? values : [values]
164
- this.label = await this.$bpm.fetchLabelByValues(
165
- values,
166
- fieldId,
167
- this.formName,
168
- this.row
169
- );
170
-
171
- }
172
- else{
173
- this.label = "未选择"
174
- }
175
- },
176
- },
177
- };
178
- </script>
@@ -1,7 +0,0 @@
1
-
2
- <script>
3
- import TextReader from "../../../mixins/RemoteSelectReader.vue"
4
- export default {
5
- mixins: [TextReader]
6
- }
7
- </script>
@@ -1,7 +0,0 @@
1
- import BpmSelectFromId from './src/main.vue'
2
-
3
- BpmSelectFromId.install = function(Vue) {
4
- Vue.component(BpmSelectFromId.name , BpmSelectFromId);
5
- }
6
-
7
- export default BpmSelectFromId
@@ -1,102 +0,0 @@
1
- <template>
2
- <component
3
- class="bpm-select-from-id"
4
- v-model="curVal"
5
- :is="curComponent"
6
- :fieldConf="fieldConf"
7
- :row="row"
8
- :mode="mode"
9
- :uiType="uiType"
10
- :orgInfo="orgInfo"
11
- :formName="formName"
12
- :isMultiple="isMultiple"
13
- v-bind="$attrs"
14
- v-on="$listeners"
15
- >
16
- </component>
17
- </template>
18
- <script>
19
- import editorComponent from "./part/editor.vue";
20
- import readerComponent from "./part/reader.vue";
21
-
22
- export default {
23
- name: "bpmSelectFromId",
24
- components: {
25
- editorComponent,
26
- readerComponent
27
- },
28
- props: {
29
- value: {
30
- type: [String, Array],
31
-
32
- },
33
- fieldConf: {
34
- type: Object,
35
- default() {
36
- return {};
37
- },
38
- },
39
- row: {
40
- type: Object,
41
- default() {
42
- return {};
43
- },
44
- },
45
- mode: {
46
- type: String,
47
- default() {
48
- return "view";
49
- },
50
- },
51
- uiType: {
52
- type: String,
53
- default() {
54
- return "default";
55
- },
56
- },
57
- orgInfo: {
58
- type: Object,
59
- },
60
- formName:{
61
- type: String
62
- },
63
- isMultiple: {
64
- type: Boolean,
65
- default() {
66
- return false;
67
- },
68
- }
69
- },
70
- data () {
71
- return {
72
- curVal: ""
73
- }
74
- },
75
- computed: {
76
- curComponent() {
77
- if (this.mode == "view") {
78
- return readerComponent;
79
- } else {
80
- return editorComponent;
81
- }
82
- },
83
- },
84
- watch: {
85
- curVal(val){
86
- this.$emit("input", val)
87
- this.$emit("change", val)
88
- },
89
- value(){
90
- this.curVal = this.value
91
- },
92
-
93
- },
94
- mounted () {
95
- this.curVal = this.value
96
- }
97
- };
98
- </script>
99
-
100
- <style>
101
- @import "../../../css/bpmSelectFromId.less";
102
- </style>