提交 4b1472f5 编写于 作者: zhentian.jia's avatar zhentian.jia

更新跳转

上级 812825b8
......@@ -660,6 +660,38 @@
<el-button type="primary" size="small" @click="dialogSuccess = false">关闭</el-button>
</span>
</el-dialog>
<el-dialog title="导入失败" :visible.sync="dialogFail" width="30%" class="dialog-fail" center>
<div class="fail-type" v-if="failType == 1">
<p>表格不符合格式要求,请修正后再次导入</p>
<p class="fail-notice">仅支持一次导入5000条数据</p>
</div>
<div class="fail-type" v-if="failType == 2">
<p>
<span class="fail-num">{{ failNum }}条</span> 数据不符合格式要求,请修正后再次导入
</p>
<p class="fail-notice">仅支持xlsx格式的文件</p>
<p class="fail-link" @click="download('fail')">下载错误数据></p>
</div>
<span slot="footer" class="dialog-footer">
<el-button class="fail-close" size="small" @click="dialogFail = false">取消</el-button>
<el-upload
class="upload-button"
action="#"
accept=".xlsx"
multiple
:limit="1"
:before-upload="uploadOrganization"
>
<el-button
stype="position: absolute;top: -14px;"
type="primary"
size="small"
@click="uploadOrganization()"
>重新导入</el-button>
</el-upload>
</span>
</el-dialog>
</div>
<div class="third-step" v-else-if="active === 2">
<el-form
......@@ -845,7 +877,7 @@ export default {
curmbSecond: "新建项目",
//页面展示位置
stepData: [true, false, false],
active: 1,
active: 0,
activeName: "first",
//基层信息 数据
uploadImgMessage: false,
......@@ -1038,6 +1070,9 @@ export default {
},
updateNum: 0,
dialogSuccess: false,
failType: 1,
failNum: 0,
dialogFail: false,
props: {
lazy: true,
lazyLoad(node, resolve) {
......
......@@ -292,7 +292,7 @@ export default {
},
methods: {
toPage() {
this.$router.push("add-manager");
this.$router.push("edit-manager");
},
toShield(row) {
this.$router.push("item-shield?projectId="+row.id);
......@@ -353,7 +353,7 @@ export default {
let level = row.level;
if (type === 0) {
//编辑
this.$router.push("add-manager?projectId=" + projectId +"&level="+level);
this.$router.push("edit-manager?projectId=" + projectId +"&level="+level);
} else if (type === 7) {
//提醒审核
let req = {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册