meixioacomponent 2.0.32 → 2.0.33
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/components/index.d.ts +4 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +12 -2
- package/lib/config/componentConfig.js +1 -1
- package/lib/config/use/UseImg.d.ts.map +1 -1
- package/lib/config/use/UseImg.js +2 -0
- package/lib/config/use/{useWait.d.ts → UseWait.d.ts} +1 -1
- package/lib/config/use/UseWait.d.ts.map +1 -0
- package/lib/config/use/useConfirm/UseConfirm.d.ts +7 -0
- package/lib/config/use/useConfirm/UseConfirm.d.ts.map +1 -0
- package/lib/config/use/useConfirm/UseConfirm.js +33 -0
- package/lib/config/use/useConfirm/UseNotify.d.ts +7 -0
- package/lib/config/use/useConfirm/UseNotify.d.ts.map +1 -0
- package/lib/config/use/useConfirm/UseNotify.js +18 -0
- package/lib/config/use/useConfirm/executeConfirm.d.ts +3 -0
- package/lib/config/use/useConfirm/executeConfirm.d.ts.map +1 -0
- package/lib/config/use/useConfirm/executeConfirm.js +11 -0
- package/lib/config/use/useConfirm/registerConfirm.d.ts +5 -0
- package/lib/config/use/useConfirm/registerConfirm.d.ts.map +1 -0
- package/lib/config/use/useConfirm/registerConfirm.js +8 -0
- package/lib/meixioacomponent.common.js +703 -407
- package/lib/meixioacomponent.umd.js +701 -405
- package/lib/meixioacomponent.umd.min.js +2 -2
- package/lib/style/tableStyle.less +7 -14
- package/lib/style/tdesignStyle.less +5 -2
- package/lib/typings/type.d.ts +11 -0
- package/lib/typings/type.d.ts.map +1 -1
- package/package.json +1 -1
- package/packages/components/base/baseArea/baseArea.vue +17 -6
- package/packages/components/base/baseDialog/index.vue +37 -15
- package/packages/components/base/baseDrawer/index.vue +6 -1
- package/packages/components/base/baseNumberInput/index.vue +52 -18
- package/packages/components/base/basePlainTable/basePlainTable.vue +40 -21
- package/packages/components/base/basePopoverButton/index.vue +16 -14
- package/packages/components/base/baseSection/baseSection.vue +1 -1
- package/packages/components/base/baseText/index.vue +20 -2
- package/packages/components/base/baseTreeSelect/index.vue +25 -15
- package/packages/components/base/baseUploadTemplate/index.vue +6 -4
- package/packages/components/base/baseWait/index.vue +1 -1
- package/packages/components/index.js +13 -3
- package/packages/components/index.ts +12 -1
- package/packages/components/mixins/tableSectionMixins.js +6 -3
- package/packages/components/proForm/dialogForm/baseDialogForm.vue +19 -19
- package/packages/components/proForm/proForm/proFormItem/pro_form_item.vue +11 -6
- package/packages/components/proForm/proForm/pro_form.vue +13 -18
- package/packages/components/proPageTable/oaProTableSearch/oa_pro_screen_item.vue +2 -2
- package/packages/components/proPageTable/oa_pro_colum_config.vue +2 -4
- package/packages/components/proPageTable/oa_pro_table.vue +27 -9
- package/packages/components/searchHeader/searchHeader.vue +6 -7
- package/packages/components/style/tableStyle.less +7 -14
- package/packages/components/style/tdesignStyle.less +5 -2
- package/packages/config/componentConfig.js +1 -1
- package/packages/config/componentConfig.ts +1 -1
- package/packages/config/use/UseImg.js +3 -1
- package/packages/config/use/UseImg.ts +3 -1
- package/packages/config/use/useConfirm/UseConfirm.js +31 -0
- package/packages/config/use/useConfirm/UseConfirm.ts +35 -0
- package/packages/config/use/useConfirm/UseNotify.js +16 -0
- package/packages/config/use/useConfirm/UseNotify.ts +19 -0
- package/packages/config/use/useConfirm/executeConfirm.js +8 -0
- package/packages/config/use/useConfirm/executeConfirm.ts +6 -0
- package/packages/config/use/useConfirm/registerConfirm.js +8 -0
- package/packages/config/use/useConfirm/registerConfirm.ts +8 -0
- package/packages/typings/type.ts +361 -346
- package/lib/config/use/useWait.d.ts.map +0 -1
- package/packages/components/base/baseComment.zip +0 -0
- package/packages/config/useElement.js +0 -120
- /package/lib/config/use/{useWait.js → UseWait.js} +0 -0
- /package/packages/config/use/{useWait.js → UseWait.js} +0 -0
- /package/packages/config/use/{useWait.ts → UseWait.ts} +0 -0
|
@@ -6,15 +6,24 @@
|
|
|
6
6
|
:multiple="multiple"
|
|
7
7
|
:keys="{
|
|
8
8
|
value:nodeKey,
|
|
9
|
-
...
|
|
9
|
+
...treeProps
|
|
10
10
|
}"
|
|
11
11
|
:clearable="true"
|
|
12
12
|
:placeholder="placeholder"
|
|
13
13
|
:data="data"
|
|
14
|
+
:size="componentSize"
|
|
15
|
+
:tree-props="{
|
|
16
|
+
expandParent:true,
|
|
17
|
+
expandAll: true,
|
|
18
|
+
expandOnClickNode:true,
|
|
19
|
+
valueMode: onlyLeaf?'onlyLeaf':'all'
|
|
20
|
+
}"
|
|
14
21
|
></t-tree-select>
|
|
15
22
|
</template>
|
|
16
23
|
|
|
17
24
|
<script>
|
|
25
|
+
import {TransomComponentSize} from "../../../utils/utils";
|
|
26
|
+
|
|
18
27
|
export default {
|
|
19
28
|
name: 'baseTreeSelect',
|
|
20
29
|
|
|
@@ -48,7 +57,7 @@ export default {
|
|
|
48
57
|
default: 'id',
|
|
49
58
|
},
|
|
50
59
|
// tree的props配置
|
|
51
|
-
|
|
60
|
+
treeProps: {
|
|
52
61
|
type: Object,
|
|
53
62
|
default: function () {
|
|
54
63
|
return {
|
|
@@ -85,34 +94,35 @@ export default {
|
|
|
85
94
|
size: {
|
|
86
95
|
type: String,
|
|
87
96
|
default: 'mini'
|
|
97
|
+
},
|
|
98
|
+
onlyLeaf: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: true
|
|
88
101
|
}
|
|
89
102
|
},
|
|
90
103
|
computed: {
|
|
91
104
|
label() {
|
|
92
105
|
return this.$props.props.label
|
|
93
106
|
},
|
|
94
|
-
module:{
|
|
95
|
-
set(val){
|
|
96
|
-
this.$emit('input',val);
|
|
107
|
+
module: {
|
|
108
|
+
set(val) {
|
|
109
|
+
this.$emit('input', val);
|
|
97
110
|
},
|
|
98
|
-
get(){
|
|
111
|
+
get() {
|
|
99
112
|
return this.$props.value
|
|
100
113
|
}
|
|
114
|
+
},
|
|
115
|
+
componentSize(){
|
|
116
|
+
return TransomComponentSize(this.$props.size);
|
|
101
117
|
}
|
|
102
118
|
},
|
|
103
|
-
methods: {
|
|
104
|
-
|
|
105
|
-
},
|
|
119
|
+
methods: {},
|
|
106
120
|
watch: {
|
|
107
121
|
value: function (val) {
|
|
108
|
-
|
|
109
|
-
this.init(val)
|
|
110
|
-
}
|
|
122
|
+
|
|
111
123
|
},
|
|
112
124
|
data: function (val) {
|
|
113
|
-
|
|
114
|
-
this.init(this.value)
|
|
115
|
-
}
|
|
125
|
+
|
|
116
126
|
},
|
|
117
127
|
},
|
|
118
128
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:isDestroy="true"
|
|
8
8
|
:modal="true"
|
|
9
9
|
:title="`批量上传`"
|
|
10
|
-
:width="`
|
|
10
|
+
:width="`700px`"
|
|
11
11
|
@destroy="destroy"
|
|
12
12
|
>
|
|
13
13
|
<div slot="dialog-content" class="dialog-content">
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
v-model="fileName"
|
|
43
43
|
:disabled="true"
|
|
44
44
|
size="small"
|
|
45
|
-
style="margin-right: var(--margin-4);"
|
|
45
|
+
style="width: fit-content;margin-right: var(--margin-4);"
|
|
46
46
|
></t-input>
|
|
47
|
-
<base-button size="mini" type="primary" @click="onHandleFile">
|
|
47
|
+
<base-button style="width: fit-content" size="mini" type="primary" @click="onHandleFile">
|
|
48
48
|
选择文件
|
|
49
49
|
</base-button>
|
|
50
50
|
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
<base-button-handle
|
|
89
89
|
slot="dialog-footer"
|
|
90
90
|
:config="buttonConfig"
|
|
91
|
-
:size="`
|
|
91
|
+
:size="`small`"
|
|
92
92
|
></base-button-handle>
|
|
93
93
|
</base-dialog>
|
|
94
94
|
</template>
|
|
@@ -169,6 +169,7 @@ export default {
|
|
|
169
169
|
{
|
|
170
170
|
type: 'info',
|
|
171
171
|
text: '取消',
|
|
172
|
+
icon: 'close',
|
|
172
173
|
disabled: this.stepActive == 1 ? true : false,
|
|
173
174
|
click: () => {
|
|
174
175
|
this.$refs.dialog.closeDialog()
|
|
@@ -176,6 +177,7 @@ export default {
|
|
|
176
177
|
},
|
|
177
178
|
{
|
|
178
179
|
type: 'primary',
|
|
180
|
+
icon: 'check',
|
|
179
181
|
disabled: this.stepActive == 1 || !this.fileName ? true : false,
|
|
180
182
|
text: this.stepActive == 0 ? '导入文件' : '确定',
|
|
181
183
|
click: () => {
|
|
@@ -58,7 +58,7 @@ var componentConfig_1 = require("../config/componentConfig");
|
|
|
58
58
|
var DynamicMountClass_1 = require("./dynamicmount/DynamicMountClass");
|
|
59
59
|
var SelectStore_1 = require("../config/selectStore/SelectStore");
|
|
60
60
|
//
|
|
61
|
-
var
|
|
61
|
+
var UseWait_1 = require("../config/use/UseWait");
|
|
62
62
|
var UseImg_1 = require("../config/use/UseImg");
|
|
63
63
|
var useDrag_1 = require("../config/use/useDrag");
|
|
64
64
|
var UseResize_1 = require("../config/use/UseResize");
|
|
@@ -72,6 +72,9 @@ require("tdesign-vue/es/style/index.css");
|
|
|
72
72
|
//组件库type类型
|
|
73
73
|
var useType_1 = require("../useType/useType");
|
|
74
74
|
var ProTableLocalConfigManage_1 = require("../config/ProTableLocalConfigManage/ProTableLocalConfigManage");
|
|
75
|
+
var executeConfirm_1 = require("../config/use/useConfirm/executeConfirm");
|
|
76
|
+
var registerConfirm_1 = require("../config/use/useConfirm/registerConfirm");
|
|
77
|
+
var UseNotify_1 = require("../config/use/useConfirm/UseNotify");
|
|
75
78
|
var meixicomponents = [
|
|
76
79
|
baseAnchor_1["default"],
|
|
77
80
|
baseAppendix_1["default"],
|
|
@@ -131,6 +134,7 @@ var install = function (Vue) {
|
|
|
131
134
|
});
|
|
132
135
|
Vue.use(dynamicmount_1["default"]);
|
|
133
136
|
Vue.use(vue_cropper_1["default"]);
|
|
137
|
+
Vue.use(registerConfirm_1["default"]);
|
|
134
138
|
window["meixiComponentPlugin"] = {
|
|
135
139
|
SelectStore: SelectStore_1["default"],
|
|
136
140
|
UseDrag: useDrag_1["default"],
|
|
@@ -209,12 +213,18 @@ var meixioacomponent = {
|
|
|
209
213
|
useViewVideo: UseViewVideo_1["default"],
|
|
210
214
|
useGuide: UseGuide_1["default"],
|
|
211
215
|
DynamicMountClass: DynamicMountClass_1["default"],
|
|
212
|
-
useWait:
|
|
216
|
+
useWait: UseWait_1["default"],
|
|
213
217
|
LinkViewClass: LinkViewClass_1["default"],
|
|
214
218
|
//type 类型
|
|
215
219
|
useTableColumnParamsType: useType_1.useTableColumnParamsType,
|
|
216
220
|
useFormItemParamsType: useType_1.useFormItemParamsType,
|
|
217
|
-
useProScreenParamsItem: useType_1.useProScreenParamsItem
|
|
221
|
+
useProScreenParamsItem: useType_1.useProScreenParamsItem,
|
|
222
|
+
useConfirm: function (body, title, options) {
|
|
223
|
+
return (0, executeConfirm_1.executeConfirm)(body, title, options);
|
|
224
|
+
},
|
|
225
|
+
useNotify: function (type, options) {
|
|
226
|
+
return new UseNotify_1["default"]().toMountedConfirm(type, options);
|
|
227
|
+
}
|
|
218
228
|
};
|
|
219
229
|
window["meixioacomponent"] = meixioacomponent;
|
|
220
230
|
exports["default"] = meixioacomponent;
|
|
@@ -57,7 +57,7 @@ import componentConfig from "../config/componentConfig";
|
|
|
57
57
|
import DynamicMountClass from "./dynamicmount/DynamicMountClass";
|
|
58
58
|
import SelectStore from "../config/selectStore/SelectStore";
|
|
59
59
|
//
|
|
60
|
-
import useWait from "../config/use/
|
|
60
|
+
import useWait from "../config/use/UseWait";
|
|
61
61
|
import useImg from "../config/use/UseImg";
|
|
62
62
|
import UseDrag from "../config/use/useDrag";
|
|
63
63
|
import UseResize from "../config/use/UseResize";
|
|
@@ -73,6 +73,10 @@ import 'tdesign-vue/es/style/index.css';
|
|
|
73
73
|
//组件库type类型
|
|
74
74
|
import {useFormItemParamsType, useProScreenParamsItem, useTableColumnParamsType,} from "../useType/useType";
|
|
75
75
|
import proTableLocalConfigManage from "../config/ProTableLocalConfigManage/ProTableLocalConfigManage";
|
|
76
|
+
import {TypeByConfirmOptions, TypeByNotifyOptions, TypeByTheme} from "../typings/type";
|
|
77
|
+
import {executeConfirm} from "../config/use/useConfirm/executeConfirm";
|
|
78
|
+
import registerConfirm from "../config/use/useConfirm/registerConfirm";
|
|
79
|
+
import UseNotify from "../config/use/useConfirm/UseNotify";
|
|
76
80
|
|
|
77
81
|
|
|
78
82
|
const meixicomponents: any[] = [
|
|
@@ -136,6 +140,7 @@ const install = (Vue) => {
|
|
|
136
140
|
|
|
137
141
|
Vue.use(DynamicMount);
|
|
138
142
|
Vue.use(VueCropper);
|
|
143
|
+
Vue.use(registerConfirm);
|
|
139
144
|
window[`meixiComponentPlugin`] = {
|
|
140
145
|
SelectStore: SelectStore,
|
|
141
146
|
UseDrag: UseDrag,
|
|
@@ -223,6 +228,12 @@ const meixioacomponent = {
|
|
|
223
228
|
useTableColumnParamsType,
|
|
224
229
|
useFormItemParamsType,
|
|
225
230
|
useProScreenParamsItem,
|
|
231
|
+
useConfirm: (body: string, title: string, options: TypeByConfirmOptions) => {
|
|
232
|
+
return executeConfirm(body, title, options);
|
|
233
|
+
},
|
|
234
|
+
useNotify: (type: TypeByTheme, options: TypeByNotifyOptions) => {
|
|
235
|
+
return new UseNotify().toMountedConfirm(type, options)
|
|
236
|
+
}
|
|
226
237
|
};
|
|
227
238
|
|
|
228
239
|
window[`meixioacomponent`] = meixioacomponent;
|
|
@@ -58,9 +58,10 @@ export const tableSectionMixins = {
|
|
|
58
58
|
onTableDataChange(tableData) {
|
|
59
59
|
const {rowKey} = this;
|
|
60
60
|
let value = null;
|
|
61
|
-
|
|
61
|
+
const name = this.name
|
|
62
|
+
if (name === "baseProTable") {
|
|
62
63
|
value = this.$props.tableCheckboxConfig.value || []
|
|
63
|
-
} else if (
|
|
64
|
+
} else if (name === "basePlainTable") {
|
|
64
65
|
value = this.checkValue || []
|
|
65
66
|
}
|
|
66
67
|
|
|
@@ -76,7 +77,9 @@ export const tableSectionMixins = {
|
|
|
76
77
|
}
|
|
77
78
|
})
|
|
78
79
|
if (index > -1) {
|
|
79
|
-
|
|
80
|
+
if(name==='baseProTable'){
|
|
81
|
+
this.$refs.elTable.toggleRowSelection(tableData[index], true);
|
|
82
|
+
}
|
|
80
83
|
}
|
|
81
84
|
})
|
|
82
85
|
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
<script>
|
|
74
74
|
import pro_formVue from '../proForm/pro_form.vue'
|
|
75
75
|
import baseButtonHandleVue from '../../base/baseButtonHandle/baseButtonHandle.vue'
|
|
76
|
+
import UseConfirm from "../../../config/use/useConfirm/UseConfirm";
|
|
76
77
|
|
|
77
78
|
export default {
|
|
78
79
|
name: 'baseDialogForm',
|
|
@@ -174,9 +175,11 @@ export default {
|
|
|
174
175
|
default: '加载中,请稍后。。。'
|
|
175
176
|
},
|
|
176
177
|
hasIconClose: {
|
|
177
|
-
|
|
178
178
|
type: Boolean, default: true,
|
|
179
|
-
|
|
179
|
+
},
|
|
180
|
+
noticeText: {
|
|
181
|
+
type: String,
|
|
182
|
+
default: '是否关闭该弹窗'
|
|
180
183
|
}
|
|
181
184
|
},
|
|
182
185
|
components: {
|
|
@@ -286,23 +289,20 @@ export default {
|
|
|
286
289
|
},
|
|
287
290
|
|
|
288
291
|
beforeClose(done) {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
confirmDia.destroy();
|
|
304
|
-
},
|
|
305
|
-
});
|
|
292
|
+
|
|
293
|
+
new UseConfirm().toMountedConfirm(this.$props.noticeText, '关闭对话框', {
|
|
294
|
+
cancelButtonText: '取消',
|
|
295
|
+
confirmButtonText: '确定'
|
|
296
|
+
}).then(() => {
|
|
297
|
+
if (done) {
|
|
298
|
+
done();
|
|
299
|
+
} else {
|
|
300
|
+
this.$refs.dialog.closeDialog();
|
|
301
|
+
}
|
|
302
|
+
}).catch(() => {
|
|
303
|
+
|
|
304
|
+
})
|
|
305
|
+
|
|
306
306
|
|
|
307
307
|
}
|
|
308
308
|
},
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
:maxlength="config.maxlength"
|
|
79
79
|
:min="config.min"
|
|
80
80
|
:placeholder="config.placeholder"
|
|
81
|
-
:size="
|
|
81
|
+
:size="size"
|
|
82
82
|
:style="{width:`${config.width? `${config.width}px`:'100%'}`}"
|
|
83
83
|
:unit="config.unit"
|
|
84
84
|
:use-string="true"
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
:maxlength="config.maxlength"
|
|
96
96
|
:min="config.min"
|
|
97
97
|
:placeholder="config.placeholder"
|
|
98
|
-
:size="
|
|
98
|
+
:size="size"
|
|
99
99
|
:style="{width:`${config.width? `${config.width}px`:'100%'}`}"
|
|
100
100
|
:unit="config.unit"
|
|
101
101
|
></BaseNumberInput>
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
:min="config.min"
|
|
113
113
|
:placeholder="config.placeholder"
|
|
114
114
|
:precision="2"
|
|
115
|
-
:size="
|
|
115
|
+
:size="size"
|
|
116
116
|
:style="{width:`${config.width? `${config.width}px`:'100%'}`}"
|
|
117
117
|
:unit="config.unit"
|
|
118
118
|
></BaseNumberInput>
|
|
@@ -143,6 +143,7 @@
|
|
|
143
143
|
:clearable="true"
|
|
144
144
|
:size="componentSize"
|
|
145
145
|
:disabled="isDisabled"
|
|
146
|
+
:presets="config.presets"
|
|
146
147
|
style="width: 100%;height: 100%"
|
|
147
148
|
value-type="time-stamp"
|
|
148
149
|
/>
|
|
@@ -155,6 +156,7 @@
|
|
|
155
156
|
:clearable="true"
|
|
156
157
|
:size="componentSize"
|
|
157
158
|
:disabled="isDisabled"
|
|
159
|
+
:presets="config.presets"
|
|
158
160
|
style="width: 100%;height: 100%"
|
|
159
161
|
value-type="time-stamp"
|
|
160
162
|
/>
|
|
@@ -166,6 +168,7 @@
|
|
|
166
168
|
:disabled="isDisabled"
|
|
167
169
|
:placeholder="datePickPlace"
|
|
168
170
|
style="width: 100%;height: 100%"
|
|
171
|
+
:presets="config.presets"
|
|
169
172
|
value-type="time-stamp"
|
|
170
173
|
/>
|
|
171
174
|
|
|
@@ -178,11 +181,12 @@
|
|
|
178
181
|
:disabled="isDisabled"
|
|
179
182
|
:placeholder="datePickPlace"
|
|
180
183
|
style="width: 100%;height: 100%"
|
|
184
|
+
:presets="config.presets"
|
|
181
185
|
value-type="time-stamp"
|
|
182
186
|
/>
|
|
183
187
|
|
|
184
188
|
<!-- 单选框 -->
|
|
185
|
-
<base-toggle v-if="config.type === 'radio'" v-model="module" :disabled="isDisabled" :size="
|
|
189
|
+
<base-toggle v-if="config.type === 'radio'" v-model="module" :disabled="isDisabled" :size="size"
|
|
186
190
|
:toggle-color="['var(--color-primary)']"
|
|
187
191
|
:toggle-list="config.list"></base-toggle>
|
|
188
192
|
<!-- 选择器 -->
|
|
@@ -515,8 +519,9 @@ export default {
|
|
|
515
519
|
if (value.toString().length <= 10) {
|
|
516
520
|
return value * 1000
|
|
517
521
|
}
|
|
522
|
+
return parseInt(value);
|
|
518
523
|
}
|
|
519
|
-
return
|
|
524
|
+
return null;
|
|
520
525
|
},
|
|
521
526
|
|
|
522
527
|
// 返回daterange的时间戳
|
|
@@ -568,7 +573,7 @@ export default {
|
|
|
568
573
|
align-items: flex-start;
|
|
569
574
|
flex-flow: column nowrap;
|
|
570
575
|
justify-content: flex-start;
|
|
571
|
-
padding: var(--margin-4);
|
|
576
|
+
//padding: var(--margin-4);
|
|
572
577
|
border-radius: calc(var(--radius) * 2);
|
|
573
578
|
|
|
574
579
|
.item-content-wrap {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:style="{
|
|
19
19
|
width: itemWidth,
|
|
20
20
|
}"
|
|
21
|
-
class="pro-form-item-content
|
|
21
|
+
class="pro-form-item-content"
|
|
22
22
|
>
|
|
23
23
|
<t-form-item
|
|
24
24
|
v-if="formType !== 'template'"
|
|
@@ -250,7 +250,6 @@ export default {
|
|
|
250
250
|
|
|
251
251
|
formdata() {
|
|
252
252
|
let obj = {}
|
|
253
|
-
console.log(this.formType);
|
|
254
253
|
this.module.forEach((item) => {
|
|
255
254
|
if (!item.renderHide) {
|
|
256
255
|
try {
|
|
@@ -364,13 +363,14 @@ export default {
|
|
|
364
363
|
},
|
|
365
364
|
// 重置表单的值
|
|
366
365
|
reset() {
|
|
367
|
-
this.$refs.form.
|
|
366
|
+
this.$refs.form.reset()
|
|
368
367
|
},
|
|
369
368
|
|
|
370
369
|
checkValidate() {
|
|
371
370
|
return new Promise(async (resolve, reject) => {
|
|
372
371
|
|
|
373
372
|
const res = await this.$refs.form.validate();
|
|
373
|
+
console.log(res);
|
|
374
374
|
|
|
375
375
|
if (typeof res === 'boolean') {
|
|
376
376
|
if (res) {
|
|
@@ -483,14 +483,12 @@ export default {
|
|
|
483
483
|
width: 100%;
|
|
484
484
|
height: auto;
|
|
485
485
|
|
|
486
|
-
.
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
margin-bottom: 0 !important;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
486
|
+
.pro-form-item-content {
|
|
487
|
+
padding: var(--padding-4);
|
|
488
|
+
box-sizing: border-box;
|
|
489
|
+
}
|
|
493
490
|
|
|
491
|
+
.chunk-1 {
|
|
494
492
|
}
|
|
495
493
|
|
|
496
494
|
.form-line-box {
|
|
@@ -519,8 +517,12 @@ export default {
|
|
|
519
517
|
height: auto;
|
|
520
518
|
display: flex;
|
|
521
519
|
flex-flow: row wrap;
|
|
522
|
-
align-items:
|
|
520
|
+
align-items: flex-start;
|
|
523
521
|
justify-content: flex-start;
|
|
522
|
+
|
|
523
|
+
.t-is-warning {
|
|
524
|
+
margin-bottom: calc(var(--margin-3) * 2);
|
|
525
|
+
}
|
|
524
526
|
}
|
|
525
527
|
|
|
526
528
|
/deep/ .t-form-item {
|
|
@@ -564,14 +566,7 @@ export default {
|
|
|
564
566
|
font-size: var(--font-size-s) !important;
|
|
565
567
|
}
|
|
566
568
|
|
|
567
|
-
/deep/ .el-form-item__label {
|
|
568
|
-
line-height: 24px !important;
|
|
569
|
-
}
|
|
570
569
|
|
|
571
|
-
/deep/ .el-form-item__error {
|
|
572
|
-
line-height: 0;
|
|
573
|
-
padding-top: 0;
|
|
574
|
-
}
|
|
575
570
|
}
|
|
576
571
|
|
|
577
572
|
.item-label-wrap {
|
|
@@ -100,9 +100,9 @@
|
|
|
100
100
|
<close-icon></close-icon>
|
|
101
101
|
</template>
|
|
102
102
|
</t-button>
|
|
103
|
-
<
|
|
103
|
+
<t-checkbox v-model="item.exposed" :disabled="!item.key">
|
|
104
104
|
外露
|
|
105
|
-
</
|
|
105
|
+
</t-checkbox>
|
|
106
106
|
</div>
|
|
107
107
|
</div>
|
|
108
108
|
</div>
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
v-model="popoverFlag"
|
|
4
4
|
button-size="small"
|
|
5
5
|
button-text="表格设置"
|
|
6
|
-
buttonIcon="
|
|
7
|
-
iconClass="element"
|
|
6
|
+
buttonIcon="setting-1"
|
|
8
7
|
style="margin: 0 var(--margin-4)"
|
|
9
8
|
@popoverShow="setDragConfigList"
|
|
10
9
|
>
|
|
@@ -64,8 +63,7 @@
|
|
|
64
63
|
|
|
65
64
|
<script>
|
|
66
65
|
import baseButtonHandle from '../base/baseButtonHandle/baseButtonHandle.vue'
|
|
67
|
-
import
|
|
68
|
-
import {DragMoveIcon} from"tdesign-icons-vue"
|
|
66
|
+
import {DragMoveIcon} from "tdesign-icons-vue"
|
|
69
67
|
|
|
70
68
|
export default {
|
|
71
69
|
name: 'oaProColumConfig',
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
|
|
75
75
|
<t-enhanced-table
|
|
76
76
|
ref="enhancedTableRef"
|
|
77
|
-
row-key="
|
|
77
|
+
:row-key="rowKey"
|
|
78
78
|
:expanded-row-keys="expandRowKeys"
|
|
79
79
|
:columns="showTableHeader"
|
|
80
80
|
:data="tableData"
|
|
@@ -86,15 +86,24 @@
|
|
|
86
86
|
:expandIcon="useExpand"
|
|
87
87
|
table-layout="fixed"
|
|
88
88
|
:height="tableHeight"
|
|
89
|
-
:
|
|
89
|
+
:rowspan-and-colspan='rowspanAndColspan'
|
|
90
90
|
:tree=" treeProps[`children`]? {
|
|
91
91
|
childrenKey: treeProps[`children`],
|
|
92
92
|
checkStrictly: false
|
|
93
93
|
}:null"
|
|
94
94
|
:selected-row-keys="tableCheckboxConfig.value"
|
|
95
95
|
@sort-change="sortChange"
|
|
96
|
+
@expand-change="rehandleExpandChange"
|
|
96
97
|
>
|
|
97
98
|
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
<template #expanded-row="{row}" v-if="expandId">
|
|
103
|
+
<slot name="expandedRow" :scope="row"></slot>
|
|
104
|
+
</template>
|
|
105
|
+
|
|
106
|
+
|
|
98
107
|
<!-- 表格暂无数据 -->
|
|
99
108
|
<template slot="empty">
|
|
100
109
|
<baseDefaultSvgVue
|
|
@@ -276,7 +285,7 @@ export default {
|
|
|
276
285
|
sortBy: null,
|
|
277
286
|
// 是否按照降序进行排序
|
|
278
287
|
descending: false,
|
|
279
|
-
}
|
|
288
|
+
},
|
|
280
289
|
|
|
281
290
|
};
|
|
282
291
|
},
|
|
@@ -494,19 +503,23 @@ export default {
|
|
|
494
503
|
type: String,
|
|
495
504
|
default: ''
|
|
496
505
|
},
|
|
506
|
+
|
|
497
507
|
// 使用序号下标
|
|
498
508
|
useIndex: {
|
|
499
509
|
type: Boolean,
|
|
500
510
|
default: false
|
|
501
511
|
},
|
|
502
|
-
|
|
512
|
+
|
|
513
|
+
expandId:{
|
|
514
|
+
type:String,
|
|
515
|
+
default:null
|
|
516
|
+
},
|
|
517
|
+
rowspanAndColspan: {
|
|
503
518
|
type: Function,
|
|
504
519
|
default: () => {
|
|
505
|
-
return null
|
|
520
|
+
return null
|
|
506
521
|
}
|
|
507
522
|
}
|
|
508
|
-
|
|
509
|
-
|
|
510
523
|
},
|
|
511
524
|
computed: {
|
|
512
525
|
checkType() {
|
|
@@ -617,6 +630,9 @@ export default {
|
|
|
617
630
|
},
|
|
618
631
|
mixins: [tableSectionMixins],
|
|
619
632
|
methods: {
|
|
633
|
+
rehandleExpandChange(value,params){
|
|
634
|
+
this.$emit('rehandleExpandChange',value)
|
|
635
|
+
},
|
|
620
636
|
isToolTip(value) {
|
|
621
637
|
if (!value) {
|
|
622
638
|
return false;
|
|
@@ -887,8 +903,10 @@ export default {
|
|
|
887
903
|
}
|
|
888
904
|
|
|
889
905
|
result[`keyword`] = this.module;
|
|
890
|
-
|
|
891
|
-
|
|
906
|
+
if(this.sort.sortBy){
|
|
907
|
+
result[`sortField`] = this.sort?.sortBy;
|
|
908
|
+
result[`sortOrder`] = this.sort?.descending ? 'desc' : 'asc';
|
|
909
|
+
}
|
|
892
910
|
|
|
893
911
|
// 高级筛选的结果
|
|
894
912
|
const searchList = [];
|
|
@@ -20,18 +20,17 @@
|
|
|
20
20
|
<span class="view-text">筛选:</span>
|
|
21
21
|
<slot name="search-hearch-extend"></slot>
|
|
22
22
|
<t-space :size="4">
|
|
23
|
-
<
|
|
23
|
+
<t-tag
|
|
24
|
+
style="cursor: pointer"
|
|
24
25
|
v-for="(item, index) in searchList.list"
|
|
25
26
|
:key="index"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
size="mini"
|
|
30
|
-
:type="index == searchList.index ? 'primary' : 'info'"
|
|
27
|
+
variant="light"
|
|
28
|
+
size="small"
|
|
29
|
+
:theme="index === searchList.index ? 'primary' : 'default'"
|
|
31
30
|
@click="handleScreen(index)"
|
|
32
31
|
>
|
|
33
32
|
{{ item.label }}
|
|
34
|
-
</
|
|
33
|
+
</t-tag>
|
|
35
34
|
</t-space>
|
|
36
35
|
</div>
|
|
37
36
|
</base-list>
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
2
|
.cell-content-text {
|
|
5
3
|
width: 100%;
|
|
6
4
|
overflow: hidden;
|
|
5
|
+
display: block;
|
|
7
6
|
white-space: nowrap;
|
|
8
7
|
text-overflow: ellipsis;
|
|
9
8
|
font-weight: var(--font-weight-m);
|
|
@@ -26,18 +25,14 @@
|
|
|
26
25
|
color: var(--color-success) !important;
|
|
27
26
|
}
|
|
28
27
|
|
|
29
|
-
/deep/ .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
|
|
30
|
-
background-color: var(--color-gray-s) !important;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
28
|
|
|
34
29
|
.primary,
|
|
35
|
-
.fun
|
|
30
|
+
.fun, .handle-primary {
|
|
36
31
|
color: var(--color-primary) !important;
|
|
37
32
|
font-size: var(--font-size-base) !important;
|
|
38
33
|
}
|
|
39
34
|
|
|
40
|
-
.fun
|
|
35
|
+
.fun, .handle-primary {
|
|
41
36
|
cursor: pointer;
|
|
42
37
|
|
|
43
38
|
&:hover {
|
|
@@ -47,11 +42,9 @@
|
|
|
47
42
|
|
|
48
43
|
|
|
49
44
|
.wait {
|
|
50
|
-
/deep/ .el-table__fixed-header-wrapper {
|
|
51
|
-
z-index: 0 !important;
|
|
52
|
-
}
|
|
53
45
|
|
|
54
|
-
/deep/ .el-table__fixed-body-wrapper {
|
|
55
|
-
z-index: 0 !important;
|
|
56
|
-
}
|
|
57
46
|
}
|
|
47
|
+
|
|
48
|
+
/deep/ .t-table__tree-leaf-node {
|
|
49
|
+
display: flex !important;
|
|
50
|
+
}
|