Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
94f3740e
Commit
94f3740e
authored
Oct 15, 2021
by
张超军
Browse files
Options
Browse Files
Download
Plain Diff
eee
parents
c44661a6
c2501ec6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
30 deletions
+73
-30
src/assets/css/el-table-style.css
+27
-0
src/views/cxyrd/QueryConfirm.vue
+32
-16
src/views/cxyrd/TT.vue
+4
-2
src/views/cxyrd/modules/TTFingerPrint.vue
+10
-12
No files found.
src/assets/css/el-table-style.css
View file @
94f3740e
...
@@ -56,3 +56,29 @@ width: 100%;
...
@@ -56,3 +56,29 @@ width: 100%;
color
:
#333333
;
color
:
#333333
;
line-height
:
16px
;
line-height
:
16px
;
}
}
.tt_candidate_table
{
width
:
100%
}
/* 修改表头内容 */
.tt_candidate_table
.el-table__header-wrapper
th
{
width
:
340px
;
height
:
32px
;
background
:
#F6F8FA
;
/*width: 352px;*/
font-size
:
14px
;
color
:
#282F3C
;
line-height
:
22px
;
}
/* 修改表格里内容 */
.tt_candidate_table
.el-table__body-wrapper
tr
td
{
width
:
340px
;
height
:
24px
;
background
:
#FFFFFF
;
font-size
:
12px
;
font-family
:
MicrosoftYaHei
;
color
:
#333333
;
line-height
:
16px
;
}
/* 选中的颜色 */
.tt_candidate_table
tbody
tr
.current-row
>
td
{
background
:
#F5F5F7
;
}
\ No newline at end of file
src/views/cxyrd/QueryConfirm.vue
View file @
94f3740e
...
@@ -668,30 +668,46 @@ export default {
...
@@ -668,30 +668,46 @@ export default {
hadnlExpandChange
(
row
,
expanded
)
{
hadnlExpandChange
(
row
,
expanded
)
{
// 获取下标
// 获取下标
var
i
=
this
.
list
.
findIndex
(
table
=>
table
.
queryId
===
row
.
queryId
);
var
i
=
this
.
list
.
findIndex
(
table
=>
table
.
queryId
===
row
.
queryId
);
// var i = this.tableData.findIndex(table => table.id === row.id);
console
.
log
(
i
);
if
(
expanded
)
{
if
(
expanded
)
{
console
.
info
(
"展开时row数据"
,
this
.
list
[
i
]);
this
.
list
[
i
]
=
{
qid
:
row
.
qid
,
children
:
row
.
children
,
queryId
:
row
.
queryId
};
this
.
$forceUpdate
();
// this.$set(this.tableData[i], "barcode", "");
// 保证临时变量中存在下标属性,方便后续折叠时取值
// 保证临时变量中存在下标属性,方便后续折叠时取值
row
.
index
=
i
;
//
row.index = i;
// // push到临时数组中
// // push到临时数组中
// this.arr.push(row);
// this.arr.push(row);
// 清空表格数据
// 清空表格数据
var
obj
=
{
// var obj = {
// qid: row.qid,
// children: row.children,
// queryId: row.queryId
// };
// this.list[i] = obj;
}
else
{
console
.
info
(
"折叠时row数据"
,
this
.
list
[
i
]);
this
.
list
[
i
]
=
{
qid
:
row
.
qid
,
qid
:
row
.
qid
,
children
:
row
.
children
,
children
:
row
.
children
,
queryId
:
row
.
queryId
queryId
:
row
.
queryId
,
barcode
:
row
.
children
[
0
].
barcode
,
maxcandidatecnt
:
row
.
children
[
0
].
maxcandidatecnt
,
querytype
:
row
.
children
[
0
].
querytype
,
queryStateName
:
row
.
children
[
0
].
queryStateName
,
hitpossibility
:
row
.
children
[
0
].
hitpossibility
,
queryclass
:
row
.
children
[
0
].
queryclass
,
affirmtime
:
row
.
children
[
0
].
affirmtime
,
requestdatetime
:
row
.
children
[
0
].
requestdatetime
,
userdesc
:
row
.
children
[
0
].
userdesc
};
};
this
.
list
[
i
]
=
obj
;
this
.
$forceUpdate
();
}
else
{
console
.
info
(
"塞完数据的row"
,
this
.
list
[
i
]);
console
.
info
(
"折叠时row数据"
,
row
);
var
rowObj
=
row
.
children
[
0
];
rowObj
.
children
=
row
.
children
;
// this.$set(rowObj, "children", row.children);
// // 根据下标取临时变量
// var rowObj = this.arr.find(row => row.index === i);
// 赋值
console
.
info
(
"折叠时rowObj数据"
,
rowObj
);
this
.
list
[
i
]
=
rowObj
;
this
.
$set
(
this
.
list
[
i
],
'hasChildren'
,
true
)
console
.
log
(
this
.
list
[
i
]);
}
}
},
},
// table表格选中获取数据
// table表格选中获取数据
...
...
src/views/cxyrd/TT.vue
View file @
94f3740e
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<div
class=
"bz-btn"
@
click=
"Bz"
>
比中
</div>
<div
class=
"bz-btn"
@
click=
"Bz"
>
比中
</div>
<div
class=
"rd-btn"
@
click=
"Rdwc"
>
认定完成
</div>
<div
class=
"rd-btn"
@
click=
"Rdwc"
>
认定完成
</div>
</div>
</div>
e
</div>
</div>
<div
class=
"tt_main"
>
<div
class=
"tt_main"
>
<div
class=
"tt_main_top"
>
<div
class=
"tt_main_top"
>
...
@@ -19,7 +20,7 @@
...
@@ -19,7 +20,7 @@
<el-table
<el-table
highlight-current-row
highlight-current-row
:data=
"tableData"
:data=
"tableData"
class=
"
l
t_candidate_table"
class=
"
t
t_candidate_table"
height=
"150"
height=
"150"
@
current-change=
"handleCurrentChange"
@
current-change=
"handleCurrentChange"
>
>
...
@@ -187,8 +188,9 @@ export default {
...
@@ -187,8 +188,9 @@ export default {
}
}
},
},
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
console
.
info
(
val
);
this
.
destbarcode
=
val
.
destbarcode
;
this
.
destbarcode
=
val
.
destbarcode
;
console
.
info
(
this
.
destbarcode
);
this
.
$bus
.
emit
(
"ccbarcode"
,
this
.
destbarcode
);
},
},
//比中
//比中
Bz
()
{
Bz
()
{
...
...
src/views/cxyrd/modules/TTFingerPrint.vue
View file @
94f3740e
...
@@ -168,14 +168,7 @@
...
@@ -168,14 +168,7 @@
<
script
>
<
script
>
export
default
{
export
default
{
name
:
"TTFingerPrint"
,
name
:
"TTFingerPrint"
,
props
:
[
"destBarcodeData"
],
watch
:
{
destBarcodeData
(
val
)
{
if
(
val
)
{
this
.
destbarcode
=
val
;
}
}
},
data
()
{
data
()
{
return
{
return
{
activeIndex
:
"1"
,
activeIndex
:
"1"
,
...
@@ -235,6 +228,8 @@ export default {
...
@@ -235,6 +228,8 @@ export default {
{
name
:
"环"
,
code
:
14
,
img
:
null
},
{
name
:
"环"
,
code
:
14
,
img
:
null
},
{
name
:
"小"
,
code
:
15
,
img
:
null
}
{
name
:
"小"
,
code
:
15
,
img
:
null
}
],
],
pageHeight
:
0
,
scrollFLag
:
true
,
qid
:
null
,
qid
:
null
,
currentQqid
:
null
,
currentQqid
:
null
,
sourcebarcode
:
null
,
sourcebarcode
:
null
,
...
@@ -316,11 +311,11 @@ export default {
...
@@ -316,11 +311,11 @@ export default {
});
});
},
},
// 获取目标指纹图
// 获取目标指纹图
getDestFingerPrintDetail
()
{
getDestFingerPrintDetail
(
barcode
)
{
let
self
=
this
;
let
self
=
this
;
// 滚动 目标数据
// 滚动 目标数据
this
.
$axios
this
.
$axios
.
get
(
"/api/org/rollByBarcode/"
+
this
.
dest
barcode
)
.
get
(
"/api/org/rollByBarcode/"
+
barcode
)
.
then
(
function
(
response
)
{
.
then
(
function
(
response
)
{
if
(
response
.
data
.
code
===
0
)
{
if
(
response
.
data
.
code
===
0
)
{
response
.
data
.
ret
.
forEach
((
element
,
index
)
=>
{
response
.
data
.
ret
.
forEach
((
element
,
index
)
=>
{
...
@@ -345,7 +340,7 @@ export default {
...
@@ -345,7 +340,7 @@ export default {
});
});
// 平面 目标
// 平面 目标
this
.
$axios
this
.
$axios
.
get
(
"/api/org/plainByBarcode/"
+
this
.
dest
barcode
)
.
get
(
"/api/org/plainByBarcode/"
+
barcode
)
.
then
(
function
(
response
)
{
.
then
(
function
(
response
)
{
console
.
info
(
"平面"
,
response
);
console
.
info
(
"平面"
,
response
);
if
(
response
.
data
.
code
===
0
)
{
if
(
response
.
data
.
code
===
0
)
{
...
@@ -372,7 +367,10 @@ export default {
...
@@ -372,7 +367,10 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
getSourceFingerPrintDetail
();
this
.
getSourceFingerPrintDetail
();
this
.
getDestFingerPrintDetail
();
this
.
$bus
.
on
(
"ccbarcode"
,
code
=>
{
console
.
log
(
code
);
this
.
getDestFingerPrintDetail
(
code
);
});
}
}
};
};
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment