| | |
| | | :tree-props="{ children: 'childList', hasChildren: 'hasChildren' }" row-key="id" |
| | | @selection-change="handleSelectionChange" default-expand-all> |
| | | <el-table-column type="selection" width="55"></el-table-column> |
| | | <el-table-column prop="name" label="组织名称" min-width="200px"></el-table-column> |
| | | <el-table-column prop="name" label="组织名称" min-width="200px" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="name" label="组织类型" min-width="80px"> |
| | | <template scope="{row}"> |
| | | <span v-if="row.type == 0">相关方组织</span> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="sortnum" align="center" label="排序码" min-width="80px"></el-table-column> |
| | | <el-table-column prop="companyNamePath" label="组织路径" min-width="200px"></el-table-column> |
| | | <el-table-column prop="companyNamePath" label="组织路径" min-width="200px" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="editorName" label="操作人" width="100px"></el-table-column> |
| | | <el-table-column prop="editDate" label="最后更新时间" min-width="150px"></el-table-column> |
| | | <el-table-column label="操作" width="230" fixed="right"> |
| | |
| | | total: 0 |
| | | } |
| | | }, |
| | | provide() { |
| | | provide () { |
| | | return { |
| | | sysConfig: () => this.sysConfig |
| | | } |
| | |
| | | }, |
| | | // 同步信息 |
| | | async synchronous () { |
| | | this.$dialog.actionConfirm('该操作将系统清空已有组织信息,您确认同步全部信息吗?', '操作确认提醒') |
| | | var msg = '该操作将系统清空已有组织信息' |
| | | this.sysConfig = this.sysConfig || {} |
| | | if (this.sysConfig.orgUserDataOrigin === 0) { |
| | | msg = '本系统当前组织由系统自建模式,该功能将初始化同步海康安防平台组织信息,该操作结果可能会清空或删除系统已有组织数据,' |
| | | }else if (this.sysConfig.orgUserDataOrigin === 1) { |
| | | msg = '本系统当前组织来源于三方ERP平台,该该操作结果可能会清空或删除系统已有组织数据,' |
| | | }else if (this.sysConfig.orgUserDataOrigin === 2) { |
| | | msg = '本系统当前组织来源于海康安防平台平台,该该操作结果可能会清空或删除系统已有组织数据,' |
| | | }else if (this.sysConfig.orgUserDataOrigin === 3) { |
| | | msg = '本系统当前组织来源于简道云平台,该该操作结果可能会清空或删除系统已有组织数据,' |
| | | }else if (this.sysConfig.orgUserDataOrigin === 4) { |
| | | msg = '本系统当前组织来源于钉钉平台,该该操作结果可能会清空或删除系统已有组织数据,' |
| | | } |
| | | this.$dialog.actionConfirm(msg + ',您确认同步全部信息吗?', '操作确认提醒') |
| | | .then(() => { |
| | | this.loading = true |
| | | companySync({}) |