|
@@ -80,9 +80,9 @@
|
|
|
'px',
|
|
|
}"
|
|
|
></div>
|
|
|
- <span class="value">{{
|
|
|
- scope.data.count && scope.data.count
|
|
|
- }} 次数</span>
|
|
|
+ <span class="value"
|
|
|
+ >{{ scope.data.count && scope.data.count }} 次数</span
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="bar">
|
|
|
<div
|
|
@@ -95,7 +95,9 @@
|
|
|
'px',
|
|
|
}"
|
|
|
></div>
|
|
|
- <span class="value">{{ scope.data.count && scope.data.time }} 分钟</span>
|
|
|
+ <span class="value"
|
|
|
+ >{{ scope.data.count && scope.data.time }} 分钟</span
|
|
|
+ >
|
|
|
</div>
|
|
|
</template>
|
|
|
</table-3>
|
|
@@ -207,10 +209,13 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- this.search();
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.search();
|
|
|
+ });
|
|
|
},
|
|
|
methods: {
|
|
|
tabSelect(tab) {},
|
|
|
+
|
|
|
async search() {
|
|
|
const { data } = await this.API.requestData({
|
|
|
subUrl: "powercompare/windfarmAjax",
|
|
@@ -219,6 +224,7 @@ export default {
|
|
|
this.wpvalue = data.data[0].id;
|
|
|
this.searchData();
|
|
|
},
|
|
|
+
|
|
|
async searchTree() {
|
|
|
let arr = [];
|
|
|
let columnObj = [
|
|
@@ -245,6 +251,7 @@ export default {
|
|
|
this.column = arr;
|
|
|
this.searchData();
|
|
|
},
|
|
|
+
|
|
|
async searchData() {
|
|
|
const { data } = await this.API.requestData({
|
|
|
baseURL: "http://192.168.1.18:8075/",
|