|
|
@ -44,6 +44,11 @@
|
|
|
|
<el-button type="primary" icon="search" @click="syncData('OTHER_DATA')"
|
|
|
|
<el-button type="primary" icon="search" @click="syncData('OTHER_DATA')"
|
|
|
|
v-if="configParms.udiCodeLost==2||configParms.udiCodeRel==2">同步其他数据
|
|
|
|
v-if="configParms.udiCodeLost==2||configParms.udiCodeRel==2">同步其他数据
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-button type="success" icon="search" @click="syncNow('OTHER_DATA')">立即同步
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-button-group>
|
|
|
|
</el-button-group>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
@ -115,7 +120,7 @@ import {
|
|
|
|
findConfig,
|
|
|
|
findConfig,
|
|
|
|
updateConfig,
|
|
|
|
updateConfig,
|
|
|
|
infoByStatus,
|
|
|
|
infoByStatus,
|
|
|
|
syncData
|
|
|
|
syncData, syncNow
|
|
|
|
} from "../../api/sync/spsSyncStatus";
|
|
|
|
} from "../../api/sync/spsSyncStatus";
|
|
|
|
import store from "@/store";
|
|
|
|
import store from "@/store";
|
|
|
|
|
|
|
|
|
|
|
@ -450,7 +455,19 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
syncNow() {
|
|
|
|
|
|
|
|
syncNow().then((response) => {
|
|
|
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
|
|
|
this.$message.success(response.data);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|