# 全局的組件如何使用
~~~
<wl-company-manager
:isSuccess="false"
@successResult="successAction"
getUrl="/api/as/dangan/record/getById"
ref="wlCompanyManager"
>
<template v-slot="{row}">
<FormItem label="全宗號:">
<Input v-model="row.record_number" style="width: 70%" placeholder="必填"></Input>
</FormItem>
<FormItem label="企業編碼:">
<Input v-model="row.office_code" style="width: 70%" placeholder="必填"></Input>
</FormItem>
</template>
</wl-company-manager>
~~~
~~~
<script>
import { saveOfficeOther } from '@/api/demo'
export default {
methods: {
successAction (formItem) {
saveOfficeOther(formItem).then(ret => {
if (ret.data.errcode === 0) {
this.$refs.wlCompanyManager.successAction()
} else {
this.$Message.error('請檢查網絡')
}
})
}
}
}
</script>
~~~
### hdLogin props
| 屬性 | 說明 | 類型 | 默認值 |
| --- | --- | --- | --- |
| isSuccess | 菜單保存后執行成功的操作,默認跳轉列表頁面 | Boolean | true |
| getUrl | 在自己項目里面寫獲取機構信息的xml接口 | String | |
### default slot
| 名稱 | 說明 |
| --- | --- |
| default | 添加表單組件默認會在機構名稱下顯示 |
### Table methods
[#](https://www.iviewui.com/components/table#Table_methods)
| 方法名 | 說明 | 參數 |
| --- | --- | --- |
| successAction | 執行刷新列表頁面的功能|
#### 使用說明:
~~~
this.$refs.wlCompanyManager.successAction()
~~~
#### 備注說明
> 如果使用本地圖片作為背景的圖,可以采用下面的引入圖片方法、
- vue學習方向
- iview-admin項目說明
- 快速開始
- 開發工具
- 開始開發
- 接口的定義和調用
- 常用函數匯總
- 組件的定義
- iview開發規范說明
- 插件使用說明
- 時間插件
- 命名規范
- vue變量函數規則
- 接口嵌套使用說明
- 組件建立說明
- vue使用規范
- 數據檢測特別說名
- iview-layout-themes
- util
- common
- xeUtils詳細說明
- form表單自動生成
- theme1使用說明
- theme2使用說明
- hd-login登錄組件說明
- wl-upload-files圖片上傳組件
- wl-upload-imgs
- wl-upload-oss-files
- wl-read-excel
- wl-dir-upload選擇文件架
- system組件說明
- 機構管理wl-company-manager
- 用戶管理
- wl-excel-import Excel數據導入
- 前臺使用說明
- 后臺使用說明
- Excel使用說明
- wl-vue2-editor
- 字符串截取方法
- redis常用說明
- 推薦redis使用規范