From 30cfb2b836a8a3d609518cc295753b58b17a9bc7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 15 十一月 2024 09:15:29 +0800
Subject: [PATCH] 优化

---
 company/src/components/business/OperaContractWindow.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/company/src/components/business/OperaContractWindow.vue b/company/src/components/business/OperaContractWindow.vue
index 2f7b1ce..f66a7a4 100644
--- a/company/src/components/business/OperaContractWindow.vue
+++ b/company/src/components/business/OperaContractWindow.vue
@@ -9,13 +9,13 @@
             <el-form-item label="鍚堝悓鍚嶇О" prop="name">
                 <el-input v-model="form.name" maxlength="50" show-word-limit placeholder="璇疯緭鍏ュ悎鍚屽悕绉�" v-trim/>
             </el-form-item>
-            <el-form-item label="鍚堝悓瀵硅薄" prop="companyType">
+            <el-form-item label="鍚堝悓瀵硅薄" prop="companyType" v-if="type !== 2">
                 <el-radio-group v-model="form.companyType" @change="getList">
                     <el-radio :label="0">浼佷笟</el-radio>
                     <el-radio :label="1">鍟嗘埛</el-radio>
                 </el-radio-group>
             </el-form-item>
-            <el-form-item label="浼佷笟/鍟嗘埛鍚嶇О" prop="companyId">
+            <el-form-item :label="type !== 2 ? '浼佷笟/鍟嗘埛鍚嶇О' : '浼佷笟鍚嶇О'" prop="companyId">
                 <el-select v-model="form.companyId" filterable placeholder="璇烽�夋嫨锛屾敮鎸佹悳绱�">
                     <el-option
                         v-for="item in nameList"
@@ -121,7 +121,8 @@
           ],
         },
         nameList: [],
-        list: []
+        list: [],
+        type: null
       }
     },
     created () {
@@ -131,8 +132,9 @@
       })
     },
     methods: {
-      open (title, target) {
+      open (title, target, type) {
         this.title = title
+        this.type = type
         this.visible = true
         if (this.userInfo.type === 0) {
           this.list = [{ label: '浼佷笟', id: 0 },{ label: '鍟嗘埛', id: 1 }]

--
Gitblit v1.9.3