|
|
@ -217,10 +217,10 @@ |
|
|
|
trigger="click"> |
|
|
|
<div v-if="scope.row.syncType==='not_sync'" |
|
|
|
class="table-more-btn"> |
|
|
|
<el-button type="text" |
|
|
|
<!-- <el-button type="text" |
|
|
|
class="div-table-button--detail" |
|
|
|
size="small" |
|
|
|
@click="handleSync(scope.row)">同步</el-button> |
|
|
|
@click="handleSync(scope.row)">同步</el-button> --> |
|
|
|
</div> |
|
|
|
<div v-if="scope.row.syncType==='sync'" |
|
|
|
class="table-more-btn"> |
|
|
@ -412,7 +412,7 @@ export default { |
|
|
|
|
|
|
|
//获取服务事项下拉框 |
|
|
|
async loadService () { |
|
|
|
const url = "/actual/base/actual/base/serviceitem/dict-list" |
|
|
|
const url = "/actual/base/serviceitem/dict-list" |
|
|
|
|
|
|
|
|
|
|
|
let params = { |
|
|
@ -544,23 +544,23 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
async handleSync (row) { |
|
|
|
// async handleSync (row) { |
|
|
|
|
|
|
|
this.$confirm("确认同步到通讯录?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning" |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.syncUnit(row) |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
if (err == "cancel") { |
|
|
|
// this.$confirm("确认同步到通讯录?", "提示", { |
|
|
|
// confirmButtonText: "确定", |
|
|
|
// cancelButtonText: "取消", |
|
|
|
// type: "warning" |
|
|
|
// }) |
|
|
|
// .then(() => { |
|
|
|
// this.syncUnit(row) |
|
|
|
// }) |
|
|
|
// .catch(err => { |
|
|
|
// if (err == "cancel") { |
|
|
|
|
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
async handleNoSync (row) { |
|
|
|
|
|
|
|
this.$confirm("确认取消同步?", "提示", { |
|
|
|