| | |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | | <el-button type="primary" icon="el-icon-search" size="small" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="handleAdd" |
| | | v-hasPermi="['unit:add']" |
| | | >新增</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | |
| | | size="mini" |
| | | :disabled="single" |
| | | @click="handleUpdate" |
| | | v-hasPermi="['unit:edit']" |
| | | >修改</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | v-hasPermi="['unit:remove']" |
| | | >删除</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleExport" |
| | | v-hasPermi="['unit:export']" |
| | | >导出</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | |
| | | <el-table-column label="单位联系人" align="center" prop="unitContact" /> |
| | | <el-table-column label="单位联系人电话" align="center" prop="unitContactPhone" /> |
| | | <el-table-column label="单位管理员账号" align="center" prop="unitAdminAccount" /> |
| | | <el-table-column label="备注" align="center" prop="remark" /> |
| | | <el-table-column label="备注" align="center" prop="remark" show-overflow-tooltip/> |
| | | <el-table-column label="添加时间" align="center" prop="createTime" /> |
| | | <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['unit:edit']" |
| | | >修改</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['unit:remove']" |
| | | >删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-input v-model="form.unitName" placeholder="请输入单位名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="单位账号" prop="unitAdminAccount"> |
| | | <el-input v-model="form.unitAdminAccount" placeholder="请输入单位管理员账号" /> |
| | | <el-input v-model="form.unitAdminAccount" placeholder="请输入单位管理员账号" :disabled="account" /> |
| | | </el-form-item> |
| | | <el-form-item label="单位联系人" prop="unitContact"> |
| | | <el-input v-model="form.unitContact" placeholder="请输入单位联系人" /> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | | <el-button @click="cancel">取 消</el-button> |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | name: "Unit", |
| | | data() { |
| | | return { |
| | | // 账号不可修改 |
| | | account: true, |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.account = false; |
| | | this.reset(); |
| | | this.open = true; |
| | | this.title = "添加运维单位"; |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | this.account = true; |
| | | this.reset(); |
| | | const id = row.id || this.ids |
| | | getUnit(id).then(response => { |