vue2-client 1.9.75 → 1.9.77
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
|
@@ -311,11 +311,11 @@ export default {
|
|
|
311
311
|
<style lang="less" scoped>
|
|
312
312
|
.hide-page-numbers /deep/ .ant-pagination-item,
|
|
313
313
|
.hide-page-numbers /deep/ .ant-pagination-jump-next {
|
|
314
|
-
display: none; /* 隐藏数字页码和多页跳转 */
|
|
314
|
+
display: none !important; /* 隐藏数字页码和多页跳转 */
|
|
315
315
|
}
|
|
316
316
|
.hide-page-numbers /deep/ .ant-pagination-prev,
|
|
317
317
|
.hide-page-numbers /deep/ .ant-pagination-next {
|
|
318
|
-
display: inline-block; /* 保留左右跳转按钮 */
|
|
318
|
+
display: inline-block !important; /* 保留左右跳转按钮 */
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
.XCard {
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
<a-divider type="vertical"/>
|
|
63
63
|
</template>
|
|
64
64
|
<a-button
|
|
65
|
-
v-
|
|
65
|
+
v-if="!simpleMode"
|
|
66
66
|
htmlType="submit"
|
|
67
67
|
type="primary"
|
|
68
68
|
@click="onSubmit">
|
|
69
69
|
<a-icon :style="iconStyle" type="search"/>查询
|
|
70
70
|
</a-button>
|
|
71
|
-
<a-button v-
|
|
71
|
+
<a-button v-if="!simpleMode" style="margin-left: 8px" @click="resetForm">重置</a-button>
|
|
72
72
|
<slot></slot>
|
|
73
73
|
</span>
|
|
74
74
|
</a-col>
|
|
@@ -85,13 +85,13 @@ export default {
|
|
|
85
85
|
* @param businessType 新增还是修改
|
|
86
86
|
*/
|
|
87
87
|
init ({
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
groups,
|
|
89
|
+
modifyModelData = {},
|
|
90
|
+
serviceName = process.env.VUE_APP_SYSTEM_NAME,
|
|
91
|
+
env = 'prod',
|
|
92
|
+
showLeftTab = false,
|
|
93
|
+
businessType = '新增'
|
|
94
|
+
}) {
|
|
95
95
|
Object.assign(this, { groups, modifyModelData, serviceName, env, showLeftTab, businessType })
|
|
96
96
|
this.initView()
|
|
97
97
|
this.$nextTick(() => {
|
|
@@ -170,8 +170,15 @@ export default {
|
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
// xfromitem 一路传递上来的事件
|
|
173
|
-
emitFunc (func, data) {
|
|
174
|
-
|
|
173
|
+
emitFunc (func, data, index) {
|
|
174
|
+
let value = null
|
|
175
|
+
try {
|
|
176
|
+
if (data && data.model && this.$refs[`nativeForm-${index}`]) {
|
|
177
|
+
value = this.$refs[`nativeForm-${index}`]?.form[data.model]
|
|
178
|
+
}
|
|
179
|
+
this.$emit(func, data, value)
|
|
180
|
+
} catch (error) { console.error(error) }
|
|
181
|
+
this.$emit('x-form-item-emit-func', func, data, value)
|
|
175
182
|
},
|
|
176
183
|
// 提交表单
|
|
177
184
|
asyncSubmit () {
|