Commit 3ae963c9 by liuxin

inputXml控件调整

parent 4a5e5df5
...@@ -62,16 +62,15 @@ export default { ...@@ -62,16 +62,15 @@ export default {
methods: { methods: {
show: function (rows) { show: function (rows) {
let strs = rows.length > 0 ? rows[0] : ""; let strs = rows.length > 0 ? rows[0] : "";
var result = "";
if (strs.startsWith("<?xml")) { if (strs.startsWith("<?xml")) {
this.isXml = true; this.isXml = true;
var pattern = /<tdfmt\s[^>]*>(.*)<\/tdfmt>/; var pattern = /<tdfmt\s[^>]*>(.*)<\/tdfmt>/;
var temp = pattern.exec(strs); var temp = pattern.exec(strs);
if (temp != null) { if (temp != null) {
result = temp[1]; strs = temp[1];
} }
} }
return result.replace(/<br\/>/g, "\n"); return strs.replace(/<br\/>/g, "\n");
}, },
format: function (value) { format: function (value) {
if(this.isXml){ if(this.isXml){
......
...@@ -97,7 +97,6 @@ ...@@ -97,7 +97,6 @@
size="small" size="small"
icon="el-icon-search" icon="el-icon-search"
type="primary" type="primary"
@click="onExtkey"
></c-button> ></c-button>
</template> </template>
</c-fullbox> </c-fullbox>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
prop="mtabut.coninf.oitinf.oit.inftxt" prop="mtabut.coninf.oitinf.oit.inftxt"
> >
<c-input-xml <c-input-xml
:maxRows="6" :maxRows="10"
maxlength="60" maxlength="60"
resize="none" resize="none"
show-word-limit show-word-limit
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
> >
<c-input-xml <c-input-xml
type="textarea" type="textarea"
:maxRows="6" :maxRows="10"
maxlength="60" maxlength="60"
resize="none" resize="none"
show-word-limit show-word-limit
......
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