From 7416356c7658db835e3e47dbb93f49b7e0cd762b Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期二, 05 十二月 2023 17:30:11 +0800
Subject: [PATCH] 6
---
web/src/views/modules/configItemWarehouse/ConfigItemWarehouse-AddOrUpdate.vue | 51 +++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 45 insertions(+), 6 deletions(-)
diff --git a/web/src/views/modules/configItemWarehouse/ConfigItemWarehouse-AddOrUpdate.vue b/web/src/views/modules/configItemWarehouse/ConfigItemWarehouse-AddOrUpdate.vue
index 9941199..733caa6 100644
--- a/web/src/views/modules/configItemWarehouse/ConfigItemWarehouse-AddOrUpdate.vue
+++ b/web/src/views/modules/configItemWarehouse/ConfigItemWarehouse-AddOrUpdate.vue
@@ -62,7 +62,7 @@
<el-input v-model="row.retrospectVersion" placeholder="涓婃函鐗�"></el-input>
</template>
</el-table-column>
- <el-table-column prop="secretClass" label="瀵嗙骇" width="80" align="center">
+ <el-table-column prop="secretClass" label="瀵嗙骇" width="100" align="center">
<template v-slot="{ row }">
<zt-dict v-model="row.secretClass" placeholder="瀵嗙骇" dict="secret_class"
clearable></zt-dict>
@@ -75,10 +75,28 @@
v-model="row.files"/>
</template>
</el-table-column>
+ <el-table-column fixed="right" label="绠$悊" width="80" align="center">
+ <template v-slot="{ row }">
+ <zt-table-button @click="">绠$悊</zt-table-button>
+<!-- <table-uploader busi-type="config_item_warehouse" model-name="row" :dataForm="row"-->
+<!-- v-model="row.files"/>-->
+ </template>
+ </el-table-column>
</el-table>
- <div class="icon-container" @click="addConfigItemWarehouseRow()">
+ <div class="icon-container">
+ <el-dropdown @command="handleCommand">
+ <span class="el-dropdown-link">
+ <i class="el-icon-plus"></i>
+ </span>
+ <el-dropdown-menu slot="dropdown">
+ <el-dropdown-item v-for="item in menuOptions" :key="item.command" :command="item.command">
+ {{ item.name }}
+ </el-dropdown-item>
+ </el-dropdown-menu>
+ </el-dropdown>
+
<!-- 鏀剧疆鍥哄畾鐨勫浘鏍� -->
- <i class="el-icon-plus"></i>
+<!-- <i class="el-icon-plus"></i>-->
</div>
</div>
</div>
@@ -161,7 +179,7 @@
</div>
<div style="width: calc(100% - 120px)" class="el-border-left">
<el-form-item class="el-wt-form-item-margin" label-width="20px" style="width: 85%">
- <zt-dict :disabled="stepMarker=='wplz_bmsh'" v-model="dataForm.configItemWarehouse.approvalOpinions" dict="is_pass" :radio="true"
+ <zt-dict :disabled="stepMarker!=='wplz_bmsh'" v-model="dataForm.configItemWarehouse.approvalOpinions" dict="is_pass" :radio="true"
clearable></zt-dict>
</el-form-item>
<el-form-item label-width="80%" label="绛惧瓧锛�" style="width: 65%">
@@ -179,6 +197,7 @@
<div style="width: calc(100% - 120px)" class="el-border-left">
<el-form-item class="el-CMTextarea" style="width: 100%;padding: 5px">
<el-input v-if="stepMarker=='wplz_cmcz'" type="textarea" :rows="2" placeholder="璇疯緭鍏ュ唴瀹�" v-model="dataForm.configItemWarehouse.projectCmOperations"></el-input>
+ <span v-else>{{dataForm.configItemWarehouse.projectCmOperations}}</span>
</el-form-item>
<el-form-item label-width="80%" label="鎿嶄綔浜猴細" style="width: 65%">
<span>{{dataForm.configItemWarehouse.operator}}</span>
@@ -210,6 +229,13 @@
disabled:true,
stepMarker: '',
title: '鏌ョ湅',
+ menuOptions: [
+ { command: 'a', name: '杞欢娴嬭瘯濮旀墭鍗�' },
+ { command: 'b', name: '杞欢闇�姹傝鏍艰鏄�' },
+ { command: 'c', name: '杞欢璁捐璇存槑' },
+ { command: 'd', name: '杞欢鐮斿埗浠诲姟涔�' },
+ { command: 'e', name: '鍏朵粬' }
+ ],
dataForm: {
id: '',
configItemWarehouse:{
@@ -275,8 +301,21 @@
}
console.log(this.dataForm.id,this.dataForm.projectId,'params params')
},
- addConfigItemWarehouseRow(){
- this.dataForm.configItemList.push({})
+ // addConfigItemWarehouseRow(){
+ // this.dataForm.configItemList.push({})
+ // this.$nextTick(()=>{
+ // const tableBody=this.$refs.tableConfigItemList.$el.querySelector('.el-table__body-wrapper')
+ // tableBody.scrollTop = tableBody.scrollHeight;
+ // })
+ // },
+ handleCommand(command){
+ const selectedItem = this.menuOptions.find(item => item.command === command);
+ if (selectedItem.command === 'e') {
+ this.dataForm.configItemList.push({})
+ }else if(selectedItem){
+ this.dataForm.configItemList.push({itemName:selectedItem.name})
+ }
+
this.$nextTick(()=>{
const tableBody=this.$refs.tableConfigItemList.$el.querySelector('.el-table__body-wrapper')
tableBody.scrollTop = tableBody.scrollHeight;
--
Gitblit v1.9.1