From 6f1ad9bcb73a415f1d45f1adc6bdeb3e80ddf95f Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 05 三月 2024 09:33:39 +0800
Subject: [PATCH] mrshi
---
company/src/components/business/OperaCompanyWindow.vue | 45 ++++++++++++++++++++++++++-------------------
1 files changed, 26 insertions(+), 19 deletions(-)
diff --git a/company/src/components/business/OperaCompanyWindow.vue b/company/src/components/business/OperaCompanyWindow.vue
index 95a701d..04cf3eb 100644
--- a/company/src/components/business/OperaCompanyWindow.vue
+++ b/company/src/components/business/OperaCompanyWindow.vue
@@ -55,7 +55,7 @@
<UploadAvatarImage :uploadData="{ folder: 'company' }" :file="form.file" @uploadSuccess="result" />
</div>
</el-form-item>
- <el-form-item label="娉曚汉韬唤璇�" prop="idcardImgList">
+ <el-form-item label="娉曚汉韬唤璇�" prop="idcardImgList" style="height: 120px">
<div style="width: 100%; display: flex; align-items: center;">
<UploadAvatarImage :uploadData="{ folder: 'company' }" :file="form.file1" @uploadSuccess="result1" />
<div style="width: 15px;height: 100%;"></div>
@@ -85,15 +85,15 @@
<el-table-column
align="center"
label="淇濋櫓鏂规">
- <template slot-scope="{row}">
- <el-select v-model="row.solutionBaseId" placeholder="璇烽�夋嫨">
- <el-option
- v-for="item in programme"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
+ <template slot-scope="scope">
+ <el-select v-model="scope.row.solution" value-key="id" placeholder="璇烽�夋嫨" change="changeSolution($event,scope.$index)">
+ <el-option
+ v-for="item in programme"
+ :key="item.id"
+ :label="item.name"
+ :value="item">
+ </el-option>
+ </el-select>
</template>
</el-table-column>
<el-table-column
@@ -129,7 +129,7 @@
data () {
return {
// 琛ㄥ崟鏁版嵁
- form: {
+ initParam:{
id: null,
name: '',
code: '',
@@ -155,12 +155,12 @@
},
solutionList: [
{
- solutionBaseId: '',
+ solution: null,
canAdd: 0,
canReduce: 0
}
],
- type: '',
+ type: '0',
file: {
imgurl: '',
imgurlfull: ''
@@ -176,8 +176,9 @@
file3: {
imgurl: '',
imgurlfull: ''
- }
+ },
},
+ form: {},
timer: null,
num: 0,
// 楠岃瘉瑙勫垯
@@ -197,9 +198,9 @@
phone: [
{ required: true, message: '璇疯緭鍏ユ墜鏈哄彿' }
],
- taxAccount: [
- { required: true, message: '璇疯緭鍏ユ墜鏈哄彿' }
- ],
+ // taxAccount: [
+ // { required: true, message: '璇疯緭鍏ラ摱琛屽崱' }
+ // ],
email: [
{ required: true, message: '璇疯緭鍏ヨ璇侀偖绠�' }
],
@@ -237,6 +238,10 @@
}
},
methods: {
+ changeSolution(row,index){
+ this.form.solutionList[index].solution=row
+ // console.log(this.form.solutionList)
+ },
send () {
if (!this.form.phone) {
this.$message.warning('璇疯緭鍏ユ墜鏈哄彿')
@@ -257,9 +262,10 @@
}
}, 1000)
},
- open (title, target) {
+ open (title, target,type) {
this.title = title
this.visible = true
+ this.form = this.initParam
this.getAll()
// 鏂板缓
if (target == null) {
@@ -292,7 +298,8 @@
},
add () {
this.form.solutionList.push({
- solutionName: '',
+ solutionId:null,
+ solution: {},
canAdd: '',
canReduce: ''
})
--
Gitblit v1.9.3