Commit 1bfe88ed by hulei

add i-stream-block

parent 0fe4be1b
<template>
<div>
<c-input
type="textarea"
v-model="text"
maxlength="60"
:autosize="{ minRows: 4, maxRows: 6 }"
show-word-limit
placeholder="请输入Infotext"
@change="syncStream"
></c-input>
</div>
</template>
<script>
export default {
props:['stream'],
created:function(){
this.stream["rows"] = this.stream["rows"]||[];
this.text=this.stream["rows"].join();
},
data:function(){
return {
text:""
}
},
computed:{
},
methods:{
syncStream(){
this.stream["rows"]=this.text.split("\r\n");
console.log(this.stream["rows"]);
this.$emit("change",this.text);
},
onChange(){
this.$emit("change",this.text);
}
}
}
</script>
......@@ -595,14 +595,14 @@ export default {
{ type: "string", required: false, message: "必输项" },
{ max: 14, message: "长度不能超过14" }
],
"mtabut.coninf.oitinf.oit.inftxt": [
{ type: "string", required: false, message: "必输项" },
{ max: 60, message: "长度不能超过60" }
],
"mtabut.coninf.oitset.oit.inftxt": [
{ type: "string", required: false, message: "必输项" },
{ max: 60, message: "长度不能超过60" }
],
// "mtabut.coninf.oitinf.oit.inftxt": [
// { type: "string", required: false, message: "必输项" },
// { max: 60, message: "长度不能超过60" }
// ],
// "mtabut.coninf.oitset.oit.inftxt": [
// { type: "string", required: true, message: "必输项" },
// { max: 60, message: "长度不能超过60" }
// ],
"mtabut.coninf.conexedat": [
{ required: false, message: "输入正确的日期" }
......
......@@ -5,14 +5,14 @@ export default class Mtabut {
oitinf: {
labinftxt: "", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt
oit: {
inftxt: "", // Infotext .mtabut.coninf.oitinf.oit.inftxt
inftxt: {}, // Infotext .mtabut.coninf.oitinf.oit.inftxt
inflev: "", // Infotext Level .mtabut.coninf.oitinf.oit.inflev
},
},
oitset: {
labinftxt: "", // Label for INFTXT .mtabut.coninf.oitset.labinftxt
oit: {
inftxt: "", // Infotext .mtabut.coninf.oitset.oit.inftxt
inftxt: {}, // Infotext .mtabut.coninf.oitset.oit.inftxt
inflev: "", // Infotext Level .mtabut.coninf.oitset.oit.inflev
},
},
......
......@@ -7,14 +7,7 @@
label="General"
prop="mtabut.coninf.oitinf.oit.inftxt"
>
<c-input
type="textarea"
v-model="model.mtabut.coninf.oitinf.oit.inftxt"
maxlength="60"
:autosize="{ minRows: 4, maxRows: 6 }"
show-word-limit
placeholder="请输入Infotext"
></c-input>
<i-stream-block :stream="model.mtabut.coninf.oitinf.oit.inftxt"></i-stream-block>
</el-form-item>
</c-col>
</c-col>
......@@ -48,14 +41,7 @@
label="Settlement"
prop="mtabut.coninf.oitset.oit.inftxt"
>
<c-input
type="textarea"
v-model="model.mtabut.coninf.oitset.oit.inftxt"
maxlength="60"
:autosize="{ minRows: 4, maxRows: 6 }"
show-word-limit
placeholder="请输入Infotext"
></c-input>
<i-stream-block :stream="model.mtabut.coninf.oitset.oit.inftxt"></i-stream-block>
</el-form-item>
</c-col>
</c-col>
......@@ -114,8 +100,12 @@
<script>
import CommonProcess from "~/mixin/CommonProcess";
import Event from "~/model/Ditopn/Event";
import IStreamBlock from '~/components/IStreamBlock.vue';
export default {
components: {
IStreamBlock
},
inject: ['root'],
props: ["model", "codes"],
mixins: [CommonProcess],
......
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