优化细节修改样式
This commit is contained in:
parent
d8eb32c2b8
commit
abf8491c54
|
@ -204,6 +204,8 @@
|
||||||
getAction("/dataSpecial/special").then((res) => {
|
getAction("/dataSpecial/special").then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
|
}else{
|
||||||
|
this.$message.warning(res.message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -297,12 +297,17 @@ export default {
|
||||||
currentRow.result = {
|
currentRow.result = {
|
||||||
fileId: res.id
|
fileId: res.id
|
||||||
}
|
}
|
||||||
|
if (res.success) {
|
||||||
|
}else{
|
||||||
|
this.$message.warning(res.message);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
currentRow.percentage = 0
|
currentRow.percentage = 0
|
||||||
currentRow.uploadStatus = 1
|
currentRow.uploadStatus = 1
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
this.$message.warning(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -387,6 +392,10 @@ export default {
|
||||||
const url = '/fileDataLink/uploadFile'
|
const url = '/fileDataLink/uploadFile'
|
||||||
postAction(url, formData).then((res) => {
|
postAction(url, formData).then((res) => {
|
||||||
const { completed, id } = res
|
const { completed, id } = res
|
||||||
|
if (res.success) {
|
||||||
|
}else{
|
||||||
|
this.$message.warning(res.message);
|
||||||
|
}
|
||||||
if (completed) { // 已上传完毕
|
if (completed) { // 已上传完毕
|
||||||
currentRow.percentage = 100
|
currentRow.percentage = 100
|
||||||
currentRow.uploadStatus = 2
|
currentRow.uploadStatus = 2
|
||||||
|
|
|
@ -206,6 +206,16 @@ import { datasyncqueryPage,
|
||||||
this.visible =true;
|
this.visible =true;
|
||||||
this.recordId = '';
|
this.recordId = '';
|
||||||
this.getselect();
|
this.getselect();
|
||||||
|
let model = {};
|
||||||
|
model.ip = "";
|
||||||
|
model.port = "";
|
||||||
|
model.username = '';
|
||||||
|
model.password = '';
|
||||||
|
model.database = '';
|
||||||
|
model.dataType = '';
|
||||||
|
model.shipModel = '';
|
||||||
|
model.shipNum = '';
|
||||||
|
this.form.setFieldsValue(pick(model,'ip','port','username','password','database','dataType','shipModel','shipNum'));
|
||||||
},
|
},
|
||||||
edit (record) {
|
edit (record) {
|
||||||
this.visible =true;
|
this.visible =true;
|
||||||
|
|
|
@ -366,6 +366,10 @@ export default {
|
||||||
verifyFileExist({ fileMD5Value: this.fileMD5[file.uid] })
|
verifyFileExist({ fileMD5Value: this.fileMD5[file.uid] })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const { exist, shareTotal, shareIndex } = res.result
|
const { exist, shareTotal, shareIndex } = res.result
|
||||||
|
if (res.success) {
|
||||||
|
}else{
|
||||||
|
this.$message.warning(res.message);
|
||||||
|
}
|
||||||
if (exist) {
|
if (exist) {
|
||||||
if (shareIndex === (shareTotal - 1)) { // 相等说之前已经上传完整
|
if (shareIndex === (shareTotal - 1)) { // 相等说之前已经上传完整
|
||||||
currentRow.percentage = 100
|
currentRow.percentage = 100
|
||||||
|
@ -400,6 +404,10 @@ export default {
|
||||||
const url = '/file/uoloadFile'
|
const url = '/file/uoloadFile'
|
||||||
postAction(url, formData).then((res) => {
|
postAction(url, formData).then((res) => {
|
||||||
const { completed, id } = res
|
const { completed, id } = res
|
||||||
|
if (res.success) {
|
||||||
|
}else{
|
||||||
|
this.$message.warning(res.message);
|
||||||
|
}
|
||||||
if (completed) { // 已上传完毕
|
if (completed) { // 已上传完毕
|
||||||
currentRow.percentage = 100
|
currentRow.percentage = 100
|
||||||
currentRow.uploadStatus = 2
|
currentRow.uploadStatus = 2
|
||||||
|
|
|
@ -158,6 +158,7 @@ import { taskCreate,
|
||||||
},
|
},
|
||||||
add () {
|
add () {
|
||||||
this.rangeTime=[];
|
this.rangeTime=[];
|
||||||
|
this.loadData();
|
||||||
this.edit({});
|
this.edit({});
|
||||||
},
|
},
|
||||||
edit (record) {
|
edit (record) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user