Commit d0dfe973 authored by youjie's avatar youjie

no message

parent 42ddb1bf
......@@ -485,7 +485,9 @@
<div class="productQueryList" v-loading="loading">
<div style="margin-bottom: 10px">
<el-checkbox v-model="allCheck" @change="changeSelect">全选</el-checkbox>
<el-button style="margin-left: 10px" type="primary" size="small" @click="eidtItems">批量操作</el-button>
<el-button class="normalBtn" style="margin-left: 10px" type="primary" size="small" @click="eidtItems">批量操作</el-button>
<el-button class="hollowFixedBtn" style="margin-left: 10px" type="" size="small" @click="setDefaultOp"
:loading="loadingOP">设置默认OP</el-button>
</div>
<ul v-if="list.length != 0">
<li v-for="(item, index) in list" :key="index">
......@@ -608,9 +610,10 @@
</template>
<script>
export default {
props: ["loading", "list", "pagesTitle", "isVisa"],
props: ["msg","loading", "list", "pagesTitle", "isVisa"],
data() {
return {
loadingOP: false,
editNum: false,
showDialog: false,
queryData: {},
......@@ -682,6 +685,34 @@ export default {
},
},
methods: {
setDefaultOp(){
this.dataDui()
if(!this.msg.StartTime||!this.msg.EndTime){
this.$message.info('请选择出发日期开始时间、结束时间!')
return
}
this.loadingOP = true
this.apipost(
"travel_post_UpdateTravelPriceOPInfo",
this.msg,
(res) => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.loadingOP = false
}else{
this.Error(res.data.message)
this.loadingOP = false
}
},err=>{this.loadingOP = false})
},
// 结束日期不能大于开始日期
dataDui() {
if (this.msg.StartTime > this.msg.EndTime && this.msg.EndTime !== "") {
this.$message.error("结束日期不能大于开始日期");
this.msg.EndTime = "";
return
}
},
changeSelect() {
this.list.forEach((element) => {
element.check = this.allCheck;
......
......@@ -311,6 +311,7 @@
resetPageIndex();
"
/>
</li>
</ul>
</div>
......@@ -318,7 +319,7 @@
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination>
<!-- 产品列表 -->
<productOrderList :loading="loading" :list="list" :isVisa="isVisa" @success="reSearchPage" :pagesTitle="pagesTitle"></productOrderList>
<productOrderList :msg="msg" :loading="loading" :list="list" :isVisa="isVisa" @success="reSearchPage" :pagesTitle="pagesTitle"></productOrderList>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination>
......
......@@ -136,7 +136,7 @@
}
}else if(this.type==1){
return () => {
return `${row.EndValue>999?'>'+row.StartValue:row.StartValue+' - '+row.EndValue}`
return `${row.EndValue>999?'>'+row.StartValue:row.StartValue+' - '+row.EndValue}`
}
}
......
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