|
|
|
@ -546,6 +546,37 @@
|
|
|
|
|
|
|
|
|
|
</el-collapse-item>
|
|
|
|
|
|
|
|
|
|
<el-collapse-item name="5">
|
|
|
|
|
<template slot="title">
|
|
|
|
|
<p class="form-title">版本信息</p>
|
|
|
|
|
</template>
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
<el-col :span="8" class="el-col">
|
|
|
|
|
<div class="text item">
|
|
|
|
|
<div class="itemTag">
|
|
|
|
|
<span>当前版本号: </span>
|
|
|
|
|
</div>
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 35%"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
size="small"
|
|
|
|
|
splaceholder="请输入内容"
|
|
|
|
|
v-model="detailQuery.versionNumber"
|
|
|
|
|
></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="2" class="el-col">
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="updateVersion()"
|
|
|
|
|
:loading="updateLoading"
|
|
|
|
|
style="margin-left: 5%"
|
|
|
|
|
>更新为当前发布版本
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-collapse-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-collapse>
|
|
|
|
|
</el-card>
|
|
|
|
|
</el-form>
|
|
|
|
@ -561,7 +592,7 @@
|
|
|
|
|
type="primary"
|
|
|
|
|
size="small"
|
|
|
|
|
icon="search"
|
|
|
|
|
@click="cancelDialog"
|
|
|
|
|
@click="cancelDialog()"
|
|
|
|
|
>取消
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
@ -572,6 +603,7 @@
|
|
|
|
|
|
|
|
|
|
import {filterByUuid, updateRel} from "@/api/basic/udiRlCompany";
|
|
|
|
|
import {editDict} from "@/api/basic/UdiBasic";
|
|
|
|
|
import {dlLastVersionByDi, syncOnline} from "@/api/basic/udiInfo";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "UdiBasicProductEdit",
|
|
|
|
@ -593,6 +625,7 @@ export default {
|
|
|
|
|
return {
|
|
|
|
|
sysList: [],
|
|
|
|
|
detailList: [],
|
|
|
|
|
updateLoading: false,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
@ -632,17 +665,47 @@ export default {
|
|
|
|
|
this.cancelDialog();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
updateVersion() {
|
|
|
|
|
this.$confirm("此操作将访问国家库查询最新版本信息, 是否继续?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.updateLoading = true;
|
|
|
|
|
let query = {
|
|
|
|
|
uuid: this.detailQuery.uuid,
|
|
|
|
|
originUuid: this.detailQuery.originUuid,
|
|
|
|
|
};
|
|
|
|
|
syncOnline(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.updateLoading = false;
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.$message.success("更新成功!");
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.updateLoading = false;
|
|
|
|
|
this.total = 0;
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
cancelDialog() {
|
|
|
|
|
this.closeDialog();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
created() {
|
|
|
|
|
this.getDetailList(this.detailQuery.id);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|