From ef9eb48046f8dfbb3c18b0f45befcbeddbdf6899 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期三, 29 五月 2024 03:56:23 +0800
Subject: [PATCH] 光纤配置数据回显和保存
---
src/components/view/custom_manage.vue | 65 +++++++++++++++++++++++++++++---
1 files changed, 59 insertions(+), 6 deletions(-)
diff --git a/src/components/view/custom_manage.vue b/src/components/view/custom_manage.vue
index c82f01d..e86a3ea 100644
--- a/src/components/view/custom_manage.vue
+++ b/src/components/view/custom_manage.vue
@@ -49,8 +49,8 @@
<div class="search">
<div class="search_thing">
<div class="search_label">瀹㈡埛鍚嶇О锛�</div>
- <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable
- v-model="componentData.entity.name" @keyup.enter.native="refreshTable()"></el-input></div>
+ <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable v-model="componentData.entity.name"
+ @keyup.enter.native="refreshTable()"></el-input></div>
</div>
<div class="search_thing">
<div class="search_label">璐﹀彿鐘舵�侊細</div>
@@ -110,11 +110,34 @@
<el-input v-model="user.company" size="small" clearable></el-input>
</el-col>
</el-row>
+ <el-row style="line-height: 50px;">
+ <el-col :span="7" style="text-align: right;padding-right: 8px;"><span class="required-span">*
+ </span>鍗曚綅EN锛�</el-col>
+ <el-col :span="15">
+ <el-input v-model="user.companyEn" size="small" clearable></el-input>
+ </el-col>
+ </el-row>
+ <el-row style="line-height: 50px;">
+ <el-col :span="7" style="text-align: right;padding-right: 8px;"><span class="required-span">*
+ </span>宸ュ巶鍩燂細</el-col>
+ <el-col :span="15">
+ <el-input v-model="user.code" size="small" clearable></el-input>
+ </el-col>
+ </el-row>
<el-row style="margin-top: 15px;">
<el-col :span="7" style="text-align: right;padding-right: 8px;"><span class="required-span">*
</span>鍗曚綅鍦板潃锛�</el-col>
<el-col :span="15">
- <el-input type="textarea" v-model="user.address" size="small" clearable :autosize="{minRows: 2, maxRows: 4}"></el-input>
+ <el-input type="textarea" v-model="user.address" size="small" clearable
+ :autosize="{minRows: 2, maxRows: 4}"></el-input>
+ </el-col>
+ </el-row>
+ <el-row style="margin-top: 15px;">
+ <el-col :span="7" style="text-align: right;padding-right: 8px;"><span class="required-span">*
+ </span>鍦板潃EN锛�</el-col>
+ <el-col :span="15">
+ <el-input type="textarea" v-model="user.addressEn" size="small" clearable
+ :autosize="{minRows: 2, maxRows: 4}"></el-input>
</el-col>
</el-row>
</div>
@@ -124,6 +147,13 @@
</span>
</el-dialog>
<el-dialog title="閫夋嫨鐢ㄦ埛" :visible.sync="selectUserDia" width="70%">
+ <div class="search" style="height: 35px; margin-bottom: 9px;">
+ <div class="search_thing">
+ <div class="search_label">鐢ㄦ埛鍚嶏細</div>
+ <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable
+ v-model="componentData2.entity.name" @keyup.enter.native="$refs.ValueTable2.selectList()"></el-input></div>
+ </div>
+ </div>
<div class="body" style="height: 60vh;" v-if="selectUserDia">
<ValueTable ref="ValueTable2" :url="$api.user.selectUserList" :componentData="componentData2" />
</div>
@@ -202,7 +232,6 @@
upIndex: 0,
addDia: false,
addPower: true,
- addDia: false,
user: {
name: null
},
@@ -220,7 +249,19 @@
showSelect: true,
select: false,
do: [],
- tagField: {},
+ tagField: {
+ state: {
+ select: [{
+ value: 1,
+ type: 'success',
+ label: '鍚敤'
+ }, {
+ value: 0,
+ type: 'danger',
+ label: '鍋滅敤'
+ }]
+ }
+ },
selectField: {},
}
}
@@ -254,8 +295,20 @@
this.$message.error('璇峰~鍐欏鎴峰崟浣�')
return
}
+ if (this.user.code == '' || this.user.code == null) {
+ this.$message.error('璇峰~鍐欏伐鍘傚煙')
+ return
+ }
if (this.user.address == '' || this.user.address == null) {
this.$message.error('璇峰~鍐欏崟浣嶅湴鍧�')
+ return
+ }
+ if (this.user.companyEn == '' || this.user.companyEn == null) {
+ this.$message.error('璇峰~鍐欒嫳鏂囧鎴峰崟浣�')
+ return
+ }
+ if (this.user.addressEn == '' || this.user.addressEn == null) {
+ this.$message.error('璇峰~鍐欒嫳鏂囧崟浣嶅湴鍧�')
return
}
this.loading = true
@@ -310,4 +363,4 @@
}
}
}
-</script>
\ No newline at end of file
+</script>
--
Gitblit v1.9.3