|
|
@ -2,8 +2,20 @@
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-card class="el-card">
|
|
|
|
<el-card class="el-card">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<el-form>
|
|
|
|
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
|
|
|
|
<el-button-group>
|
|
|
|
|
|
|
|
<el-button type="primary" icon="search" @click="dlLastVersion" size="mini"
|
|
|
|
|
|
|
|
>国家同步库更新查询
|
|
|
|
|
|
|
|
</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button type="primary" icon="search" @click="getList" size="mini"
|
|
|
|
|
|
|
|
>刷新
|
|
|
|
|
|
|
|
</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-button-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
<el-table
|
|
|
|
<el-table
|
|
|
|
:data="udidlList"
|
|
|
|
:data="udidlList"
|
|
|
|
style="width: 100%"
|
|
|
|
style="width: 100%"
|
|
|
@ -95,7 +107,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import {filterByVersion, filterCompany,} from "../../api/basic/udiInfo";
|
|
|
|
import {filterByVersion, dlLastVersionByDi, superSearch,} from "../../api/basic/udiInfo";
|
|
|
|
import {changeVersion, checkExitUdi} from "../../api/basic/udiRelevance";
|
|
|
|
import {changeVersion, checkExitUdi} from "../../api/basic/udiRelevance";
|
|
|
|
import selectDiDetail from "./SelectDIDetailDialog"
|
|
|
|
import selectDiDetail from "./SelectDIDetailDialog"
|
|
|
|
|
|
|
|
|
|
|
@ -153,8 +165,45 @@ export default {
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dlLastVersion() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$confirm("此操作将访问国家库查询最新版本信息, 是否继续?", "提示", {
|
|
|
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
|
|
|
type: "warning",
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(() => {
|
|
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
let query = {nameCode: this.udidlList[0].nameCode};
|
|
|
|
|
|
|
|
dlLastVersionByDi(query)
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.$message.success("更新成功!");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.getList()
|
|
|
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
this.udidlList = [];
|
|
|
|
|
|
|
|
this.total = 0;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
|
|
|
|
filterByVersion(this.unionQuery)
|
|
|
|
filterByVersion(this.unionQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
@ -164,8 +213,6 @@ export default {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|