Commit 67da70a4 by 李少勇

修改input-xml组件的交互模式

parent 9f00d22b
...@@ -2080,7 +2080,9 @@ ...@@ -2080,7 +2080,9 @@
"integrity": "sha512-FRq5b/VMrWlrmCzwRrpDYNxyHP9BcAZC+xHJaqTgIE5091ZV1NTmyh0sGOg5XqpnHvR0svdy0sv1gWA1zmhxig==", "integrity": "sha512-FRq5b/VMrWlrmCzwRrpDYNxyHP9BcAZC+xHJaqTgIE5091ZV1NTmyh0sGOg5XqpnHvR0svdy0sv1gWA1zmhxig==",
"deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.",
"dev": true, "dev": true,
"hasInstallScript": true "hasInstallScript": true,
"optional": true,
"peer": true
}, },
"node_modules/@vue/babel-preset-jsx": { "node_modules/@vue/babel-preset-jsx": {
"version": "1.2.4", "version": "1.2.4",
...@@ -15749,7 +15751,6 @@ ...@@ -15749,7 +15751,6 @@
"integrity": "sha512-ad35OBAQgc0m1m4iqRhMRuMN0rvGb8vFx0hU7lVjVMIuuLLXornU38d2U1uMI096dIItht70RCJlZt48DsLbUQ==", "integrity": "sha512-ad35OBAQgc0m1m4iqRhMRuMN0rvGb8vFx0hU7lVjVMIuuLLXornU38d2U1uMI096dIItht70RCJlZt48DsLbUQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"@babel/core": "^7.11.0",
"@babel/helper-compilation-targets": "^7.9.6", "@babel/helper-compilation-targets": "^7.9.6",
"@babel/helper-module-imports": "^7.8.3", "@babel/helper-module-imports": "^7.8.3",
"@babel/plugin-proposal-class-properties": "^7.8.3", "@babel/plugin-proposal-class-properties": "^7.8.3",
...@@ -15762,16 +15763,16 @@ ...@@ -15762,16 +15763,16 @@
"@vue/babel-plugin-jsx": "^1.0.3", "@vue/babel-plugin-jsx": "^1.0.3",
"@vue/babel-preset-jsx": "^1.2.4", "@vue/babel-preset-jsx": "^1.2.4",
"babel-plugin-dynamic-import-node": "^2.3.3", "babel-plugin-dynamic-import-node": "^2.3.3",
"core-js": "^3.6.5",
"core-js-compat": "^3.6.5", "core-js-compat": "^3.6.5",
"semver": "^6.1.0" "semver": "^6.1.0"
}, },
"dependencies": { "dependencies": {
"core-js": { "core-js": {
"version": "3.21.1", "version": "https://registry.npmmirror.com/core-js/-/core-js-3.21.1.tgz",
"resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.21.1.tgz",
"integrity": "sha512-FRq5b/VMrWlrmCzwRrpDYNxyHP9BcAZC+xHJaqTgIE5091ZV1NTmyh0sGOg5XqpnHvR0svdy0sv1gWA1zmhxig==", "integrity": "sha512-FRq5b/VMrWlrmCzwRrpDYNxyHP9BcAZC+xHJaqTgIE5091ZV1NTmyh0sGOg5XqpnHvR0svdy0sv1gWA1zmhxig==",
"dev": true "dev": true,
"optional": true,
"peer": true
} }
} }
}, },
......
...@@ -493,15 +493,14 @@ ...@@ -493,15 +493,14 @@
label="直接Swift添加" label="直接Swift添加"
prop="gitp.indirectswiadd" prop="gitp.indirectswiadd"
> >
<c-input-xml <c-input-textarea
type="textarea" type="textarea"
:maxRows="10" :maxRows="10"
:model="model.gitp.indirectswiadd" v-model="model.gitp.indirectswiadd"
maxlength="9750" maxlength="9750"
show-word-limit show-word-limit
placeholder="请输入直接Swift添加" placeholder="请输入直接Swift添加"
@change="commonExecuteRule('gitp.indirectswiadd')" ></c-input-textarea>
></c-input-xml>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -634,9 +633,9 @@ ...@@ -634,9 +633,9 @@
</template> </template>
<script> <script>
import event from '../event'; import event from '../event';
import InputXml from "~/components/InputXml"; import InputTextarea from "~/components/InputTextarea";
export default { export default {
components: { InputXml }, components: { InputTextarea },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [event], mixins: [event],
......
...@@ -9,30 +9,29 @@ ...@@ -9,30 +9,29 @@
label="保函文本可变因素" label="保函文本可变因素"
prop="gidgrp.blk.gtxgidtxt" prop="gidgrp.blk.gtxgidtxt"
> >
<c-input-xml <c-input-textarea
:disabled="model.gitp.gidtxtmodflgc == ''"
type="textarea" type="textarea"
:disabled="model.gitp.gidtxtmodflgc == ''"
:maxRows="14" :maxRows="14"
:model="model.gidgrp.blk.gtxgidtxtc" v-model="model.gidgrp.blk.gtxgidtxtc"
maxlength="32500" maxlength="32500"
show-word-limit show-word-limit
placeholder="请输入保函文本可变因素" placeholder="请输入保函文本可变因素"
></c-input-xml> ></c-input-textarea>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
v-if="model.gitp.gidtxtmodflgc == 'X'" v-if="model.gitp.gidtxtmodflgc == 'X'"
label="保函文本可变因素 - 抵消保函文本" label="保函文本可变因素 - 抵消保函文本"
prop="gidgrp.blk.gtxgidtxtc" prop="gidgrp.blk.gtxgidtxtc"
> >
<c-input-xml <c-input-textarea
type="textarea" type="textarea"
:modle="model.gidgrp.blk.gtxgidtxtc" v-modle="model.gidgrp.blk.gtxgidtxtc"
:maxRows="16" :maxRows="16"
maxlength="32500" maxlength="32500"
show-word-limit show-word-limit
placeholder="请输入保函文本可变因素 - 抵消保函文本" placeholder="请输入保函文本可变因素 - 抵消保函文本"
@change="(pam) => { model.gidgrp.blk.gtxgidtxtc = {rows: pam} }" ></c-input-textarea>
></c-input-xml>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
...@@ -72,7 +71,6 @@ ...@@ -72,7 +71,6 @@
>允许</c-checkbox >允许</c-checkbox
> >
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-button <c-button
disabled disabled
...@@ -127,10 +125,9 @@ ...@@ -127,10 +125,9 @@
</div> </div>
</template> </template>
<script> <script>
import IStreamInput from "~/components/IStreamInput";
import event from '../event' import event from '../event'
export default { export default {
components: { IStreamInput }, components: { },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [event], mixins: [event],
...@@ -138,7 +135,7 @@ export default { ...@@ -138,7 +135,7 @@ export default {
return {}; return {};
}, },
methods: {}, methods: {},
created: function () {}, created () {},
}; };
</script> </script>
<style> <style>
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
v-model="model.gidgrp.rec.delto" v-model="model.gidgrp.rec.delto"
style="width: 100%" style="width: 100%"
placeholder="请选择交付收款人" placeholder="请选择交付收款人"
:code="getValues('gidgrp.rec.delto','delto1')" :code="getDelto"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -218,18 +218,44 @@ ...@@ -218,18 +218,44 @@
<script> <script>
import _ from "lodash"; import _ from "lodash";
import event from '../event' import event from '../event'
import Utils from "~/utils";
import commonProcess from "~/mixin/commonProcess" import commonProcess from "~/mixin/commonProcess"
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess, event], mixins: [commonProcess, event],
computed: {
getDelto () {
let list = [{
label: '其他',
value: 'OTHR'
}]
if (this.model.gidgrp.apl.pts.extkey) {
list.push({
label: '申请人',
value: 'APPL'
})
}
if (this.model.gidgrp.ben.pts.extkey) {
list.push({
label: '收益人',
value: 'BENE'
})
}
// if (this.model.gidgrp.ctr.pts.extkey) {
// list.push({
// label: '申请人',
// value: 'OBLI'
// })
// }
return list
}
},
data() { data() {
return {}; return {};
}, },
methods: {}, methods: {},
created: function () {}, created () {},
}; };
</script> </script>
<style scoped> <style scoped>
......
...@@ -9,9 +9,7 @@ ...@@ -9,9 +9,7 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import commonProcess from "~/mixin/commonProcess";
import Infgid from "../model"; import Infgid from "../model";
import Infsea from "./Infsea"; import Infsea from "./Infsea";
...@@ -25,7 +23,6 @@ export default { ...@@ -25,7 +23,6 @@ export default {
root: this, root: this,
}; };
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "", tabVal: "",
...@@ -35,24 +32,8 @@ export default { ...@@ -35,24 +32,8 @@ export default {
codes: { ...CodeTable }, codes: { ...CodeTable },
}; };
}, },
methods: { methods: {},
myTabClick(tab) { created () {},
this.tabClick(tab);
/**
* do it yourself
**/
},
},
created: async function () {
console.log("进入infgid交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
}; };
</script> </script>
<style> <style>
......
<template>
<el-input
:id="id"
ref="form-item"
v-model="value"
type="textarea"
v-bind="$attrs"
v-on="$listeners"
v-bind:disabled="disabled"
:rows="maxRows"
resize="none"
@change="onChange"
/>
</template>
<script>
export default {
props: {
id: {
type: String,
default: undefined
},
value: {
type: [String, Number],
default: undefined
},
disabled: {
type: Boolean,
default: false
},
maxRows: {
type: Number,
default: 3
}
},
computed: {
model: {
get () {
return this.value
},
set (newVal) {
this.$emit('input', newVal)
}
}
},
methods: {
onChange () {
this.$emit('change', this.model)
}
}
}
</script>
...@@ -152,4 +152,7 @@ export default { ...@@ -152,4 +152,7 @@ export default {
/* .el-select.highlight .el-input .el-input__inner { /* .el-select.highlight .el-input .el-input__inner {
border-color: red; border-color: red;
} */ } */
.c-highlight-content {
overflow: hidden;
}
</style> </style>
\ No newline at end of file
...@@ -52,6 +52,7 @@ import Fullbox from "./Fullbox" ...@@ -52,6 +52,7 @@ import Fullbox from "./Fullbox"
import CompareTable from "./CompareTable" import CompareTable from "./CompareTable"
import InputXml from "./InputXml.vue" import InputXml from "./InputXml.vue"
import InputTextarea from "./InputTextarea.vue"
import PagingTable from "./PagingTable.vue"; import PagingTable from "./PagingTable.vue";
import MulRowInput from "./MulRowInput.vue" import MulRowInput from "./MulRowInput.vue"
...@@ -111,6 +112,7 @@ export default { ...@@ -111,6 +112,7 @@ export default {
Vue.component("c-fullbox", Fullbox) Vue.component("c-fullbox", Fullbox)
Vue.component("c-compare-table", CompareTable) Vue.component("c-compare-table", CompareTable)
Vue.component("c-input-xml", InputXml) Vue.component("c-input-xml", InputXml)
Vue.component("c-input-textarea", InputTextarea)
Vue.component("c-paging-table", PagingTable) Vue.component("c-paging-table", PagingTable)
Vue.component("c-mul-row-input", MulRowInput) Vue.component("c-mul-row-input", MulRowInput)
Vue.component("c-rich-text-editor", RichTextEditor) Vue.component("c-rich-text-editor", RichTextEditor)
......
...@@ -7716,6 +7716,11 @@ const CodeTable = { ...@@ -7716,6 +7716,11 @@ const CodeTable = {
{ label: "ISSU Issuance of undertaking", value: "ISSU" }, { label: "ISSU Issuance of undertaking", value: "ISSU" },
{ label: "ISCO Issuance of counter-undertaking", value: "ISCO" }, { label: "ISCO Issuance of counter-undertaking", value: "ISCO" },
{ label: "ICCO Issuance of counter-counter-undert", value: "ICCO" }, { label: "ICCO Issuance of counter-counter-undert", value: "ICCO" },
],
sndto: [
{ label: "ISSU Issuance of undertaking", value: "ISSU" },
{ label: "ISCO Issuance of counter-undertaking", value: "ISCO" },
{ label: "ICCO Issuance of counter-counter-undert", value: "ICCO" },
] ]
} }
export default CodeTable; export default CodeTable;
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