This commit is contained in:
xuyucheng 2021-12-30 13:55:22 +08:00
parent 8f9904cbe8
commit e1a6e59193
4 changed files with 39 additions and 20 deletions

View File

@ -36,15 +36,19 @@
</div>
</el-card>
</el-col>
<el-col :span="16" :offset="1" style="display: flex;align-items:center;justify-content:space-between">
<el-col
:span="16"
:offset="1"
style="display: flex; align-items: center; justify-content: space-between"
>
<el-button
@click="preQuestion"
type="primary"
icon="el-icon-arrow-left"
circle
></el-button>
<div v-if="questionnaire.length !== 0" style="width:80%;height:100px;">
<p style="font-size:16px;">
<div v-if="questionnaire.length !== 0" style="width: 80%; height: 100px">
<p style="font-size: 16px">
{{ questionnaire[selectedIndex].children[opt].label }}
</p>
<div
@ -80,9 +84,14 @@
>
</el-checkbox-group>
</div>
<el-row v-else type="flex" justify="start" style="align-items: center;margin-top:20px">
<el-row
v-else
type="flex"
justify="start"
style="align-items: center; margin-top: 20px"
>
<span></span>
<el-col :span="4"
<el-col :span="4"
><el-input
v-model="questionnaire[selectedIndex].children[opt].answer"
></el-input
@ -150,6 +159,7 @@ export default {
(this.opt =
this.questionnaire[this.selectedIndex].children.length - 1))
: false;
this.label = this.questionnaire[this.selectedIndex].label;
},
//
@ -159,6 +169,7 @@ export default {
: this.selectedIndex < this.questionnaire.length - 1
? ((this.opt = 0), this.selectedIndex++)
: false;
this.label = this.questionnaire[this.selectedIndex].label;
},
},
@ -253,7 +264,7 @@ p {
}
}
.el-button{
.el-button {
width: 40px;
height: 40px;
}

View File

@ -121,7 +121,12 @@ export default {
},
mounted() {
this.$nextTick(() => {
this.init();
if (this.$store.state.user.user_verify !== "true") {
this.$router.push("/userInfo");
this.$message.info("尚未认证,请先完成");
} else {
this.init();
}
});
},

View File

@ -69,7 +69,7 @@
<span slot="label"> 综合信用评价 </span>
<div>
<span>更新日期{{ data["更新日期"] }}</span>
<el-row><step-credit-appraisal /></el-row></div
<el-row><step-credit-appraisal @getVisible="getVisible"/></el-row></div
></el-tab-pane>
<el-tab-pane name="second">
<span slot="label"> 行业宏观分析 </span>
@ -145,6 +145,7 @@ export default {
],
state: "first",
data: {},
visible: false
};
},
mounted() {

View File

@ -55,11 +55,7 @@
@click="dialog = true"
>查看报告</el-button
>
<fecr-table
class="top"
:data="creditData"
:columns="creditColumn"
/>
<fecr-table class="top" :data="creditData" :columns="creditColumn" />
</el-card>
</el-col>
<el-dialog :visible.sync="dialog" title="报告预览">
@ -108,12 +104,18 @@ export default {
methods: {
init() {
JsonPost("/company/company_index",{table:"综合评价分析"}).then((res) => {
this.data = res.result;
this.viewReport(res.result["信用分析"]["查看报告"]);
this.getColumn(res.result["历史级别"][0]);
this.creditAnalysis(res.result["信用分析"]);
});
JsonPost("/company/company_index", { table: "综合评价分析" }).then(
(res) => {
if (res.result.length === 0) {
this.$emit("getVisible", true);
} else {
this.data = res.result;
this.viewReport(res.result["信用分析"]["查看报告"]);
this.getColumn(res.result["历史级别"][0]);
this.creditAnalysis(res.result["信用分析"]);
}
}
);
},
// column
@ -168,7 +170,7 @@ export default {
this.creditData.push({
label: key,
definition: val[key],
})
});
}
});
},