Commit e0a66dce authored by 黄媛媛's avatar 黄媛媛

11

parent f9797a77
......@@ -131,7 +131,7 @@
}
.vue-treeselect__control{
border: none;
height: 28px;
height: 32px;
}
:focus {
......@@ -153,6 +153,7 @@
height:44px;
line-height:44px;
border-radius:22px;
cursor: pointer;
}
.MyEditForm .btnformItem .submitBtn{
......
......@@ -14,24 +14,7 @@
<img @click="Add(data)" style="width:12px;height:12px;margin-left:15px" src="../../assets/img/add.png" alt="">
<img @click="Edit(data)" style="width:12px;height:12px;margin:0 15px" src="../../assets/img/treeedit.png" alt="">
<img @click="DeleteNode(data)" style="width:12px;height:12px" src="../../assets/img/treedelete.png" alt="">
<!-- <el-button
type="text"
size="mini"
@click="() => Add(data)">
添加
</el-button>
<el-button
type="text"
size="mini"
@click="() => Edit(data)">
编辑
</el-button>
<el-button
type="text"
size="mini"
@click="() => DeleteNode(node, data)">
删除
</el-button> -->
</span>
</span>
</el-tree>
......@@ -77,28 +60,32 @@
:title="dialogtitle"
:visible.sync="dialogState"
width="30%">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px">
<el-form-item label="分类名称" prop="Name">
<el-input v-model="addMsg.Name"></el-input>
<el-form class="MyEditForm" :model="addMsg" :rules="rules" ref="addMsg" label-width="0">
<el-form-item label="" prop="Name">
<span class="label">分类名称</span>
<el-input size="small" v-model="addMsg.Name"></el-input>
</el-form-item>
<el-form-item label="层级" prop="Tier">
<el-select v-model="addMsg.Tier" placeholder="请选择层级" @change="getflList(),addMsg.ParentId=''">
<el-form-item label="" prop="Tier">
<span class="label">层级</span>
<el-select size="small" v-model="addMsg.Tier" placeholder="请选择层级" @change="getflList(addMsg.Tier),addMsg.ParentId=''">
<el-option v-for='item in layerTierList' :label='item.name' :value='item.id' :key="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item label="上级分类" prop="ParentId">
<el-select v-model="addMsg.ParentId" placeholder="请选择上级分类">
<el-form-item label="" prop="ParentId">
<span class="label">上级分类</span>
<el-select size="small" v-model="addMsg.ParentId" placeholder="请选择上级分类">
<el-option v-for='item in highList' :label='item.Name' :value='item.Id' :key="item.Id"></el-option>
</el-select>
</el-form-item>
<el-form-item label="排序" prop="Sort">
<el-input type="text" v-model="addMsg.Sort"
<el-form-item label="" prop="Sort">
<span class="label">排序</span>
<el-input size="small" type="text" v-model="addMsg.Sort"
placeholder="请输入"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submitForm('addMsg')">确定</el-button>
<el-button @click="resetForm('addMsg')">重置</el-button>
</el-form-item>
<div class="btnformItem">
<span class="submitBtn" type="primary" @click="submitForm('addMsg')">确定</span>
<span class="exitBtn" @click="dialogState=false">取消</span>
</div>
</el-form>
</el-dialog>
</div>
......@@ -213,6 +200,7 @@ export default {
this.addMsg.Id=data.Id;
this.addMsg.Tier=data.Tier;
this.addMsg.Sort=data.Sort;
console.log("data",data)
this.getflList(data.Tier)
},
DeleteNode(node,data){
......@@ -278,6 +266,7 @@ export default {
this.$refs[formName].resetFields();
},
getflList(val){
console.log("val",val)
this.Setinfo.Tier=val-1;
if(this.Setinfo.Tier==0){
this.highList=[];
......
......@@ -129,20 +129,20 @@
<el-form class="MyEditForm" :model="addMsg" :rules="rules" ref="addMsg" label-width="0px">
<el-form-item label="" prop="Name">
<span class="label">资产名称</span>
<el-input size="mini" v-model="addMsg.Name" placeholder="请输入"></el-input>
<el-input size="small" v-model="addMsg.Name" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="" prop="SerialNumber">
<span class="label">序列号</span>
<el-input size="mini" v-model="addMsg.SerialNumber" placeholder="请输入"></el-input>
<el-input size="small" v-model="addMsg.SerialNumber" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="" prop="CategoryId" style="float:left;padding:0 5px;">
<el-form-item label="" prop="CategoryId" style="float:left;">
<span class="label">资产分类</span>
<treeselect style="height:28px;width:100%" :options="treedata" v-model="addMsg.CategoryId" placeholder="不限"
<treeselect style="height:32px;width:100%" :options="treedata" v-model="addMsg.CategoryId" placeholder="不限"
:normalizer="normalizer" @select='treeClick' />
</el-form-item>
<el-form-item label="" prop="BrandName">
<span class="label">品牌</span>
<el-input size="mini" v-model="addMsg.BrandName" placeholder="请输入"></el-input>
<el-input size="small" v-model="addMsg.BrandName" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="">
<span class="label">金额</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment