党员积分明细
This commit is contained in:
@@ -100,27 +100,9 @@
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="积分分值" prop="integral" v-if="form.pass == 1">
|
||||
<div class="flex">
|
||||
<div class="from">
|
||||
<el-input
|
||||
ref="input_from"
|
||||
v-model="integralFrom"
|
||||
placeholder="最小值"
|
||||
@input="handleInputFrom"
|
||||
></el-input>
|
||||
</div>
|
||||
<div class="center">
|
||||
<span>至</span>
|
||||
</div>
|
||||
<div class="to">
|
||||
<el-input
|
||||
ref="input_to"
|
||||
v-model="integralTo"
|
||||
placeholder="最大值"
|
||||
@input="handleInputTo"
|
||||
></el-input>
|
||||
</div>
|
||||
</div>
|
||||
<ai-range v-model="form.num" ref="resetagefoo" />
|
||||
<!-- @change="search.current = 1, getList()"
|
||||
@closeVal="search.age = []"/ -->
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="积分分值" prop="integral" v-if="form.pass == 2">
|
||||
@@ -137,7 +119,7 @@
|
||||
</el-form-item>
|
||||
|
||||
<el-dialog width="30%" title="添加积分分值" :visible.sync="innerVisible" append-to-body>
|
||||
<el-form ref="DialogForm" :model="forms" :rules="formRules" size="small" label-suffix=":" label-width="100px">
|
||||
<el-form ref="innerForm" :model="table" :rules="formRules" size="small" label-suffix=":" label-width="100px">
|
||||
<el-form-item label="加分项" prop="integral">
|
||||
<el-input placeholder="请输入" v-model="form.integral" clearable/>
|
||||
</el-form-item>
|
||||
@@ -148,7 +130,7 @@
|
||||
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="innerVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="innerVisible = false">提交</el-button>
|
||||
<el-button type="primary" @click="save">保存</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</el-form>
|
||||
@@ -225,7 +207,7 @@ export default {
|
||||
integralTo: '',
|
||||
integralData: [],
|
||||
innerVisible: false,
|
||||
forms: {},
|
||||
table: {},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@@ -262,6 +244,15 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
// 保存
|
||||
save() {
|
||||
this.$refs.innerForm.validate((valid)=>{
|
||||
if (valid) {
|
||||
this.innerData.push(this.table)
|
||||
}
|
||||
this.innerVisible = false
|
||||
})
|
||||
},
|
||||
|
||||
typeChange() {
|
||||
this.form.integral = ''
|
||||
@@ -359,55 +350,7 @@ export default {
|
||||
height: 100%;
|
||||
background: #f3f6f9;
|
||||
|
||||
::v-deep .ai-list__content--right {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
::v-deep .ai-dialog {
|
||||
.el-cascader {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.tableInput {
|
||||
& > input {
|
||||
text-align: center;
|
||||
border: none;
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
::v-deep .el-input--mini .el-input__inner {
|
||||
border: 0px;
|
||||
margin: 0;
|
||||
padding: 0 15px;
|
||||
background-color: transparent;
|
||||
}
|
||||
.input-number-range {
|
||||
background-color: #fff;
|
||||
border: 1px solid #dcdfe6;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
// justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.center {
|
||||
margin: 0 20px;
|
||||
margin-top: 1px;
|
||||
}
|
||||
}
|
||||
.is-disabled {
|
||||
background-color: #eef0f6;
|
||||
border-color: #e4e7ed;
|
||||
color: #c0c4cc;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user