Commit 23335521 by gao_yingdong

输入框

parent fc41eb0c
......@@ -68,6 +68,7 @@
<el-input
type="textarea"
autosize
:rows="4"
:placeholder="item2.placeholder"
v-model="formD[item2.id]"
v-else-if="item2.type == 'textarea'"
......@@ -769,6 +770,7 @@ export default {
}
},
getSeleted(item, value, flag) {
debugger
let self = this;
let ret2 = self.emitSeleted.find(v => {
return v.id == item.id;
......@@ -893,4 +895,8 @@ export default {
</style>
<style scoped lang="scss">
@import "../assets/styles/form.scss";
/deep/textarea.el-textarea__inner {
// height: 100px !important;
width: 96%;
}
</style>
\ No newline at end of file
......@@ -198,7 +198,10 @@
columnTitle.prop == 'zhfzxyrWffzjlms'
"
>
<span class="none" v-html="scope.row[columnTitle.prop]"></span
<span
class="none"
v-html="showDate(scope.row.jyaq, formData.jyaq)"
></span
><a
href="javascript:void(0);"
onclick='javascript:this.parentNode.style.display="none";this.parentNode.nextSibling.style.display="block"'
......@@ -227,7 +230,7 @@
>
<span
style="display: block"
v-html="scope.row[columnTitle.prop]"
v-html="showDate(scope.row.jyaq, formData.jyaq)"
></span
><a
href="javascript:void(0);"
......@@ -249,7 +252,12 @@
v-show="scope.row['flag'] == '1'"
@click="moreDialog(scope.row)"
></i>
<el-popover v-if="asjbhIcon != 'tbShow'" placement="right" effect="light" trigger="click">
<el-popover
v-if="asjbhIcon != 'tbShow'"
placement="right"
effect="light"
trigger="click"
>
<div>
<ul
class="popUl"
......@@ -261,8 +269,8 @@
ychyLink(
item.path,
item.id,
scope.row[columnTitle.prop]
,item
scope.row[columnTitle.prop],
item
)
"
v-for="item in ychyDataList"
......@@ -284,7 +292,12 @@
<!--证件号码-->
<div v-if="columnTitle.prop == 'zhfzxyrCyzjZjhm'">
{{ scope.row[columnTitle.prop] }}
<el-popover v-if="asjbhIcon != 'tbShow'" placement="right" effect="light" trigger="click">
<el-popover
v-if="asjbhIcon != 'tbShow'"
placement="right"
effect="light"
trigger="click"
>
<div>
<ul
class="popUl"
......@@ -321,7 +334,12 @@
</div>
<div v-if="columnTitle.prop == 'bhrCyzjZjhm'">
{{ scope.row[columnTitle.prop] }}
<el-popover v-if="asjbhIcon != 'tbShow'" placement="right" effect="light" trigger="click">
<el-popover
v-if="asjbhIcon != 'tbShow'"
placement="right"
effect="light"
trigger="click"
>
<div>
<ul
class="popUl"
......@@ -521,6 +539,7 @@ export default {
type: Array,
default: () => [],
},
formData: Object,
yjFlE: Object,
theadType: String,
theadTitle: String,
......@@ -532,6 +551,7 @@ export default {
},
data() {
return {
formData: this.formData,
tableDataLength: this.dataLength,
centerDialogVisible: false,
tableLoading: this.tableLoadingEmit,
......@@ -578,6 +598,37 @@ export default {
};
},
methods: {
// 筛选变色
showDate(val, keyword) {
debugger;
console.log(val);
let _self = this;
console.log(keyword);
// let valString = "";
// // let valString1 = '';
// let listWord = [];
// listWord = keyword.split(",");
console.log(listWord);
val = val + "";
if (val.indexOf(keyword) !== -1 && keyword !== "") {
return val.replace(
keyword,
'<font color="#409EFF">' + keyword + "</font>"
);
}
// else if (listWord.length > 0) {
// listWord.forEach((item,index) => {
// valString = item
// });
// let valString1 = val.replace(valString, '<font color="#409EFF">' + valString + "</font>" )
// // valString1 = valString.split();
// // valString1.join(',');
// // return valString1;
// }
else {
return val;
}
},
ychyLink(path, id, val) {
debugger;
if (id == "ajda") {
......
......@@ -621,7 +621,7 @@ let jccxAjxxDefaultFormField = {
{
name: '案情关键词',
id: 'jyaq',
type: 'text',
type: 'textarea',
value: '',
placeholder: '多个关键词之间用逗号隔开',
col: '3'
......@@ -1936,7 +1936,7 @@ let jccxAjxxFormField = {
{
name: '案情关键词',
id: 'jyaq',
type: 'text',
type: 'textarea',
value: '',
placeholder: '多个关键词之间用逗号隔开',
col: '3'
......
......@@ -624,10 +624,10 @@ let jccxAjxxDefaultFormField = {
{
name: '案情关键词',
id: 'jyaq',
type: 'text',
type: 'textarea',
value: '',
placeholder: '多个关键词之间用逗号隔开',
col: '3'
col: '1'
},
{
name: '关键词关联类型',
......@@ -1957,10 +1957,10 @@ let jccxAjxxFormField = {
{
name: '案情关键词',
id: 'jyaq',
type: 'text',
type: 'textarea',
value: '',
placeholder: '多个关键词之间用逗号隔开',
col: '3'
col: '1'
},
{
name: '关键词关联类型',
......
......@@ -22,7 +22,9 @@
:key="element.id"
:class="
element.id == 'ajzlb' ||
element.id == 'jyaq' ||
element.id == 'ajxzlb' ||
element.id == 'jyaqType' ||
element.id == 'xalbdmbcms'
? 'list-group-item undraggable group-item'+element.col
: 'list-group-item draggable group-item'+element.col
......@@ -350,7 +352,7 @@ export default {
},
methods: {
move(obj, type, flag) {
if (obj.id != "ajzlb" && obj.id != "ajxzlb" && obj.id != "xalbdmbcms") {
if (obj.id != "ajzlb" && obj.id != "ajxzlb" && obj.id != "xalbdmbcms" && obj.id != "jyaqType" && obj.id != "jyaq") {
let list = [],
waitList = [],
self = this;
......
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