Commit 682e2bb1 by 李少勇

修改oftopn和oftsel交易

parent 75c24127
import Api from "~/service/Api";
import moment from "moment";
import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js';
import Oftopn from '../model';
export default {
mixins: [getSubtyp],
methods: {
async handleSearch () {
let rsptims = this.model.oftp.rel.rsptims;
......
......@@ -6,6 +6,19 @@
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="报文标准" style="width: 100%">
<c-select v-model="model.oftp.rel.msgtyp" style="width: 100%" :code="codes.msgtyp3" @change="getSubtyp(model.oftp.rel.msgtyp, 'oftp.rel.mty')" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="报文类型" style="width: 100%">
<el-select v-model="model.oftp.rel.mty" >
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="起止日期" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.oftp.rel.rsptims" style="width: 100%"></c-date-picker>
......@@ -18,20 +31,6 @@
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="报文标准" style="width: 100%">
<c-select v-model="model.oftp.rel.msgtyp" style="width: 100%"
:code="codes.msgtyp3" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="报文类型" style="width: 100%">
<el-select v-model="model.oftp.rel.mty" >
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
......@@ -281,23 +280,7 @@ export default {
}
},
watch: {
'model.oftp.rel.msgtyp': {
handler: function (newTyp, oldTyp) {
// 把已经选择的 subtyp 重置
this.model.oftp.rel.mty = '';
const { codes } = this;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.cipstyp;
}
},
deep: true
}
},
methods: {
dbClickRow (row) {
......
import Api from "~/service/Api";
import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js';
import moment from "moment";
export default {
mixins: [getSubtyp],
methods: {
async handleSearch () {
let rsptims = this.model.oftp.rel.rsptims;
......
......@@ -6,6 +6,19 @@
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="报文标准" style="width: 100%">
<c-select v-model="model.oftp.rel.msgtyp" style="width: 100%" :code="codes.msgtyp3" @change="getSubtyp(model.oftp.rel.msgtyp, 'oftp.rel.mty')" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="报文类型" style="width: 100%">
<el-select v-model="model.oftp.rel.mty" >
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="起止日期" style="width: 100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.oftp.rel.rsptims" style="width: 100%"></c-date-picker>
......@@ -18,20 +31,6 @@
</c-col>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="报文标准" style="width: 100%">
<c-select v-model="model.oftp.rel.msgtyp" style="width: 100%"
:code="codes.msgtyp3" />
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="报文类型" style="width: 100%">
<el-select v-model="model.oftp.rel.mty" >
<el-option v-for="code in subtypCodes" :key="code.label" :label="code.label" :value="code.value">
</el-option>
</el-select>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
......@@ -279,23 +278,7 @@ export default {
}
},
watch: {
'model.sndp.msgtyp': {
handler: function (newTyp, oldTyp) {
// 把已经选择的 subtyp 重置
this.model.sndp.subtyp = '';
const { codes } = this;
if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp;
} else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp;
} else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp;
} else {
this.subtypCodes = codes.cipstyp;
}
},
deep: true
}
},
methods: {},
mounted: function () {
......
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