diff --git a/src/components/FecrRing.vue b/src/components/FecrRing.vue index 3c6d1f8..1ebe15c 100644 --- a/src/components/FecrRing.vue +++ b/src/components/FecrRing.vue @@ -6,16 +6,14 @@ export default { props: { data: [Object, Array], + sty: [Object, Array], id: { type: String, default: "pie", }, }, - data() { - return {}; - }, - mounted() { - this.init(); + mounted(){ + this.init() }, methods: { init() { @@ -36,10 +34,10 @@ export default { top: "center", textAlign: "center", textStyle: { - color: this.data.color[0], + color: this.sty.color[0], }, }, - color: this.data.color, + color: this.sty.color, legend: { x: "center", y: "bottom", @@ -51,7 +49,7 @@ export default { return { name: item.name, type: "pie", - radius: this.data.radius[i], + radius: this.sty.radius[i], label: { show: false, position: "center", @@ -89,9 +87,11 @@ export default { data: { handler(val) { this.data = val; - this.init(); + if (this.data) { + this.init(); + } }, - immediate: true, + // immediate: true, deep: true, }, }, diff --git a/src/components/FecrTranTable.vue b/src/components/FecrTranTable.vue index 11d2ccb..03c75c8 100644 --- a/src/components/FecrTranTable.vue +++ b/src/components/FecrTranTable.vue @@ -22,7 +22,7 @@ v-else v-model.number="scope.row[index]" placeholder="请编辑" - type="number" + :type="scope.row[0] === '公司是否有审计报告'?'text':'number'" @input="backData" > diff --git a/src/view/appraisal/esg/index.vue b/src/view/appraisal/esg/index.vue index 02af21c..9a79c95 100644 --- a/src/view/appraisal/esg/index.vue +++ b/src/view/appraisal/esg/index.vue @@ -10,56 +10,43 @@

ESG填报问卷

一、基础信息

- + - + - - - + + + + + -

二、环境信息

+

二、环境问卷

- -

三、社会信息

- - -

四、治理信息

- -
-

{{ index }}

-
+
+

{{ item.question }}

+
+ +

三、社会问卷

+ +
+

{{ item.question }}

+
+ +
+ +
+ +

四、治理问卷

+ +
+

{{ item.question }}

+
+ +
+ +
- - 提 交 - + +

是否提交数据并开始评价

+
+ 取消 + 确定 +
+ + 提 交 + +