From 46c8d02ada5e72e5525ee7232e5932dbe383ffe6 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期四, 15 八月 2024 15:08:01 +0800
Subject: [PATCH] 修改
---
web/src/views/modules/basicInfo/SelectTyModel.vue | 32 ++++++++++++++------------------
1 files changed, 14 insertions(+), 18 deletions(-)
diff --git a/web/src/views/modules/basicInfo/SelectTyModel.vue b/web/src/views/modules/basicInfo/SelectTyModel.vue
index f290609..9260214 100644
--- a/web/src/views/modules/basicInfo/SelectTyModel.vue
+++ b/web/src/views/modules/basicInfo/SelectTyModel.vue
@@ -4,6 +4,7 @@
<el-card shadow="never" class="aui-card--fill">
<div class="mod-tyProductModel-tyProductModel}">
<zt-table-wraper :query-url=url
+ :paging='false'
v-slot="{ table }">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()">
</el-form>
@@ -12,6 +13,9 @@
@selection-change="changeRow">
<el-table-column type="selection" width="40" align="center"/>
<el-table-column prop="name" label="鍚嶇О"/>
+ <zt-table-column-dict v-if="!pageCode" prop="nodeType" label="鑺傜偣绫诲瀷" dict="product"/>
+ <zt-table-column-dict v-else prop="productType" label="鑺傜偣绫诲瀷" dict="product"/>
+ <el-table-column prop="sort" label="鎺掑簭"/>
</el-table>
</zt-table-wraper>
</div>
@@ -24,15 +28,17 @@
name: 'SelectTyModel',
data() {
return {
- url:'/basicInfo/TyProductModel/page',
+ url: '/basicInfo/TyProductModel/page',
selectList: [],
data: '',
dataForm: {
type: 'noTree',
nodeType: '',
+ shipId:'',
id: '',
pid: '',
name: '',
+ namePath: '',
operationalStatus: '',
standbyState: '',
faultState: '',
@@ -42,35 +48,25 @@
},
components: {},
methods: {
- init(id,params) {
+ init(id, params) {
this.dataForm.nodeType = params.type
this.dataForm.pid = params.id
- this.data = params.data
- if (this.data ==='expect'||this.data==='assign'){
- this.url='/basicInfo/XhProductModel/page'
- }
- console.log(this.dataForm.pid, 'init()')
+ this.dataForm.shipId =params.shipId
+ this.dataForm.namePath =params.namePath
+ console.log(params, 'init()')
},
changeRow(selection) {
console.log(selection, ' changeRow(selection)')
let item = {}
for (item of selection) {
- console.log(item)
item.pid = this.dataForm.pid
+ item.namePath = this.dataForm.namePath
+ item.shipId = this.dataForm.shipId
}
this.selectList = selection
},
async formSubmit() {
- let res
- if (this.data && this.data === 'expect'){
- res = await this.$http.post('/basicInfo/ParamDataExpect/get', this.selectList)
- }else if(this.data && this.data === 'assign') {
- res = await this.$http.post('/basicInfo/ParamDataAssign/get', this.selectList)
- }else
- {
- res = await this.$http.post('/basicInfo/XhProductModel/get', this.selectList)
- }
-
+ let res = await this.$http.post('/basicInfo/XhProductModel/get', this.selectList)
if (res.success) {
await this.$tip.success()
this.$refs.dialog.close()
--
Gitblit v1.9.1