Commit b3be8960 by lei wang

dia经办用户查询条件逻辑添加

parent 5397b72d
...@@ -145,11 +145,11 @@ ...@@ -145,11 +145,11 @@
return { return {
codData: [], codData: [],
codColumns: [ codColumns: [
{ label: '交易编码', prop: 'cod', width: '200' }, { label: '交易编码', prop: 'cod', width: 'auto' },
{ label: '方向', prop: 'dir', width: '100' }, { label: '方向', prop: 'dir', width: 'auto' },
{ label: '类型', prop: 'typ', width: '100' }, { label: '类型', prop: 'typ', width: 'auto' },
{ label: '名称', prop: 'txt', width: '200' }, { label: '名称', prop: 'txt', width: 'auto' },
{ label: '状态', prop: 'sta', width: '100' } { label: '状态', prop: 'sta', width: 'auto' }
], ],
}; };
}, },
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
v-on:queryFunc="queryFunc" v-on:queryFunc="queryFunc"
:border="true" :border="true"
> >
<c-table-column fixed="right" prop="op" label="操作" width="240px"> <c-table-column fixed="right" prop="op" label="操作" width="320px">
<template slot-scope="{ scope }"> <template slot-scope="{ scope }">
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
@click="usrDelete(scope.$index, scope.row)" @click="usrDelete(scope.$index, scope.row)"
>删除</c-button >删除</c-button
> >
<c-button id="useButton" size="small" style="margin-left: 5px" :disabled="useButtonVisible" @click="use(scope.row)">使用</c-button>
<!-- <el-popover placement="top-start" width="50" trigger="click">--> <!-- <el-popover placement="top-start" width="50" trigger="click">-->
<!-- <ul class="table-button-item-list">--> <!-- <ul class="table-button-item-list">-->
<!-- <li>--> <!-- <li>-->
...@@ -135,6 +136,7 @@ export default { ...@@ -135,6 +136,7 @@ export default {
// { label: 'ubrList', prop: 'ubrList', width: 'auto' }, // { label: 'ubrList', prop: 'ubrList', width: 'auto' },
// { label: 'uclList', prop: 'uclList', width: 'auto' }, // { label: 'uclList', prop: 'uclList', width: 'auto' },
], ],
useButtonVisible: true
}; };
}, },
// activated:已进入页面便可触发 // activated:已进入页面便可触发
...@@ -144,7 +146,24 @@ export default { ...@@ -144,7 +146,24 @@ export default {
this.onInfusrSearch() this.onInfusrSearch()
} }
}, },
created() {
const { from } = this.$route.params
if (from != undefined && from != null) {
this.useButtonVisible = false
}
},
methods: { methods: {
use(row) {
const extkey = row.extkey
const { from } = this.$route.params
this.$store.dispatch("TagsView/delView", this.$route)
this.$router.push({
name: from,
params: {
extkey: extkey
}
})
},
handleReset() { handleReset() {
this.root.$refs.modelForm.resetFields(); this.root.$refs.modelForm.resetFields();
}, },
......
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