|
@@ -9,12 +9,15 @@
|
|
|
<seachs @handleSeach="getSeachData" @handleRest="resetSeach"></seachs>
|
|
|
</div>
|
|
|
<div class="PeriodBtn" :style="$utils.PeriodBtnSty()">
|
|
|
+ <!-- :showAdd="$utils.havePurview('multiSequence:oneLevel:add')"
|
|
|
+ :showSave="$utils.havePurview('multiSequence:oneLevel:save')"
|
|
|
+ :showDelete="$utils.havePurview('multiSequence:oneLevel:delete')" -->
|
|
|
<btns
|
|
|
:showImport="false"
|
|
|
:showExport="false"
|
|
|
- :showAdd="$utils.havePurview('multiSequence:oneLevel:add')"
|
|
|
- :showSave="$utils.havePurview('multiSequence:oneLevel:save')"
|
|
|
- :showDelete="$utils.havePurview('multiSequence:oneLevel:delete')"
|
|
|
+ :showAdd="true"
|
|
|
+ :showSave="true"
|
|
|
+ :showDelete="true"
|
|
|
:disSave="changeDateSelect.length === 0 || changeDateSelect.length>1"
|
|
|
:disDelete="changeDateSelect.length === 0"
|
|
|
:disImport="true"
|
|
@@ -28,9 +31,9 @@
|
|
|
<el-table :data="evaluationCombinationData" style="width: 100%" :class="multisequenceTableSty()"
|
|
|
@select="rowClick" @select-all="rowClick">
|
|
|
<el-table-column type="selection" label="操作" align="center"></el-table-column>
|
|
|
- <el-table-column label="组合名称" prop="citeCalculationName" />
|
|
|
- <el-table-column label="所属板块" prop="binSectionName" />
|
|
|
- <el-table-column label="指标名称" prop="indicatorNames" />
|
|
|
+ <el-table-column label="名称" prop="citeCalculationName" />
|
|
|
+ <el-table-column label="参与差值板块" prop="binSectionName" />
|
|
|
+ <!-- <el-table-column label="指标名称" prop="indicatorNames" /> -->
|
|
|
<el-table-column label="排序" prop="orderNum" />
|
|
|
</el-table>
|
|
|
<el-pagination
|
|
@@ -46,10 +49,10 @@
|
|
|
<div class="periodFrom">
|
|
|
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm" :validate-on-rule-change="false">
|
|
|
<el-form-item label="组合名称" prop="combination">
|
|
|
- <el-input v-model="ruleForm.combination" placeholder="请输入组合名称"></el-input>
|
|
|
+ <el-input v-model="ruleForm.combination" @blur="changeIndicItem" placeholder="请输入组合名称"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="业务属性" prop="sectionName">
|
|
|
- <el-select v-model="ruleForm.sectionName" placeholder="请选择业务属性" @change="changeIndicItem">
|
|
|
+ <el-select v-model="ruleForm.sectionName" multiple collapse-tags placeholder="请选择业务属性">
|
|
|
<el-option
|
|
|
v-for="item in binSectionOptions"
|
|
|
:key="item.id"
|
|
@@ -65,6 +68,16 @@
|
|
|
:key="item.id"
|
|
|
:label="item.indicatorName"
|
|
|
:value="item.id">
|
|
|
+ <span style="float: left">{{ item.indicatorName }}</span>
|
|
|
+ <span
|
|
|
+ style="
|
|
|
+ margin-left: 20px;
|
|
|
+ float: right;
|
|
|
+ color: var(--el-text-color-secondary);
|
|
|
+ font-size: 13px;
|
|
|
+ "
|
|
|
+ >{{ item.binSectionName }}</span
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -104,7 +117,7 @@ export default {
|
|
|
evaluationCombinationData:[],
|
|
|
ruleForm: {
|
|
|
combination: '',
|
|
|
- sectionName: '',
|
|
|
+ sectionName: [],
|
|
|
indicItemName: [],
|
|
|
serialNumber: 1,
|
|
|
desc: ''
|
|
@@ -169,13 +182,13 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
changeIndicItem(val) {
|
|
|
- this.getIndListAll(val)
|
|
|
+ this.getIndListAll(this.ruleForm.combination)
|
|
|
},
|
|
|
//查询指标
|
|
|
- getIndListAll(id) {
|
|
|
+ getIndListAll(val) {
|
|
|
let that = this
|
|
|
let params = {
|
|
|
- binSection: id
|
|
|
+ indicatorName: val
|
|
|
}
|
|
|
apiGetindicatorListAll(params).then(datas =>{
|
|
|
if (datas && datas.data) {
|
|
@@ -190,7 +203,7 @@ export default {
|
|
|
this.$nextTick(() =>{
|
|
|
this.ruleForm = {
|
|
|
combination: '',
|
|
|
- sectionName: '',
|
|
|
+ sectionName: [],
|
|
|
indicItemName: [],
|
|
|
serialNumber: 1,
|
|
|
}
|
|
@@ -202,11 +215,12 @@ export default {
|
|
|
this.title = '修改多序列计算指标'
|
|
|
this.evalradio = this.changeDateSelect[0]
|
|
|
this.ruleForm = {
|
|
|
- combination: this.evalradio.combination,
|
|
|
- sectionName: this.evalradio.binSection,
|
|
|
- indicItemName: this.evalradio.indicatorIds.spilt(','),
|
|
|
- serialNumber: this.evalradio.serialNumber
|
|
|
+ combination: this.evalradio.citeCalculationName,
|
|
|
+ sectionName: this.evalradio.binSection.split(','),
|
|
|
+ indicItemName: this.evalradio.indicatorIds.split(','),
|
|
|
+ serialNumber: this.evalradio.orderNum
|
|
|
}
|
|
|
+ this.getIndListAll(this.evalradio.citeCalculationName)
|
|
|
},
|
|
|
saveevaluationPersonMsg(formName) {
|
|
|
let that = this
|
|
@@ -220,6 +234,7 @@ export default {
|
|
|
saveAndEditIndicatorData() {
|
|
|
let that = this
|
|
|
let indNames = []
|
|
|
+ let binSectionName = []
|
|
|
that.ruleForm.indicItemName.forEach(iv =>{
|
|
|
that.indicItemoptions.forEach(it =>{
|
|
|
if (iv === it.id) {
|
|
@@ -227,9 +242,17 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
+ // that.ruleForm.sectionName.forEach(iv =>{
|
|
|
+ // that.binSectionOptions.forEach(it =>{
|
|
|
+ // if (iv === it.id) {
|
|
|
+ // binSectionName.push(it.sectionName)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // })
|
|
|
let params = {
|
|
|
citeCalculationName: that.ruleForm.combination,
|
|
|
- binSection: that.ruleForm.sectionName,
|
|
|
+ binSection: that.ruleForm.sectionName.join(','),
|
|
|
+ // binSectionName: binSectionName.join(','),
|
|
|
indicatorNames: indNames.join(','),
|
|
|
indicatorIds: that.ruleForm.indicItemName.join(','),
|
|
|
orderNum: that.ruleForm.serialNumber
|