|
@@ -20,7 +20,7 @@
|
|
|
<el-col :span="12" style="clear: both">
|
|
|
<el-form-item label="租金规则" :rules="rulesFun('租金规则', item.ruleId)">
|
|
|
<el-select v-model="item.ruleId" placeholder="请选择租金规则" clearable @change="ruleIdChange(index, item.ruleId)">
|
|
|
- <el-option v-for="(item, index) in tegyArr" :key="index" :label="item.chargeName" :value="item.id"></el-option>
|
|
|
+ <el-option v-for="(item, index) in $parent.tegyArr" :key="index" :label="item.chargeName" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -92,7 +92,6 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
times: [],
|
|
|
- tegyArr: [],
|
|
|
thisRule: []
|
|
|
};
|
|
|
},
|
|
@@ -120,7 +119,7 @@ export default {
|
|
|
} else {
|
|
|
this.thisRule[index] = 1;
|
|
|
}
|
|
|
- this.tegyArr.map((item) => {
|
|
|
+ this.$parent.tegyArr.map((item) => {
|
|
|
if (item.id == id) {
|
|
|
this.$parent.idsObj[index].thisArr = [item];
|
|
|
this.$parent.idsObj[index].chargePrice = item.chargePrice;
|
|
@@ -156,14 +155,6 @@ export default {
|
|
|
})
|
|
|
.catch(function () {});
|
|
|
},
|
|
|
- getTegy() {
|
|
|
- this.$http
|
|
|
- .get('/sc-charge/scChargeStrategy/page', { pageNum: 1, pageSize: 15, chargeType: 8 })
|
|
|
- .then(({ data }) => {
|
|
|
- this.tegyArr = data.list;
|
|
|
- })
|
|
|
- .catch(function () {});
|
|
|
- },
|
|
|
chanIndexSumit(resolve) {
|
|
|
if (!!this.thisRule.length) {
|
|
|
let len = 0;
|
|
@@ -183,7 +174,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.getTegy();
|
|
|
}
|
|
|
};
|
|
|
</script>
|