This commit is contained in:
parent
cf47ab9da9
commit
af991dd511
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
|
@ -13,8 +13,8 @@
|
||||||
<el-table
|
<el-table
|
||||||
border
|
border
|
||||||
:data="data.tableData"
|
:data="data.tableData"
|
||||||
style="width: 100%; height: 700px; margin-bottom: 20px"
|
style="width: 100%; height: 712px; margin-bottom: 20px"
|
||||||
max-height="800"
|
max-height="820"
|
||||||
class="table_border"
|
class="table_border"
|
||||||
:row-style="rowState"
|
:row-style="rowState"
|
||||||
:header-cell-style="tableHeaderColor"
|
:header-cell-style="tableHeaderColor"
|
||||||
|
@ -50,8 +50,8 @@
|
||||||
<el-table
|
<el-table
|
||||||
border
|
border
|
||||||
:data="data.tableData1"
|
:data="data.tableData1"
|
||||||
style="width: 100%; height: 700px; margin-bottom: 20px"
|
style="width: 100%; height: 712px; margin-bottom: 20px"
|
||||||
max-height="800"
|
max-height="820"
|
||||||
class="table_border"
|
class="table_border"
|
||||||
:row-style="rowState"
|
:row-style="rowState"
|
||||||
:header-cell-style="tableHeaderColor"
|
:header-cell-style="tableHeaderColor"
|
||||||
|
@ -81,13 +81,29 @@
|
||||||
<i></i>
|
<i></i>
|
||||||
<i></i>
|
<i></i>
|
||||||
</div>
|
</div>
|
||||||
|
<span class="text">
|
||||||
|
<img
|
||||||
|
v-if="data.first"
|
||||||
|
src="@/assets/sy-table/sy_details4.png"
|
||||||
|
class="c"
|
||||||
|
style="width: 350px"
|
||||||
|
@click="change"
|
||||||
|
/>
|
||||||
|
<img
|
||||||
|
v-else
|
||||||
|
src="@/assets/sy-table/sy_details5.png"
|
||||||
|
class="c"
|
||||||
|
style="width: 350px"
|
||||||
|
@click="change"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 97.5%">
|
<div style="width: 97.5%">
|
||||||
<el-table
|
<el-table
|
||||||
border
|
border
|
||||||
:data="data.tableData2"
|
:data="data.tableData2"
|
||||||
style="width: 100%; height: 700px; margin-bottom: 20px"
|
style="width: 100%; height: 712px; margin-bottom: 20px"
|
||||||
max-height="800"
|
max-height="800"
|
||||||
class="table_border"
|
class="table_border"
|
||||||
:row-style="rowState"
|
:row-style="rowState"
|
||||||
|
@ -118,6 +134,7 @@
|
||||||
import { ref, reactive } from "vue";
|
import { ref, reactive } from "vue";
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
|
first: true,
|
||||||
tableData: [
|
tableData: [
|
||||||
{
|
{
|
||||||
fullName: "王*",
|
fullName: "王*",
|
||||||
|
@ -394,6 +411,18 @@ const rowState = (row) => {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const leftchoose = ref({
|
||||||
|
first: "1",
|
||||||
|
second: "1",
|
||||||
|
third: "1",
|
||||||
|
});
|
||||||
|
const change = (name, index) => {
|
||||||
|
data.first = !data.first;
|
||||||
|
// leftchoose.value[name] = index;
|
||||||
|
// leftchoose.first = index;
|
||||||
|
console.log(leftchoose, 666);
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
@ -714,6 +743,7 @@ const rowState = (row) => {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 5px;
|
right: 5px;
|
||||||
top: 1px;
|
top: 1px;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
.gTitle {
|
.gTitle {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -726,7 +756,7 @@ const rowState = (row) => {
|
||||||
|
|
||||||
.c {
|
.c {
|
||||||
width: 130px;
|
width: 130px;
|
||||||
height: 42px;
|
height: 33px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue