Browse Source

Merge branch 'dev-身份验证1114' into dev

dev-用户反馈
jiangyy 3 years ago
parent
commit
89f72e57a0
  1. 1
      src/assets/scss/buttonstyle.scss
  2. 3
      src/views/modules/base/epidemic/natInfo/natList.vue
  3. 59
      src/views/modules/base/epidemic/vaccin.vue
  4. 1
      src/views/modules/shujuduibi/shenfenyizhi.vue

1
src/assets/scss/buttonstyle.scss

@ -1,4 +1,5 @@
//查询确定 //查询确定
.diy-button--search { .diy-button--search {
color: #fff !important; color: #fff !important;
background-color: #3e8ef7 !important; background-color: #3e8ef7 !important;

3
src/views/modules/base/epidemic/natInfo/natList.vue

@ -628,12 +628,13 @@ export default {
}, },
async timingNat (row) { async timingNat (row) {
const url = "/epmetuser/dataSyncConfig/natInfoSyncButton" const url = "/epmetuser/dataSyncConfig/submitSyncJob"
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/synchro" // const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/synchro"
let params = { let params = {
isSync: '1', isSync: '1',
dataCode: 'hesuan', dataCode: 'hesuan',
jobType: 'nat',
agencyId: this.agencyId agencyId: this.agencyId
} }

59
src/views/modules/base/epidemic/vaccin.vue

@ -123,6 +123,11 @@
class="diy-button--reset" class="diy-button--reset"
size="small" size="small"
@click="handleExport">导出</el-button> @click="handleExport">导出</el-button>
<el-button v-if="isYantai"
style="float:left;margin-left:10px"
class="diy-button--export"
size="small"
@click="handleTiming()">更新数据</el-button>
</div> </div>
<el-table class="table" <el-table class="table"
@ -286,6 +291,7 @@ export default {
pageNo: 0, pageNo: 0,
tableLoading: false, tableLoading: false,
isResiUser: true, isResiUser: true,
isYantai: false,
agencyId: "", agencyId: "",
orgTypeList: [ orgTypeList: [
@ -345,6 +351,16 @@ export default {
}, },
async created () { }, async created () { },
async mounted () { async mounted () {
//1580460084738760705
//id: 1535072605621841922
this.customerId = localStorage.getItem("customerId");
this.isYantai = false
if (this.customerId === '1535072605621841922') {
this.isYantai = true
}
this.updateBtnAuths(); this.updateBtnAuths();
const { user } = this.$store.state; const { user } = this.$store.state;
@ -478,6 +494,49 @@ export default {
return row; return row;
}, },
async handleTiming (row) {
this.$confirm("确认执行更新数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.timingVaccin(row)
})
.catch(err => {
if (err == "cancel") {
}
});
},
async timingVaccin (row) {
const url = "/epmetuser/dataSyncConfig/submitSyncJob"
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/synchro"
let params = {
isSync: '1',
dataCode: 'yimiaojiezhong',
jobType: 'vaccine',
agencyId: this.agencyId
}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.$message({
type: "success",
message: "操作成功"
});
// this.loadTable()
} else {
this.$message.error(msg)
}
},
async handleDelete (row) { async handleDelete (row) {
let message = "确认删除?"; let message = "确认删除?";

1
src/views/modules/shujuduibi/shenfenyizhi.vue

@ -63,6 +63,7 @@
<el-button class="diy-button--reset" <el-button class="diy-button--reset"
size="small" size="small"
@click="handleExport">导出</el-button> @click="handleExport">导出</el-button>
<el-button class="diy-button--add" <el-button class="diy-button--add"
size="small" size="small"
@click="handleBatchCompare">批量比对</el-button> @click="handleBatchCompare">批量比对</el-button>

Loading…
Cancel
Save