|
|
@@ -1,7 +1,7 @@ |
|
|
|
<!-- |
|
|
|
* @Author: your name |
|
|
|
* @Date: 2021-12-07 15:14:51 |
|
|
|
* @LastEditTime: 2021-12-29 09:35:51 |
|
|
|
* @LastEditTime: 2021-12-31 15:26:11 |
|
|
|
* @LastEditors: JinxuChen |
|
|
|
* @Description: 自动报警分类 |
|
|
|
* @FilePath: \GpsCardAdmin\src\views\off-limits-manage\off-limits-main\off-limits-type\index.vue |
|
|
@@ -34,7 +34,8 @@ |
|
|
|
<el-button type="primary" @click="submitForm('currentAddType')" |
|
|
|
>提交</el-button |
|
|
|
> |
|
|
|
<el-button @click="resetForm('currentAddType')">重置</el-button> |
|
|
|
<!-- todo重置功能存在bug,暂时去掉 --> |
|
|
|
<!-- <el-button @click="resetForm('currentAddType')">重置</el-button> --> |
|
|
|
<el-button @click="dialogVisibleType = false">取 消</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
@@ -141,6 +142,11 @@ export default { |
|
|
|
AddDialog() { |
|
|
|
this.dialogVisibleType = true; |
|
|
|
this.titleTypeAddorModify="新增类别"; |
|
|
|
this.initForm(); //添加时初始化表单内容 |
|
|
|
}, |
|
|
|
initForm() { |
|
|
|
this.currentAddType.kindId = '1'; |
|
|
|
this.currentAddType.typeLabel = ''; |
|
|
|
}, |
|
|
|
submitForm(formName) { |
|
|
|
this.$refs[formName].validate((valid) => { |
|
|
|