Commit eb887cf1 authored by 吴春's avatar 吴春
parents 6256db4a b59ed521
...@@ -213,8 +213,10 @@ ...@@ -213,8 +213,10 @@
:inactive-text="$t('fnc.bweibi')" :inactive-text="$t('fnc.bweibi')"
inactive-value="0"> inactive-value="0">
</el-switch> </el-switch>
<el-input v-model="msg.sMoney" class="w64d5" @keyup.native="checkPrice(msg,'sMoney')"></el-input>- <!-- @keyup.native="checkPrice(msg,'sMoney')" -->
<el-input v-model="msg.eMoney" @keyup.native="checkPrice(msg,'eMoney')" class="w64d5"></el-input> <!-- @keyup.native="checkPrice(msg,'eMoney')" -->
<el-input v-model="msg.sMoney" type="Number" class="w64d5"></el-input>-
<el-input v-model="msg.eMoney" type="Number" class="w64d5"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
/*border-left: 1px solid #d1d1d1;*/ /*border-left: 1px solid #d1d1d1;*/
/* border-right: 1px solid #d1d1d1; */ /* border-right: 1px solid #d1d1d1; */
font-size: 14px; font-size: 14px;
width:100%; width: 100%;
min-width: 1200px; min-width: 1200px;
padding-bottom: 5px; padding-bottom: 5px;
} }
...@@ -27,10 +27,12 @@ ...@@ -27,10 +27,12 @@
position: relative; position: relative;
background-color: #E6E6E6; background-color: #E6E6E6;
} }
.LP_table tr th:last-child{
.LP_table tr th:last-child {
border-right: 1px solid #d1d1d1; border-right: 1px solid #d1d1d1;
} }
.LP_table td { .LP_table td {
border-left: 1px solid #d1d1d1; border-left: 1px solid #d1d1d1;
border-bottom: 1px solid #d1d1d1; border-bottom: 1px solid #d1d1d1;
...@@ -38,10 +40,12 @@ ...@@ -38,10 +40,12 @@
text-align: center; text-align: center;
padding: 5px 0; padding: 5px 0;
} }
.LP_table td:last-child{
.LP_table td:last-child {
border-right: 1px solid #d1d1d1; border-right: 1px solid #d1d1d1;
} }
.LP_table .el-button--primary { .LP_table .el-button--primary {
padding: 5px; padding: 5px;
} }
...@@ -57,66 +61,67 @@ ...@@ -57,66 +61,67 @@
right: 30px; right: 30px;
top: 5px; top: 5px;
} }
.comLessDiv{
width:100%; .comLessDiv {
height:40px; width: 100%;
margin-top:5px; height: 40px;
padding-bottom:5px; margin-top: 5px;
border-bottom:1px solid #d1d1d1; padding-bottom: 5px;
border-bottom: 1px solid #d1d1d1;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.comLessDiv:last-child{
border:0; .comLessDiv:last-child {
padding-bottom:0; border: 0;
padding-bottom: 0;
} }
.comLessDiv input{
.comLessDiv input {
padding: 0 5px; padding: 0 5px;
} }
.comLessDiv .el-input-group__append,.comLessDiv .el-input-group__append button{
.comLessDiv .el-input-group__append,
.comLessDiv .el-input-group__append button {
padding: 0 8px; padding: 0 8px;
cursor: pointer; cursor: pointer;
} }
.addLessPrice{
margin-left:10px; .addLessPrice {
color:seagreen; margin-left: 10px;
color: seagreen;
cursor: pointer; cursor: pointer;
} }
.lessBtn{
margin-top:5px; .lessBtn {
margin-top: 5px;
} }
</style> </style>
<template> <template>
<div> <div>
<!-- <el-row>
<el-col :offset="23">
<input type='button' class="normalBtn lessBtn" @click="SaveLessPrice(null)" :value="$t('pub.saveBtn')"></input>
</el-col>
</el-row> -->
<div class="LM_mainDiv"> <div class="LM_mainDiv">
<!--保存--> <!--保存-->
<table border="0" cellspacing="0" cellpadding="0" class="LP_table" v-loading="this.loading"> <table border="0" cellspacing="0" cellpadding="0" class="LP_table" v-loading="this.loading">
<tr> <tr>
<th width="150">标记</th> <th width="40%">项目名称</th>
<th width="40%">标记名称</th> <th width="150">{{$t('hotel.table_operat')}}&nbsp;&nbsp; <i
class="iconfont icon-bumenguanli-tianjia addLessPrice" @click="addLessPrice(item)"></i></th>
<th width="150">{{$t('hotel.table_operat')}}</th>
</tr> </tr>
<tr > <tr>
<td>
<i class="iconfont icon-bumenguanli-tianjia addLessPrice" @click="addLessPrice(item)"></i>
</td>
<td> <td>
<div v-for="subItem in dataList" class="comLessDiv"> <div v-for="subItem in dataList" class="comLessDiv">
<el-input placeholder="名称" v-model="subItem.Name" @keyup.native=""> </el-input> <el-input placeholder="名称" v-model="subItem.Name"> </el-input>
</div> </div>
</td> </td>
<td> <td>
<div v-for="(subItem,subIndex) in dataList" class="comLessDiv"> <div v-for="(subItem,subIndex) in dataList" class="comLessDiv">
<input type='button' class="normalBtn lessBtn" @click="SaveLessPrice(subItem)" :value="$t('pub.saveBtn')"></input> <input type='button' class="normalBtn lessBtn" @click="SaveLessPrice(subItem)"
<input type='button' class="normalBtn lessBtn" @click="RemoveItem( subItem, subIndex)" value="删除"></input> :value="$t('pub.saveBtn')" />
<input type='button' class="normalBtn lessBtn" @click="RemoveItem( subItem, subIndex)" value="删除" />
</div> </div>
</td> </td>
</tr> </tr>
...@@ -132,26 +137,26 @@ ...@@ -132,26 +137,26 @@
dataList: [], dataList: [],
//角色列表 //角色列表
RoleList: [], RoleList: [],
loading:false, loading: false,
LineList: [], LineList: [],
commonSelect:0, commonSelect: 0,
}; };
}, },
methods: { methods: {
//保存少价管理 //保存少价管理
SaveLessPrice(subItem) { SaveLessPrice(subItem) {
if (subItem) { if (subItem) {
if (subItem.Name.length==0) { if (subItem.Name.length == 0) {
return this.Error('请填写标记信息'); return this.Error('请填写标记信息');
} }
} }
this.apipost( this.apipost(
"dict_post_Set",subItem , "dict_post_Set", subItem,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.getList(); this.getList();
}else{ } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
...@@ -161,15 +166,17 @@ ...@@ -161,15 +166,17 @@
//获取列表 //获取列表
getList() { getList() {
this.loading = true; this.loading = true;
var that=this; var that = this;
that.apipost( that.apipost(
"dict_post_GetList", {Key:'DouYin_MainOrder'}, "dict_post_GetList", {
Key: 'DouYin_MainOrder'
},
res => { res => {
that.loading = false; that.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var data = res.data.data; var data = res.data.data;
that.dataList=data; that.dataList = data;
}else{ } else {
that.Error(res.data.message); that.Error(res.data.message);
} }
}, },
...@@ -178,15 +185,17 @@ ...@@ -178,15 +185,17 @@
}, },
//获取列表 //获取列表
RemoveItem(subItem, index) { RemoveItem(subItem, index) {
if(subItem.ID==0){ if (subItem.ID == 0) {
this.dataList.splice(index,1); this.dataList.splice(index, 1);
return; return;
} }
var that = this; var that = this;
this.Confirm("是否删除此标记信息?", function () { this.Confirm("是否删除此标记信息?", function () {
if (subItem.ID > 0) { if (subItem.ID > 0) {
that.apipost( that.apipost(
"dict_post_Remove", {dictID:subItem.ID}, "dict_post_Remove", {
dictID: subItem.ID
},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
that.Success("操作成功!"); that.Success("操作成功!");
...@@ -201,7 +210,7 @@ ...@@ -201,7 +210,7 @@
}); });
}, },
//点击添加 //点击添加
addLessPrice(){ addLessPrice() {
var obj = { var obj = {
Name: '', Name: '',
DictKey: 'DouYin_MainOrder', DictKey: 'DouYin_MainOrder',
......
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