eoss 0.1.0-alpha.44 → 0.1.0-alpha.46
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/lib/button-group.js +11 -9
- package/lib/button.js +5 -3
- package/lib/cascader.js +3 -3
- package/lib/color-picker.js +6 -3
- package/lib/data-table.js +60 -23
- package/lib/date-picker.js +5 -3
- package/lib/eoss.common.js +748 -332
- package/lib/flow.js +7 -9
- package/lib/form-editor.js +2 -3
- package/lib/index.js +1 -1
- package/lib/input-number.js +6 -2
- package/lib/input.js +148 -87
- package/lib/select.js +237 -15
- package/lib/selector.js +16 -4
- package/lib/switch.js +6 -3
- package/lib/table-column.js +49 -68
- package/lib/table.js +111 -90
- package/lib/tag.js +2 -0
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/icons.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/table-column.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/theme-chalk/tag.css +1 -1
- package/lib/time-picker.js +5 -3
- package/lib/time-select.js +5 -3
- package/lib/tree.js +17 -7
- package/lib/upload.js +85 -8
- package/package.json +1 -1
- package/packages/button/src/button-group.vue +9 -7
- package/packages/button/src/button.vue +7 -5
- package/packages/cascader/src/cascader.vue +1 -1
- package/packages/color-picker/src/color-picker.vue +4 -1
- package/packages/data-table/src/data-table.vue +32 -7
- package/packages/date-picker/src/picker.vue +3 -1
- package/packages/flow/src/selectUser.vue +12 -18
- package/packages/form-editor/src/form-editor.vue +0 -1
- package/packages/input/src/input.vue +94 -60
- package/packages/input-number/src/input-number.vue +5 -1
- package/packages/select/src/select.vue +208 -13
- package/packages/selector/src/selector.vue +10 -1
- package/packages/switch/src/switch.vue +4 -1
- package/packages/table/src/store/index.js +10 -1
- package/packages/table/src/table-column.js +7 -1
- package/packages/table/src/table-header.js +52 -7
- package/packages/table/src/util.js +35 -60
- package/packages/tag/src/tag.vue +2 -0
- package/packages/theme-chalk/src/base.scss +7 -0
- package/packages/theme-chalk/src/icons.scss +13 -1
- package/packages/theme-chalk/src/table.scss +18 -2
- package/packages/theme-chalk/src/tag.scss +303 -242
- package/packages/tree/src/tree.vue +13 -3
- package/packages/upload/src/index.vue +43 -8
- package/src/index.js +1 -1
- package/packages/flowOld/index.js +0 -7
- package/packages/flowOld/src/component/Circulate.vue +0 -464
- package/packages/flowOld/src/component/CustomPreset.vue +0 -343
- package/packages/flowOld/src/component/FileList.vue +0 -117
- package/packages/flowOld/src/component/FreeCirculation.vue +0 -278
- package/packages/flowOld/src/component/Preset.vue +0 -283
- package/packages/flowOld/src/component/SendMsg.vue +0 -309
- package/packages/flowOld/src/component/TimeLimit.vue +0 -223
- package/packages/flowOld/src/component/opinions-file.vue +0 -126
- package/packages/flowOld/src/component/opinions.vue +0 -429
- package/packages/flowOld/src/component/taskUnionExamine.vue +0 -832
- package/packages/flowOld/src/form.vue +0 -134
- package/packages/flowOld/src/freeStartFlow.vue +0 -2945
- package/packages/flowOld/src/main.vue +0 -4141
- package/packages/flowOld/src/processForm.vue +0 -1431
- package/packages/flowOld/src/processReject.vue +0 -338
- package/packages/flowOld/src/reset.vue +0 -964
- package/packages/flowOld/src/selectUser.vue +0 -520
- package/packages/flowOld/src/startTaskRead.vue +0 -737
- package/packages/flowOld/src/supervise.vue +0 -197
- package/packages/flowOld/src/table.vue +0 -71
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="es-from" v-loading="loading === true">
|
|
3
|
-
<es-form
|
|
4
|
-
ref="dynamicValidateForm"
|
|
5
|
-
:label-position="labelPosition"
|
|
6
|
-
:model="newData"
|
|
7
|
-
:label-width="labelWidth"
|
|
8
|
-
class="demo-dynamic"
|
|
9
|
-
>
|
|
10
|
-
<es-form-item
|
|
11
|
-
prop="sort"
|
|
12
|
-
label="排序号"
|
|
13
|
-
:rules="[{ required: true, message: `请输入排序号`, trigger: 'blur' }]"
|
|
14
|
-
>
|
|
15
|
-
<es-input
|
|
16
|
-
v-model="newData.sort"
|
|
17
|
-
:placeholder="`请输入入排序号`"
|
|
18
|
-
></es-input>
|
|
19
|
-
</es-form-item>
|
|
20
|
-
<es-form-item
|
|
21
|
-
prop="content"
|
|
22
|
-
label="内容"
|
|
23
|
-
:rules="[{ required: true, message: `请输入内容`, trigger: 'blur' }]"
|
|
24
|
-
>
|
|
25
|
-
<es-input
|
|
26
|
-
v-model="newData.content"
|
|
27
|
-
type="textarea"
|
|
28
|
-
:rows="3"
|
|
29
|
-
:placeholder="`请输入内容`"
|
|
30
|
-
></es-input>
|
|
31
|
-
</es-form-item>
|
|
32
|
-
<!-- <es-form-item> -->
|
|
33
|
-
<!-- </es-form-item> -->
|
|
34
|
-
</es-form>
|
|
35
|
-
<div style="text-align: right">
|
|
36
|
-
<es-button
|
|
37
|
-
v-show="showSubBtn"
|
|
38
|
-
type="primary"
|
|
39
|
-
size="small"
|
|
40
|
-
@click="submitForm('dynamicValidateForm')"
|
|
41
|
-
>
|
|
42
|
-
保存
|
|
43
|
-
</es-button>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</template>
|
|
47
|
-
|
|
48
|
-
<script>
|
|
49
|
-
import { addCommonOpion, editCommonOpion } from 'eoss/src/config/api';
|
|
50
|
-
import { ajax } from 'eoss/src/utils/ajax';
|
|
51
|
-
import EsButton from 'eoss/packages/button';
|
|
52
|
-
import EsForm from 'eoss/packages/form';
|
|
53
|
-
import EsFormItem from 'eoss/packages/form-item';
|
|
54
|
-
import EsInput from 'eoss/packages/input';
|
|
55
|
-
import Message from 'eoss/packages/message';
|
|
56
|
-
export default {
|
|
57
|
-
name: 'ideas',
|
|
58
|
-
componentName: 'ideas',
|
|
59
|
-
components: { EsButton, EsForm, EsFormItem, EsInput },
|
|
60
|
-
|
|
61
|
-
props: {
|
|
62
|
-
/**
|
|
63
|
-
* 数据
|
|
64
|
-
*/
|
|
65
|
-
data: {
|
|
66
|
-
type: Object,
|
|
67
|
-
default: () => {}
|
|
68
|
-
},
|
|
69
|
-
/**
|
|
70
|
-
* 表单标题宽度
|
|
71
|
-
*/
|
|
72
|
-
labelWidth: {
|
|
73
|
-
type: String,
|
|
74
|
-
default: '100px'
|
|
75
|
-
},
|
|
76
|
-
/**
|
|
77
|
-
* 是否展示保存按钮
|
|
78
|
-
*/
|
|
79
|
-
showSubBtn: {
|
|
80
|
-
type: Boolean,
|
|
81
|
-
default: true
|
|
82
|
-
},
|
|
83
|
-
/**
|
|
84
|
-
* 表单标题对齐方式
|
|
85
|
-
*/
|
|
86
|
-
labelPosition: {
|
|
87
|
-
type: String,
|
|
88
|
-
default: 'left'
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
data() {
|
|
92
|
-
return {
|
|
93
|
-
formList: [],
|
|
94
|
-
loading: false,
|
|
95
|
-
newData: {},
|
|
96
|
-
index: 0
|
|
97
|
-
};
|
|
98
|
-
},
|
|
99
|
-
mounted() {
|
|
100
|
-
this.data.id ? this.add(this.data.id) : this.add();
|
|
101
|
-
},
|
|
102
|
-
methods: {
|
|
103
|
-
add(id) {
|
|
104
|
-
this.loading = true;
|
|
105
|
-
ajax({
|
|
106
|
-
url: id ? editCommonOpion : addCommonOpion,
|
|
107
|
-
params: { id }
|
|
108
|
-
})
|
|
109
|
-
.then((res) => {
|
|
110
|
-
const { status, message, data } = res;
|
|
111
|
-
if (status == 'success') {
|
|
112
|
-
this.newData = data.bean;
|
|
113
|
-
} else {
|
|
114
|
-
Message.error(message || '系统错误,请联系管理员!');
|
|
115
|
-
}
|
|
116
|
-
this.loading = false;
|
|
117
|
-
})
|
|
118
|
-
.catch((err) => {
|
|
119
|
-
this.loading = false;
|
|
120
|
-
});
|
|
121
|
-
},
|
|
122
|
-
submitForm(formName) {
|
|
123
|
-
this.$refs[formName].validate((valid) => {
|
|
124
|
-
if (valid) {
|
|
125
|
-
this.$emit('subMit', { addVisible: false, data: this.newData });
|
|
126
|
-
this.$emit('sub-mit', { addVisible: false, data: this.newData });
|
|
127
|
-
} else {
|
|
128
|
-
return false;
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
</script>
|