| | |
| | | </div> |
| | | |
| | | <el-dialog title="扣分详情" :visible.sync="dialogVisible" :close-on-click-modal="false" width="30%"> |
| | | <el-form ref="form" :model="formInline" label-width="54px"> |
| | | <el-form-item label="说明"> |
| | | <el-form ref="form" :rules="rules" :model="formInline" label-width="54px"> |
| | | <el-form-item label="说明" prop="name"> |
| | | <el-input v-model="formInline.name"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="备注"> |
| | |
| | | <el-button type="primary" class="btns" @click="listAdd" |
| | | >确 定</el-button |
| | | > |
| | | <el-button @click="dialogVisible = false">取 消</el-button> |
| | | <el-button @click="bacQx">取 消</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | name: "", |
| | | remark: "", |
| | | }, |
| | | rules: { |
| | | name: [ |
| | | { required: true, message: "说明不能为空", trigger: "change" }, |
| | | ],} |
| | | }; |
| | | }, |
| | | created() { |
| | | this.id = this.$route.query.id; |
| | | console.log('tagee',this.$route.query) |
| | | this.safeT(this.id); |
| | | }, |
| | | methods: { |
| | |
| | | }); |
| | | }, |
| | | coAdd(val, type) { |
| | | this.$nextTick(() => { |
| | | this.$refs["form"].clearValidate(); |
| | | }); |
| | | this.titleN = type; |
| | | if (type == "新增") { |
| | | this.dialogVisible = true; |
| | |
| | | } |
| | | }, |
| | | listAdd() { |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | | if (this.titleN == "新增") { |
| | | this.form.deductionList.push(this.formInline); |
| | | this.dialogVisible = false; |
| | |
| | | this.form.deductionList[this.index].space = this.formInline.space; |
| | | this.dialogVisible = false; |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | listDel(val) { |
| | | var i = this.form.deductionList.findIndex( |
| | |
| | | }, |
| | | safetyInspectionItemA() { |
| | | safetyInspectionItemMod(this.form).then((res) => { |
| | | console.log(res) |
| | | if (res.data.code == 200) { |
| | | this.$notify({ |
| | | type: "success", |
| | |
| | | path:"/new" |
| | | }) |
| | | }, |
| | | bacQx(){ |
| | | this.dialogVisible = false; |
| | | this.safeT(this.id); |
| | | }, |
| | | handleClick() { |
| | | this.dialogVisible = true; |
| | | }, |