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