|
@@ -80,14 +80,14 @@
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
<!-- 上传器 -->
|
|
|
- <el-dialog title="文件重新上传" :visible.sync="dialogVisible2" destroy-on-close width="15%" top="6vh" height="90%">
|
|
|
+ <el-dialog title="文件重新上传" :visible.sync="dialogVisible2" destroy-on-close width="35%" top="6vh" height="90%">
|
|
|
<el-upload class="upload-demo" ref="upload2" action="" :http-request="del_fileName" :loading="uploadloading"
|
|
|
:auto-upload="true">
|
|
|
<el-button slot="trigger" size="small" type="primary" :loading="loading" icon="el-icon-plus">选取文件
|
|
|
</el-button>
|
|
|
</el-upload>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="文件上传" :visible.sync="dialogVisible1" destroy-on-close width="15%" top="6vh" height="90%">
|
|
|
+ <el-dialog title="文件上传" :visible.sync="dialogVisible1" destroy-on-close width="35%" top="6vh" height="90%">
|
|
|
<el-upload class="upload-demo" ref="upload1" :file-list="fileList" action=""
|
|
|
:loading="loading" :auto-upload="false" :on-change="handleChange" :on-remove="handleRemove">
|
|
|
<el-button slot="trigger" size="small" type="primary" :loading="loading" icon="el-icon-plus">选取文件
|
|
@@ -1005,7 +1005,7 @@ export default {
|
|
|
delSubmit() {
|
|
|
this.delDialogVisible = false;
|
|
|
const model = this.itemNode.getModel();
|
|
|
- if (model.depth != 0) {
|
|
|
+ if (model.tlevel != 0) {
|
|
|
//根节点不能删除,这里写删除访问后台接口逻辑
|
|
|
let id = model.id;
|
|
|
this.getFileMeg(id);
|
|
@@ -1180,7 +1180,6 @@ export default {
|
|
|
that.$refs.upload1.clearFiles();
|
|
|
that.getGxNameData();
|
|
|
graph.changeData();
|
|
|
- location.reload();
|
|
|
}
|
|
|
else {
|
|
|
that.$message.error(res.message);
|