From ec07571bee22583e40138a3bf665a3eb8cf850ef Mon Sep 17 00:00:00 2001
From: wang <3597712270@qq.com>
Date: 星期三, 17 四月 2024 10:16:59 +0800
Subject: [PATCH] 大理片笼更改图片
---
UI-Project/src/views/Returns/returns.vue | 67 +++++++++++++++++----------------
1 files changed, 35 insertions(+), 32 deletions(-)
diff --git a/UI-Project/src/views/Returns/returns.vue b/UI-Project/src/views/Returns/returns.vue
index a8e0996..1a07941 100644
--- a/UI-Project/src/views/Returns/returns.vue
+++ b/UI-Project/src/views/Returns/returns.vue
@@ -16,6 +16,22 @@
import { ref, onMounted } from "vue";
// import http from "@/http/index";
const tableData = ref([])
+let app = ref({
+ data(){
+ return {
+ enableState:'',
+ }
+ },
+ })
+// const tableData = ref({
+// workstationId:'',
+// patternWidth :'',
+// patternHeigth :'',
+// filmsId :'',
+// number :'',
+// patternThickness :'',
+// enableState:'',
+// })
// request.post(`/LoadGlass/list`).then((res) => {
// if (res.code == 200) {
// console.log(res.data);
@@ -37,7 +53,10 @@
request
.get("/LoadGlass/list")
.then((res: any) => {
+ if (res.code == 200) {
tableData.value = res.data;
+ // let self = this
+ }
})
.catch((err: any) => {});
});
@@ -84,7 +103,6 @@
}
}
}
-
const options = [
{
value: 'Option1',
@@ -122,20 +140,20 @@
// thick: '191',
// }
// ]
-const tableDataa = [
- {
- long: '1005',
- wide: '183.6',
- thick: '1991',
- station: '1'
- },
- {
- long: '105',
- wide: '183',
- thick: '191',
- station: '1'
- }
-]
+// const tableDataa = [
+// {
+// long: '1005',
+// wide: '183.6',
+// thick: '1991',
+// station: '1'
+// },
+// {
+// long: '105',
+// wide: '183',
+// thick: '191',
+// station: '1'
+// }
+// ]
const open = () => {
ElMessageBox.confirm(
'鏄惁鍒犻櫎璇ユ潯淇℃伅?',
@@ -230,20 +248,6 @@
<el-button style="margin-top: 5px;margin-left: 20px;" id="searchButton" type="danger" >鍋滄浠诲姟</el-button>
<el-card style="flex: 1;margin-left: 10px;margin-top: 20px;" v-loading="loading">
<div style="width: 98%; height: calc(100% - 35px); overflow-y: auto">
- <!-- <el-table height="100%" ref="table" :data="tableData" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}">
- <el-table-column prop="id" align="center" label="宸ョ▼鍙�" min-width="80" />
- <el-table-column prop="long" align="center" label="鍘熺墖瀹�" min-width="120" />
- <el-table-column prop="wide" align="center" label="鍘熺墖闀�" min-width="120" />
- <el-table-column prop="thick" align="center" label="鑶滅郴" min-width="120" />
- <el-table-column prop="thick" align="center" label="鏁伴噺" min-width="120" />
- <el-table-column
- align="center"
- label="鐘舵��"
- min-width="80"
- >
- <el-tag type="success">灏辩华</el-tag>
- </el-table-column>
- </el-table> -->
<el-table
height="100%"
ref="table"
@@ -263,8 +267,8 @@
min-width="80"
prop="enableState"
>
- <el-tag type="success">灏辩华</el-tag>
- <!-- <el-tag type="danger" v-if="row.enableState==2">鏈氨缁�</el-tag> -->
+ <el-tag type="success" v-if=" tableData.enableState == '1'">灏辩华</el-tag>
+ <!-- <el-tag type="danger" v-if="this.enableState === '2'">鏈氨缁�</el-tag> -->
</el-table-column>
</el-table>
</div>
@@ -283,7 +287,6 @@
<div style="margin-left: 50px;margin-bottom: 10px;">
<el-form-item label="宸ョ▼鍙凤細" :required="true">
<el-select
- v-model="form.workstationId"
clearable
placeholder="璇烽�夋嫨宸ョ▼"
style="width: 300px"
--
Gitblit v1.8.0