Kaynağa Gözat

选择整改人修改

duy 1 yıl önce
ebeveyn
işleme
47526212aa

+ 10 - 3
src/global/components/hc-tasks-user/index.vue

@@ -7,7 +7,8 @@
                     <HcIcon v-if="(UserDataList.length - 1) > index" name="arrow-right" ui="arrow-icon-tag" />
                 </template>
                 <div v-if="UserDataList.length <= 0" class="tasks-placeholder">
-                    点击这里选择任务人
+                    <span v-if="!isChangePopele"> 点击这里选择任务人</span>
+                    <span v-else> 点击这里选择整改人</span>
                 </div>
             </div>
         </div>
@@ -192,7 +193,10 @@ const props = defineProps({
         type:Boolean,
         default:false,
     },
-
+    isChangePopele:{
+        type:Boolean,
+        default:false, //显示整改人还是任务人
+    },
 })
 
 //事件
@@ -211,6 +215,7 @@ const tableOwner = ref(props.tableOwner)
 const nodeId = ref(props.nodeId)
 const infoIds = ref(props.infoIds)
 const disabled = ref(props.disabled)
+const isChangePopele = ref(props.isChangePopele)
 //树数据
 const ElTreeProps = { children: 'childRoleList', label: 'roleName' }
 const ElTreeData = ref([{
@@ -232,7 +237,8 @@ watch(() => [
     props.nodeId,
     props.infoIds,
     props.disabled,
-], ([users, pid, cid, type, data, cla, tab, noid, infoid, disa]) => {
+    props.isChangePopele,
+], ([users, pid, cid, type, data, cla, tab, noid, infoid, disa, isChan]) => {
     projectId.value = pid
     contractId.value = cid
     isTypes.value = type
@@ -243,6 +249,7 @@ watch(() => [
     nodeId.value = noid
     infoIds.value = infoid
     disabled.value = disa
+    isChangePopele.value = isChan
 })
 
 //渲染完成

+ 1 - 1
src/views/patrol/add.vue

@@ -111,7 +111,7 @@
                     <el-col :span="8">
                         <el-form-item label="整改人" prop="key4">
                             <HcTasksUser
-                                :disabled="type === 'changeRow' || type === 'review' || type === 'view'"
+                                :disabled="type === 'changeRow' || type === 'review' || type === 'view'" :is-change-popele="true"
                                 :contract-id="contractId" :project-id="projectId" :users="peoples"
                                 ui="w-full" @change="tasksUserChange"
                             />