| | |
| | | <div class="dispatch"> |
| | | <avue-tabs :option="optionTABS" @change="handleChangeTABS"></avue-tabs> |
| | | <span v-if="typeTABS.prop === 'tab1'" class="tab"> |
| | | <!-- <avue-crud |
| | | :option="option" |
| | | :data="data" |
| | | :page.sync="page" |
| | | ref="crudrec" |
| | | @on-load="onLoad" |
| | | :table-loading="loading" |
| | | @row-save="rowSave" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @row-update="rowUpdate" |
| | | @row-del="rowDel" |
| | | @selection-change="selectionChange" |
| | | @refresh-change="refreshChange" |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | type="danger" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-delete" |
| | | @click="handleDelete" |
| | | >删 除 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud>--> |
| | | <!-- 表单组件 --> |
| | | <basic-container> |
| | | <avue-form |
| | | ref="form" |
| | |
| | | :option="option0" |
| | | @submit="submit0" |
| | | > |
| | | <!-- <template slot-scope="scope" slot="menuForm"> |
| | | <el-button @click="tip">自定义按钮</el-button> |
| | | </template> --> |
| | | </avue-form> |
| | | </basic-container> |
| | | </span> |
| | | <span v-if="typeTABS.prop === 'tab11'" class="tab"> |
| | | <!-- <avue-crud |
| | | :option="option" |
| | | :data="data" |
| | | :page.sync="page" |
| | | ref="crudrec" |
| | | @on-load="onLoad" |
| | | :table-loading="loading" |
| | | @row-save="rowSave" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @row-update="rowUpdate" |
| | | @row-del="rowDel" |
| | | @selection-change="selectionChange" |
| | | @refresh-change="refreshChange" |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | type="danger" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-delete" |
| | | @click="handleDelete" |
| | | >删 除 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud>--> |
| | | <!-- 表单组件 --> |
| | | <basic-container> |
| | | <avue-form |
| | | ref="form" |
| | |
| | | :option="option01" |
| | | @submit="submit0" |
| | | > |
| | | <!-- <template slot-scope="scope" slot="menuForm"> |
| | | <el-button @click="tip">自定义按钮</el-button> |
| | | </template> --> |
| | | </avue-form> |
| | | </basic-container> |
| | | </span> |
| | |
| | | }, |
| | | methods: { |
| | | submit0(row, done, loading) { |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | row["departmentid"] = this.userInfo.dept_id; |
| | | } |
| | | console.log(row); |
| | | update(row).then( |
| | | () => { |
| | |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | this.onloads(); |
| | | done(); |
| | | }, |
| | | (error) => { |