develop
hongyuan.zhang 5 years ago
parent 9aacb6102a
commit 9e70f97cba

@ -1,6 +1,6 @@
{ {
"name": "dc3-web", "name": "dc3-web",
"version": "1.2.2", "version": "1.2.3",
"private": true, "private": true,
"author": "pnoker", "author": "pnoker",
"description": "IOT DC3 Demo Application UI", "description": "IOT DC3 Demo Application UI",

@ -18,7 +18,8 @@
@current-change="currentChange" @current-change="currentChange"
> >
<template slot="menuLeft"> <template slot="menuLeft">
<el-button type="success" icon="el-icon-upload" size="small" @click="dialogFormVisible=true"></el-button> <el-button type="success" icon="el-icon-upload" size="small" @click="dialogFormVisible=true">
</el-button>
</template> </template>
<template slot="status" slot-scope="scope"> <template slot="status" slot-scope="scope">
@ -49,7 +50,13 @@
<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div> <div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>
<div class="el-upload__tip" slot="tip">只能上传 json 格式文件批量导入过程比较耗时需要耐心等待请勿切换其他页面</div> <div class="el-upload__tip" slot="tip">只能上传 json 格式文件批量导入过程比较耗时需要耐心等待请勿切换其他页面</div>
</el-upload> </el-upload>
<el-progress class="upload-progress" :percentage="loadProgress" :text-inside="true" :stroke-width="15" :status="progressStatus"></el-progress> <el-progress class="upload-progress"
:percentage="loadProgress.toFixed(2)"
:text-inside="true"
:stroke-width="15"
:status="progressStatus"
>
</el-progress>
</div> </div>
</el-dialog> </el-dialog>
</el-col> </el-col>
@ -315,7 +322,7 @@
clearInterval(interval); clearInterval(interval);
return; return;
} }
that.loadProgress += +step.toFixed(2); that.loadProgress += step;
}, 500); }, 500);
}); });
}, },

@ -12,7 +12,7 @@
<h4 class="login-title"> <h4 class="login-title">
Demo Application Demo Application
</h4> </h4>
<p style="text-align: center;">基于 DC3 1.2.2.SR 接口开发的 demo 应用<br/>仅供演示和测试用途!</p> <p style="text-align: center;">基于 DC3 1.2.3.SR 接口开发的 demo 应用<br/>仅供演示和测试用途!</p>
<el-form class="login-form" <el-form class="login-form"
status-icon status-icon
:rules="loginRules" :rules="loginRules"

Loading…
Cancel
Save