Commit ebd42b59 authored by neogcg's avatar neogcg

3/4

parent 532c6f37
<template>
<el-button :type="multipleSelection.data.length ? 'primary' : 'info'"
:disabled="!multipleSelection.data.length" @click="del()">删 除</el-button>
</template>
<script>
import {mapGetters,mapActions} from 'vuex';
import { warningAlert } from "../../utils/alert";
export default {
props: {
multipleSelection2: {
type: Array,
default: () => {}
}
},
components: {},
data() {
return {
multipleSelection:formInit(),
};
},
watch: {
multipleSelection2: {
immediate: true,
handler(newV) {
this.multipleSelection = !!newV
this.multipleSelection = formInit(this.multipleSelection2)
console.log( this.multipleSelection.data.length);
},
},
},
computed: {
...mapGetters({}),
},
methods: {
...mapActions({}),
del(){
this.$confirm('继续操作将永久删除, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$emit("del")
}).catch(() => {
warningAlert("取消删除")
});
},
},
mounted() {},
};
function formInit(data = []) {
return {
data
}
}
</script>
<style scoped>
</style>
\ No newline at end of file
...@@ -8,6 +8,9 @@ const mutations = { ...@@ -8,6 +8,9 @@ const mutations = {
changeList(state, arr) { changeList(state, arr) {
state.list = arr state.list = arr
}, },
changePagesize(state,total){
state.pageSize=total
}
} }
const actions = { const actions = {
asyncList(context) { asyncList(context) {
...@@ -15,7 +18,11 @@ const actions = { ...@@ -15,7 +18,11 @@ const actions = {
current: context.state.pageNum, current: context.state.pageNum,
size: context.state.pageSize, size: context.state.pageSize,
}).then(res => { }).then(res => {
let total=res.total
if (res.total>state.pageSize) {
context.commit("changePagesize", total)
context.dispatch("asyncList")
}
let arr = res.records?res.records:[] let arr = res.records?res.records:[]
context.commit("changeList", arr) context.commit("changeList", arr)
......
import { leakyCablelist } from "../../views/setting/api" import { leakyCablelist } from "../../views/setting/api"
const state = { const state = {
list: [], list: [],
pageNum:1, pageNum: 1,
pageSize:10, pageSize: 10,
} }
const mutations = { const mutations = {
changeList(state, arr) { changeList(state, arr) {
state.list = arr state.list = arr
}, },
changePagesize(state, total) {
state.pageSize = total
}
} }
const actions = { const actions = {
asyncList(context) { asyncList(context) {
leakyCablelist( { leakyCablelist({
current: context.state.pageNum, current: context.state.pageNum,
size: context.state.pageSize, size: context.state.pageSize,
}).then(res => { }).then(res => {
let total = res.total
let arr = res.records?res.records:[] if (res.total > state.pageSize) {
context.commit("changePagesize", total)
context.dispatch("asyncList")
}
let arr = res.records ? res.records : []
context.commit("changeList", arr) context.commit("changeList", arr)
}) })
} }
......
...@@ -8,6 +8,9 @@ const mutations = { ...@@ -8,6 +8,9 @@ const mutations = {
changeList(state, arr) { changeList(state, arr) {
state.list = arr state.list = arr
}, },
changePagesize(state,total){
state.pageSize=total
}
} }
const actions = { const actions = {
asyncList(context) { asyncList(context) {
...@@ -15,7 +18,11 @@ const actions = { ...@@ -15,7 +18,11 @@ const actions = {
current: context.state.pageNum, current: context.state.pageNum,
size: context.state.pageSize, size: context.state.pageSize,
}).then(res => { }).then(res => {
let total=res.total
if (res.total>state.pageSize) {
context.commit("changePagesize", total)
context.dispatch("asyncList")
}
let arr = res.records?res.records:[] let arr = res.records?res.records:[]
context.commit("changeList", arr) context.commit("changeList", arr)
......
...@@ -7,7 +7,10 @@ const state = { ...@@ -7,7 +7,10 @@ const state = {
const mutations = { const mutations = {
changeList(state, arr) { changeList(state, arr) {
state.list = arr state.list = arr
} },
changePagesize(state,total){
state.pageSize=total
}
} }
const actions = { const actions = {
asyncList(context) { asyncList(context) {
...@@ -15,7 +18,11 @@ const actions = { ...@@ -15,7 +18,11 @@ const actions = {
current: context.state.pageNum, current: context.state.pageNum,
size: context.state.pageSize, size: context.state.pageSize,
}).then(res => { }).then(res => {
let total=res.total
if (res.total>state.pageSize) {
context.commit("changePagesize", total)
context.dispatch("asyncList")
}
let arr = res.records?res.records:[] let arr = res.records?res.records:[]
context.commit("changeList", arr) context.commit("changeList", arr)
......
...@@ -7,7 +7,11 @@ const state = { ...@@ -7,7 +7,11 @@ const state = {
const mutations = { const mutations = {
changeList(state, arr) { changeList(state, arr) {
state.list = arr state.list = arr
}, },
changePagesize(state,total){
state.pageSize=total
}
} }
const actions = { const actions = {
asyncList(context) { asyncList(context) {
...@@ -15,7 +19,11 @@ const actions = { ...@@ -15,7 +19,11 @@ const actions = {
current: context.state.pageNum, current: context.state.pageNum,
size: context.state.pageSize, size: context.state.pageSize,
}).then(res => { }).then(res => {
let total=res.total
if (res.total>state.pageSize) {
context.commit("changePagesize", total)
context.dispatch("asyncList")
}
let arr = res.records?res.records:[] let arr = res.records?res.records:[]
context.commit("changeList", arr) context.commit("changeList", arr)
......
import Pagination from '@/components/Pagination/index.vue' import Pagination from '@/components/Pagination/index.vue'
import delids from '@/components/Del/index.vue'
// import VueSocketIO from 'vue-socket.io' // import VueSocketIO from 'vue-socket.io'
export default function performLoader(Vue) { export default function performLoader(Vue) {
// self component // self component
function plugins(Vue) { function plugins(Vue) {
Vue.component('Pagination', Pagination) Vue.component('Pagination', Pagination)
Vue.component('delids', delids)
} }
Vue.use(plugins) Vue.use(plugins)
......
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
var that = this; var that = this;
document.onkeydown = function (e) { document.onkeydown = function (e) {
var key = window.event.keyCode; var key = window.event.keyCode;
if (key == 13 || key == 100) { if (key == 13) {
that.handleLogin(); that.handleLogin();
} }
}; };
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
v-for="item in backupModeSelect" v-for="item in backupModeSelect"
:key="item.id" :key="item.id"
:label="item.dictValue" :label="item.dictValue"
:value="item.dictValue" :value="item.id"
></el-option ></el-option
></el-select> ></el-select>
</el-form-item> </el-form-item>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
v-for="item in connectModeSelect" v-for="item in connectModeSelect"
:key="item.id" :key="item.id"
:label="item.dictValue" :label="item.dictValue"
:value="item.dictValue" :value="item.id"
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
v-for="item in equipTypeSelect" v-for="item in equipTypeSelect"
:key="item.id" :key="item.id"
:label="item.dictValue" :label="item.dictValue"
:value="item.dictValue" :value="item.id"
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
v-for="item in equipSubTypeSelect" v-for="item in equipSubTypeSelect"
:key="item.id" :key="item.id"
:label="item.dictValue" :label="item.dictValue"
:value="item.dictValue" :value="item.id"
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -214,11 +214,12 @@ export default { ...@@ -214,11 +214,12 @@ export default {
asyncstationList: "station/asyncList", asyncstationList: "station/asyncList",
}), }),
changerailWay() { changerailWay() {
console.log(this.FSUForm.wayId);
this.stationSelect2 = this.stationlist.filter( this.stationSelect2 = this.stationlist.filter(
(item) => item.wayId === this.FSUForm.wayId (item) => item.parentId === this.FSUForm.wayId
); );
console.log(this.stationlist);
}, },
readNodes(aaa = [], arrarea = []) { readNodes(aaa = [], arrarea = []) {
for (let item of aaa) { for (let item of aaa) {
...@@ -237,8 +238,8 @@ export default { ...@@ -237,8 +238,8 @@ export default {
if (valid) { if (valid) {
this.FSUForm.parentId = this.FSUForm.siteId; this.FSUForm.parentId = this.FSUForm.siteId;
this.FSUForm.fsuPort = Number(this.FSUForm.fsuPort); this.FSUForm.fsuPort = Number(this.FSUForm.fsuPort);
console.log(this.FSUForm);
fsusave(this.FSUform).then((res) => { fsusave(this.FSUForm).then((res) => {
if (res.code == 200) { if (res.code == 200) {
successAlert("添加成功"); successAlert("添加成功");
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
v-for="item in equipTypeSelect" v-for="item in equipTypeSelect"
:key="item.id" :key="item.id"
:label="item.dictValue" :label="item.dictValue"
:value="item.dictValue" :value="item.id"
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
v-for="item in equipModeSelect" v-for="item in equipModeSelect"
:key="item.id" :key="item.id"
:label="item.dictValue" :label="item.dictValue"
:value="item.dictValue" :value="item.id"
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -103,17 +103,26 @@ ...@@ -103,17 +103,26 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="安装日期:" prop="installDate"> <el-form-item label="安装日期:" prop="installDate">
<el-input
v-model="monitorForm.installDate" <el-date-picker
placeholder="请输入安装日期" v-model="monitorForm.installDate"
/> type="datetime"
placeholder="请选择安装日期"
format="yyyy-MM-dd HH:mm:ss"
style="width:400px"
value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label=" 维护日期:" prop="repairDate"> <el-form-item label=" 维护日期:" prop="repairDate">
<el-input <el-date-picker
v-model="monitorForm.repairDate" v-model="monitorForm.repairDate"
placeholder="请输入维护日期" type="datetime"
/> placeholder="请选择维护日期"
format="yyyy-MM-dd HH:mm:ss"
style="width:400px"
value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="btn"> <div class="btn">
...@@ -160,10 +169,10 @@ export default { ...@@ -160,10 +169,10 @@ export default {
equipName: "", equipName: "",
equipSerialNumber: "", equipSerialNumber: "",
equipType: "", equipType: "",
installDate: "2022-02-24 12:24:84", installDate: "",
kmSign: "", kmSign: "",
repairDate: "2022-02-24 12:24:84", repairDate: "",
}, },
rules: { rules: {
parentId: [ parentId: [
...@@ -220,6 +229,7 @@ export default { ...@@ -220,6 +229,7 @@ export default {
asyncfsuList: "FSU/asyncList", asyncfsuList: "FSU/asyncList",
}), }),
changerailWay() { changerailWay() {
this.stationSelect2 = this.stationlist.filter( this.stationSelect2 = this.stationlist.filter(
(item) => item.parentId === this.monitorForm.wayId (item) => item.parentId === this.monitorForm.wayId
); );
...@@ -230,12 +240,14 @@ export default { ...@@ -230,12 +240,14 @@ export default {
); );
}, },
reset() { reset() {
this.$refs.monitorForm.resetFields(); this.$refs.monitorForm.resetFields();
}, },
submit() { submit() {
this.$refs.monitorForm.validate((valid) => { this.$refs.monitorForm.validate((valid) => {
if (valid) { if (valid) {
this.monitorForm.parentId = this.monitorForm.fsuId; this.monitorForm.parentId = this.monitorForm.fsuId;
console.log(this.monitorForm);
monitorEquipsave(this.monitorForm).then((res) => { monitorEquipsave(this.monitorForm).then((res) => {
if (res.code == 200) { if (res.code == 200) {
successAlert("添加成功"); successAlert("添加成功");
...@@ -256,13 +268,15 @@ export default { ...@@ -256,13 +268,15 @@ export default {
equipName: "", equipName: "",
equipSerialNumber: "", equipSerialNumber: "",
equipType: "", equipType: "",
installDate: "2022-02-22 12:24:84", installDate: "",
kmSign: "", kmSign: "",
repairDate: "2022-02-24 12:24:84", repairDate: "",
}; };
}); });
}, },
}, },
created() { created() {
selectMonitorItem().then((res) => { selectMonitorItem().then((res) => {
......
...@@ -4,12 +4,8 @@ ...@@ -4,12 +4,8 @@
<div style="color: #666666"></div> <div style="color: #666666"></div>
<div class="operate-btn"> <div class="operate-btn">
<el-button <delids :multipleSelection2="multipleSelection" @del="del()"
:type="multipleSelection.length ? 'primary' : 'info'" >删除</delids>
:disabled="!multipleSelection.length"
@click="delData"
>删除</el-button
>
<el-button type="primary" @click="refresh">刷新</el-button> <el-button type="primary" @click="refresh">刷新</el-button>
<el-button type="primary" @click="block = !block">查询</el-button> <el-button type="primary" @click="block = !block">查询</el-button>
<el-button type="primary" @click="exportData">导出</el-button> <el-button type="primary" @click="exportData">导出</el-button>
...@@ -94,7 +90,7 @@ ...@@ -94,7 +90,7 @@
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column prop="equipName" label="设备名称" align="center" /> <el-table-column prop="equipName" label="设备名称" align="center" />
<el-table-column prop="wayId" label="所在铁路线" align="center" /> <el-table-column prop="railWayName" label="所在铁路线" align="center" />
<el-table-column <el-table-column
prop="siteId" prop="siteId"
label="所在站点" label="所在站点"
...@@ -236,6 +232,9 @@ export default { ...@@ -236,6 +232,9 @@ export default {
}), }),
}, },
methods: { methods: {
onkeydown_at_phone(event) {
console.log(event.keyCode);
},
...mapActions({ ...mapActions({
asyncrailWayList: "railWay/asyncList", asyncrailWayList: "railWay/asyncList",
asyncstationList: "station/asyncList", asyncstationList: "station/asyncList",
...@@ -252,7 +251,7 @@ export default { ...@@ -252,7 +251,7 @@ export default {
changeType(item) { changeType(item) {
this.activeName = item.key; this.activeName = item.key;
}, },
delData() { del() {
let ids = this.ids; let ids = this.ids;
fsubatchDelete({ ids }).then((res) => { fsubatchDelete({ ids }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
...@@ -318,8 +317,9 @@ export default { ...@@ -318,8 +317,9 @@ export default {
let list = res.records || []; let list = res.records || [];
this.tableData = list; this.tableData = list;
this.total = res.total; this.total = res.total;
console.log( this.FSUForm);
if (this.istrue == 1) { if (this.istrue == 1) {
if (this.tableData.length) { if (this.tableData.length!=0) {
successAlert("查询成功"); successAlert("查询成功");
} else { } else {
warningAlert("查询结果为空"); warningAlert("查询结果为空");
...@@ -333,7 +333,7 @@ export default { ...@@ -333,7 +333,7 @@ export default {
var that = this; var that = this;
document.onkeydown = function (e) { document.onkeydown = function (e) {
var key = window.event.keyCode; var key = window.event.keyCode;
if (key == 13 || key == 100) { if (key == 13) {
that.searchQuery(); that.searchQuery();
} }
}; };
......
...@@ -4,12 +4,8 @@ ...@@ -4,12 +4,8 @@
<div style="color: #666666"></div> <div style="color: #666666"></div>
<div class="operate-btn"> <div class="operate-btn">
<el-button <delids :multipleSelection2="multipleSelection" @del="del()"
:type="multipleSelection.length ? 'primary' : 'info'" >删除</delids>
:disabled="!multipleSelection.length"
@click="delData"
>删除</el-button
>
<el-button type="primary" @click="refresh">刷新</el-button> <el-button type="primary" @click="refresh">刷新</el-button>
<el-button type="primary" @click="block = !block">查询</el-button> <el-button type="primary" @click="block = !block">查询</el-button>
<el-button type="primary" @click="exportData">导出</el-button> <el-button type="primary" @click="exportData">导出</el-button>
...@@ -134,7 +130,7 @@ ...@@ -134,7 +130,7 @@
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column prop="wayId" label="所在铁路线" align="center" /> <el-table-column prop="railWayName" label="所在铁路线" align="center" />
<el-table-column <el-table-column
prop="hundredMetersLoss" prop="hundredMetersLoss"
...@@ -299,7 +295,7 @@ export default { ...@@ -299,7 +295,7 @@ export default {
changeType(item) { changeType(item) {
this.activeName = item.key; this.activeName = item.key;
}, },
delData() { del() {
let ids = this.ids; let ids = this.ids;
leakyCablebatchDelete({ ids }).then((res) => { leakyCablebatchDelete({ ids }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
...@@ -389,7 +385,7 @@ export default { ...@@ -389,7 +385,7 @@ export default {
var that = this; var that = this;
document.onkeydown = function (e) { document.onkeydown = function (e) {
var key = window.event.keyCode; var key = window.event.keyCode;
if (key == 13 || key == 100) { if (key == 13) {
that.searchQuery(); that.searchQuery();
} }
}; };
......
...@@ -4,12 +4,8 @@ ...@@ -4,12 +4,8 @@
<div style="color: #666666"></div> <div style="color: #666666"></div>
<div class="operate-btn"> <div class="operate-btn">
<el-button <delids :multipleSelection2="multipleSelection" @del="del()"
:type="multipleSelection.length ? 'primary' : 'info'" >删除</delids>
:disabled="!multipleSelection.length"
@click="delData"
>删除</el-button
>
<el-button type="primary" @click="refresh">刷新</el-button> <el-button type="primary" @click="refresh">刷新</el-button>
<el-button type="primary" @click="block = !block">查询</el-button> <el-button type="primary" @click="block = !block">查询</el-button>
<el-button type="primary" @click="exportData">导出</el-button> <el-button type="primary" @click="exportData">导出</el-button>
...@@ -110,7 +106,7 @@ ...@@ -110,7 +106,7 @@
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column prop="wayId" label="站点所属铁路线" align="center" /> <el-table-column prop="railWayName" label="站点所属铁路线" align="center" />
<el-table-column prop="equipCode" label="设备身份编号" align="center" /> <el-table-column prop="equipCode" label="设备身份编号" align="center" />
<el-table-column prop="ip" label="IP" align="center" /> <el-table-column prop="ip" label="IP" align="center" />
<el-table-column <el-table-column
...@@ -255,7 +251,7 @@ export default { ...@@ -255,7 +251,7 @@ export default {
changeType(item) { changeType(item) {
this.activeName = item.key; this.activeName = item.key;
}, },
delData() { del() {
let ids = this.ids; let ids = this.ids;
monitorEquipbatchDelete({ ids }).then((res) => { monitorEquipbatchDelete({ ids }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
...@@ -336,7 +332,7 @@ export default { ...@@ -336,7 +332,7 @@ export default {
var that = this; var that = this;
document.onkeydown = function (e) { document.onkeydown = function (e) {
var key = window.event.keyCode; var key = window.event.keyCode;
if (key == 13 || key == 100) { if (key == 13) {
that.searchQuery(); that.searchQuery();
} }
}; };
......
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
<div style="color: #666666"></div> <div style="color: #666666"></div>
<div class="operate-btn"> <div class="operate-btn">
<el-button
:type="multipleSelection.length ? 'primary' : 'info'"
:disabled="!multipleSelection.length" <delids :multipleSelection2="multipleSelection" @del="del()"
@click="delData" >删除</delids>
>删除</el-button
>
<el-button type="primary" @click="refresh()">刷新</el-button> <el-button type="primary" @click="refresh()">刷新</el-button>
<el-button type="primary" @click="block = !block">查询</el-button> <el-button type="primary" @click="block = !block">查询</el-button>
<el-button type="primary" @click="exportData">导出</el-button> <el-button type="primary" @click="exportData">导出</el-button>
</div> </div>
</div> </div>
<el-form <el-form
...@@ -161,7 +161,8 @@ export default { ...@@ -161,7 +161,8 @@ export default {
changeType(item) { changeType(item) {
this.activeName = item.key; this.activeName = item.key;
}, },
delData() { del() {
let ids = this.ids; let ids = this.ids;
railWaybatchDelete({ ids }).then((res) => { railWaybatchDelete({ ids }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
...@@ -194,7 +195,7 @@ export default { ...@@ -194,7 +195,7 @@ export default {
exportData() {}, exportData() {},
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
// console.log(val);
this.ids = this.multipleSelection.map((i) => i.id); this.ids = this.multipleSelection.map((i) => i.id);
}, },
...@@ -239,7 +240,7 @@ export default { ...@@ -239,7 +240,7 @@ export default {
var that = this; var that = this;
document.onkeydown = function (e) { document.onkeydown = function (e) {
var key = window.event.keyCode; var key = window.event.keyCode;
if (key == 13 || key == 100) { if (key == 13) {
that.searchQuery(); that.searchQuery();
} }
}; };
......
...@@ -4,12 +4,8 @@ ...@@ -4,12 +4,8 @@
<div style="color: #666666"></div> <div style="color: #666666"></div>
<div class="operate-btn"> <div class="operate-btn">
<el-button <delids :multipleSelection2="multipleSelection" @del="del()"
:type="multipleSelection.length ? 'primary' : 'info'" >删除</delids>
:disabled="!multipleSelection.length"
@click="delData"
>删除</el-button
>
<el-button type="primary" @click="refresh">刷新</el-button> <el-button type="primary" @click="refresh">刷新</el-button>
<el-button type="primary" @click="block = !block">查询</el-button> <el-button type="primary" @click="block = !block">查询</el-button>
<el-button type="primary" @click="exportData">导出</el-button> <el-button type="primary" @click="exportData">导出</el-button>
...@@ -81,7 +77,7 @@ ...@@ -81,7 +77,7 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column prop="wayId" label="站点所属铁路线" align="center" /> <el-table-column prop="railWayName" label="站点所属铁路线" align="center" />
<el-table-column prop="siteCode" label="站点编号" align="center" /> <el-table-column prop="siteCode" label="站点编号" align="center" />
<el-table-column prop="siteName" label="站名" align="center" /> <el-table-column prop="siteName" label="站名" align="center" />
<el-table-column <el-table-column
...@@ -199,7 +195,7 @@ export default { ...@@ -199,7 +195,7 @@ export default {
changeType(item) { changeType(item) {
this.activeName = item.key; this.activeName = item.key;
}, },
delData() { del() {
let ids = this.ids; let ids = this.ids;
sitebatchDelete({ ids }).then((res) => { sitebatchDelete({ ids }).then((res) => {
if (res.code == 200) { if (res.code == 200) {
...@@ -235,7 +231,7 @@ export default { ...@@ -235,7 +231,7 @@ export default {
exportData() {}, exportData() {},
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
console.log(val);
this.ids = this.multipleSelection.map((i) => i.id); this.ids = this.multipleSelection.map((i) => i.id);
}, },
...@@ -281,7 +277,7 @@ export default { ...@@ -281,7 +277,7 @@ export default {
var that = this; var that = this;
document.onkeydown = function (e) { document.onkeydown = function (e) {
var key = window.event.keyCode; var key = window.event.keyCode;
if (key == 13 || key == 100) { if (key == 13) {
that.searchQuery(); that.searchQuery();
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment