|
@@ -4,14 +4,6 @@
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span>系统参数</span>
|
|
|
</div>
|
|
|
-<!-- <el-button-->
|
|
|
-<!-- type="primary"-->
|
|
|
-<!-- size="small"-->
|
|
|
-<!-- style="round-clip: 10px"-->
|
|
|
-<!-- :loading="btnLonding"-->
|
|
|
-<!-- @click="insertEvent"-->
|
|
|
-<!-- >新增</el-button>-->
|
|
|
-
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
plain
|
|
@@ -20,7 +12,6 @@
|
|
|
@click="insertEvent"
|
|
|
>新增
|
|
|
</el-button>
|
|
|
-
|
|
|
<el-input
|
|
|
v-model="keywords"
|
|
|
placeholder="通过描述搜索参数"
|
|
@@ -31,7 +22,6 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="getList">搜索</el-button>
|
|
|
-
|
|
|
<div style="padding-top: 10px">
|
|
|
<vxe-table
|
|
|
ref="xTable"
|
|
@@ -49,28 +39,12 @@
|
|
|
:edit-rules="rules"
|
|
|
:edit-config="{trigger: 'manual', mode: 'row',autoClear: false,icon:'none',activeMethod: activeCellMethod}"
|
|
|
>
|
|
|
-<!-- <vxe-table-->
|
|
|
-<!-- ref="xTable"-->
|
|
|
-<!-- highlight-current-row-->
|
|
|
-<!-- v-show="showTable"-->
|
|
|
-<!-- :keep-source="true"-->
|
|
|
-<!-- align="center"-->
|
|
|
-<!-- export-config-->
|
|
|
-<!-- :loading="loading"-->
|
|
|
-<!-- auto-resize-->
|
|
|
-<!-- border-->
|
|
|
-<!-- resizable-->
|
|
|
-<!-- show-overflow-->
|
|
|
-<!-- :edit-rules="rules"-->
|
|
|
-<!-- :data="tableData"-->
|
|
|
-<!-- :edit-config="{trigger: 'manual', mode: 'row',autoClear: false,icon:'none',activeMethod: activeCellMethod}"-->
|
|
|
-<!-- >-->
|
|
|
<vxe-table-column title="参数配置">
|
|
|
<vxe-table-column
|
|
|
field="sysKey"
|
|
|
title="参数名"
|
|
|
width="25%"
|
|
|
- :edit-render="{name: '$input', props: {type: 'text', readonly: !add}}"
|
|
|
+ :edit-render="{name: '$input', props: {type: 'text'}}"
|
|
|
/>
|
|
|
<vxe-table-column
|
|
|
field="sysValue"
|
|
@@ -141,7 +115,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-
|
|
|
+import { debounce } from 'lodash'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -179,7 +153,7 @@ export default {
|
|
|
}
|
|
|
return true
|
|
|
},
|
|
|
- getList() {
|
|
|
+ getList:debounce(function(){
|
|
|
this.loading = true;
|
|
|
var searchParams = {
|
|
|
currentPage: this.currentPage,
|
|
@@ -200,7 +174,7 @@ export default {
|
|
|
}).catch((error) => {
|
|
|
this.$message.error('获取数据出错' + error)
|
|
|
})
|
|
|
- },
|
|
|
+ },1000),
|
|
|
handlePageChange({ currentPage, pageSize }) {
|
|
|
this.currentPage = currentPage
|
|
|
this.pageSize = pageSize
|
|
@@ -211,7 +185,8 @@ export default {
|
|
|
this.btnLonding = true
|
|
|
this.$refs.xTable.setActiveRow(row)
|
|
|
},
|
|
|
- saveRowEvent(row) {
|
|
|
+ saveRowEvent:debounce(function(row){
|
|
|
+ console.log(row)
|
|
|
this.saveLoding = true
|
|
|
this.$refs.xTable.validate(valid => {
|
|
|
if (valid) {
|
|
@@ -254,7 +229,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.saveLoding = false
|
|
|
- },
|
|
|
+ },1000),
|
|
|
cancelRowEvent(row) {
|
|
|
this.addType = false
|
|
|
this.saveLoding = false
|