|
@@ -135,13 +135,17 @@
|
|
|
<div slot="header" style="margin-left: 30px; font-size: 15px">
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label-width="90px" prop="score" label="指标:">
|
|
|
+ <el-form-item label-width="90px" prop="quotaName" label="指标:">
|
|
|
<span>{{ dict.quotaName }}</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label-width="90px" prop="score" label="分数:">
|
|
|
- <el-input :disabled="(isAppoval && !dict.flag)" v-model="dict.score"></el-input>
|
|
|
+ <el-input :disabled="(isAppoval && !dict.flag)" v-if="dict.maxScore > 0" type="number" v-model="dict.score" :max="dict.maxScore" :min="0" @change="maxChange(dict)"></el-input>
|
|
|
+ <el-input :disabled="(isAppoval && !dict.flag)" v-else-if="dict.maxScore < 0" type="number" v-model="dict.score" :min="dict.maxScore" :max="0" @change="minChange(dict)"></el-input>
|
|
|
+ <el-input :disabled="(isAppoval && !dict.flag)" v-else type="number" v-model="dict.score"></el-input>
|
|
|
+ <span v-if="dict.maxScore > 0" style="color: #999999">加分项: 最大输入为{{dict.maxScore}} 最小输入为0</span>
|
|
|
+ <span v-else-if="dict.maxScore < 0" style="color: #999999">减分项: 最大输入为0 最小输入为{{dict.maxScore}}</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -344,8 +348,24 @@ export default {
|
|
|
methods: {
|
|
|
checkPermi,
|
|
|
checkRole,
|
|
|
-
|
|
|
-
|
|
|
+ maxChange(dict){
|
|
|
+ if(dict.score > dict.maxScore){
|
|
|
+ this.$message.warning("分数最大不能大于"+dict.maxScore)
|
|
|
+ dict.score = dict.maxScore
|
|
|
+ }else if (dict.score < 0){
|
|
|
+ this.$message.warning("分数最小不能小于0")
|
|
|
+ dict.score = 0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ minChange(dict){
|
|
|
+ if(dict.score < dict.maxScore){
|
|
|
+ this.$message.warning("分数最小不能小于"+dict.maxScore)
|
|
|
+ dict.score = dict.maxScore
|
|
|
+ }else if(dict.score > 0){
|
|
|
+ this.$message.warning("分数最大不能大于0")
|
|
|
+ dict.score = 0
|
|
|
+ }
|
|
|
+ },
|
|
|
listQUOTAFEERole() {
|
|
|
listQUOTAFEERole().then((response) => {
|
|
|
this.authorList = response.data;
|
|
@@ -358,6 +378,7 @@ export default {
|
|
|
item.fileList = [];
|
|
|
item.linkUrls = "";
|
|
|
item.fileNames = "";
|
|
|
+ item.maxScore = item.score
|
|
|
});
|
|
|
this.tabList = JSON.parse(JSON.stringify(response.data));
|
|
|
|
|
@@ -509,7 +530,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
if (item.fileNames && item.linkUrls) {
|
|
|
item.fileList.push({ name: item.fileNames, url: item.linkUrls });
|
|
|
}
|