| | |
| | | style="display: flex;" |
| | | > |
| | | <div class="elForm"> |
| | | <el-form-item label="组织编码" style=" display: flex;"> |
| | | <el-form-item label="班组编码" style=" display: flex;"> |
| | | <el-input v-model="form.storg_code" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="组织名称" style=" display: flex;"> |
| | | <el-form-item label="班组名称" style=" display: flex;"> |
| | | <el-input v-model="form.storg_name" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | </div> |
| | |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="description" |
| | | label="班组名称" |
| | | label="描述" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="lm_user" |
| | | prop="username" |
| | | label="创建人员" |
| | | sortable="custom" |
| | | /> |
| | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | | <el-button v-waves @click="dialogVisibleCancel">取 消</el-button> |
| | | <el-button v-waves type="primary" @click="dialogVisibleConfirm">确 定</el-button> |
| | | <el-button |
| | | v-waves |
| | | type="primary" |
| | | :loading="$store.state.app.buttonIsDisabled" |
| | | :disabled="$store.state.app.buttonIsDisabled" |
| | | @click="dialogVisibleConfirm" |
| | | >确 定</el-button> |
| | | </div> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | dialogVisibleConfirm() { |
| | | this.$refs.dialogForm.validate(valid => { |
| | | if (valid) { |
| | | // console.log(JSON.parse(JSON.stringify(this.dialogForm)), 1) |
| | | this.$store.state.app.buttonIsDisabled = true |
| | | AddUpdateGroup(this.dialogForm).then(res => { |
| | | if (res.code === '200') { |
| | | this.$notify.success(this.operation === 'add' ? '添加成功!' : '修改成功!') |
| | | this.dialogVisible = false |
| | | this.getGroupData() |
| | | this.$store.state.app.buttonIsDisabled = false |
| | | } else { |
| | | this.$store.state.app.buttonIsDisabled = false |
| | | this.$notify.error(this.operation === 'add' ? '添加失败!' : '修改失败!') |
| | | } |
| | | }) |