Commit 943a0449 by zhouzy

日期传参形式,提交返回,批量提交picker值绑定,提交失败和成功提示

1 parent 84b1b65a
<!-- --> <!-- -->
<template> <template>
<div class="container">
<el-form <el-form
:model="ruleForm" :model="ruleForm"
:rules="rules" :rules="rules"
...@@ -133,12 +134,14 @@ ...@@ -133,12 +134,14 @@
<div class="buttonContainer"> <div class="buttonContainer">
<el-button size="middle">取消</el-button> <el-button size="middle">取消</el-button>
<el-button <el-button
:plain="true"
size="middle" size="middle"
type="primary"
@click="jump" @click="jump"
type="primary"
>提交</el-button> >提交</el-button>
</div> </div>
</el-form> </el-form>
</div>
</template> </template>
<script> <script>
...@@ -235,6 +238,7 @@ export default { ...@@ -235,6 +238,7 @@ export default {
// creditInstallment: this.ruleForm.creditInstallment + '', // creditInstallment: this.ruleForm.creditInstallment + '',
// meiTuan: this.ruleForm.meiTuan + '' // meiTuan: this.ruleForm.meiTuan + ''
// } // }
} }
if (this.ruleForm.currencyCheckbox) { if (this.ruleForm.currencyCheckbox) {
...@@ -279,10 +283,19 @@ export default { ...@@ -279,10 +283,19 @@ export default {
equityItemJson: JSON.stringify(equityItemJson) equityItemJson: JSON.stringify(equityItemJson)
}) })
} }
insertMemberCardDefineRf(params).then((res) => { insertMemberCardDefineRf(params).then((res) => {
console.log(res)
if (res > 0) {
window.history.go(-1)
} else {
this.$message({
message: '增添失败!',
type: 'error'
}) })
} }
})
}
// inableInpution(checkStatus, inputStatus) { // inableInpution(checkStatus, inputStatus) {
// this[inputStatus] = !this[checkStatus] // this[inputStatus] = !this[checkStatus]
...@@ -301,6 +314,10 @@ export default { ...@@ -301,6 +314,10 @@ export default {
margin: 0; margin: 0;
border: 0; border: 0;
} }
.container {
overflow-y: scroll;
height: 900px;
}
.itemContainer { .itemContainer {
margin-left: 20px; margin-left: 20px;
margin-top: 20px; margin-top: 20px;
......
...@@ -77,16 +77,12 @@ export default { ...@@ -77,16 +77,12 @@ export default {
}, },
{ {
label: '状态', label: '状态',
prop: 'status' prop: 'status',
// formatter: (cellValue) => { formatter: (cellValue) => {
// return { return {
// 0: '进行中', 1: '正常',
// 1: '未完成', }[cellValue.status]
// 2: '已过期', }
// 3: '线下关闭',
// 4: '线上关闭'
// }[cellValue.status]
// }
}, },
{ {
...@@ -104,7 +100,8 @@ export default { ...@@ -104,7 +100,8 @@ export default {
}, },
methods: { methods: {
addCard() { addCard() {
window.location.href = 'http://glsx-oss-equity2.frontend.test.glsx.com.cn/customer/newEquityCard.html' // window.location.href = 'http://glsx-oss-equity2.frontend.test.glsx.com.cn/customer/newEquityCard.html'
window.location.href = 'http://192.168.1.158:8085/customer/newEquityCard.html'
} }
// handleEdit() { // handleEdit() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!