|
@@ -86,39 +86,39 @@
|
|
|
|
|
|
<!-- P0到P8频次列插槽 -->
|
|
|
<template slot="P0" slot-scope="text, row">
|
|
|
- <a-input v-model.trim="row.P0" :maxLength="50" :placeholder="$t('global-btn.please-enter')"></a-input>
|
|
|
+ <a-input-number v-model.trim="row.P0" :min="0" :placeholder="$t('global-btn.please-enter')" @change="flushAll"></a-input-number>
|
|
|
</template>
|
|
|
|
|
|
<template slot="P1" slot-scope="text, row">
|
|
|
- <a-input v-model.trim="row.P1" :maxLength="50" :placeholder="$t('global-btn.please-enter')"></a-input>
|
|
|
+ <a-input-number v-model.trim="row.P1" :min="0" :placeholder="$t('global-btn.please-enter')" @change="flushAll"></a-input-number>
|
|
|
</template>
|
|
|
|
|
|
<template slot="P2" slot-scope="text, row">
|
|
|
- <a-input v-model.trim="row.P2" :maxLength="50" :placeholder="$t('global-btn.please-enter')"></a-input>
|
|
|
+ <a-input-number v-model.trim="row.P2" :min="0" :placeholder="$t('global-btn.please-enter')" @change="flushAll"></a-input-number>
|
|
|
</template>
|
|
|
|
|
|
<template slot="P3" slot-scope="text, row">
|
|
|
- <a-input v-model.trim="row.P3" :maxLength="50" :placeholder="$t('global-btn.please-enter')"></a-input>
|
|
|
+ <a-input-number v-model.trim="row.P3" :min="0" :placeholder="$t('global-btn.please-enter')" @change="flushAll"></a-input-number>
|
|
|
</template>
|
|
|
|
|
|
<template slot="P4" slot-scope="text, row">
|
|
|
- <a-input v-model.trim="row.P4" :maxLength="50" :placeholder="$t('global-btn.please-enter')"></a-input>
|
|
|
+ <a-input-number v-model.trim="row.P4" :min="0" :placeholder="$t('global-btn.please-enter')" @change="flushAll"></a-input-number>
|
|
|
</template>
|
|
|
|
|
|
<template slot="P5" slot-scope="text, row">
|
|
|
- <a-input v-model.trim="row.P5" :maxLength="50" :placeholder="$t('global-btn.please-enter')"></a-input>
|
|
|
+ <a-input-number v-model.trim="row.P5" :min="0" :placeholder="$t('global-btn.please-enter')" @change="flushAll"></a-input-number>
|
|
|
</template>
|
|
|
|
|
|
<template slot="P6" slot-scope="text, row">
|
|
|
- <a-input v-model.trim="row.P6" :maxLength="50" :placeholder="$t('global-btn.please-enter')"></a-input>
|
|
|
+ <a-input-number v-model.trim="row.P6" :min="0" :placeholder="$t('global-btn.please-enter')" @change="flushAll"></a-input-number>
|
|
|
</template>
|
|
|
|
|
|
<template slot="P7" slot-scope="text, row">
|
|
|
- <a-input v-model.trim="row.P7" :maxLength="50" :placeholder="$t('global-btn.please-enter')"></a-input>
|
|
|
+ <a-input-number v-model.trim="row.P7" :min="0" :placeholder="$t('global-btn.please-enter')" @change="flushAll"></a-input-number>
|
|
|
</template>
|
|
|
|
|
|
<template slot="P8" slot-scope="text, row">
|
|
|
- <a-input v-model.trim="row.P8" :maxLength="50" :placeholder="$t('global-btn.please-enter')"></a-input>
|
|
|
+ <a-input-number v-model.trim="row.P8" :min="0" :placeholder="$t('global-btn.please-enter')" @change="flushAll"></a-input-number>
|
|
|
</template>
|
|
|
|
|
|
<!-- 备注 -->
|
|
@@ -567,6 +567,12 @@ export default {
|
|
|
this.frequencyPagination.pageNo = pagination.current;
|
|
|
this.editTableDataInit();
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 刷新频次数据
|
|
|
+ */
|
|
|
+ flushAll() {
|
|
|
+ this.$forceUpdate();
|
|
|
+ }
|
|
|
},
|
|
|
//剔除页面窗体大小变化得监听事件
|
|
|
beforeDestroy() {
|