wanggaokun 10 ماه پیش
والد
کامیت
b797903a36
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      src/views/manage/orderConfig/index.vue
  2. 1 1
      src/views/manage/orderInfo/task/index.vue

+ 2 - 2
src/views/manage/orderConfig/index.vue

@@ -109,7 +109,6 @@ onMounted(async () => {
   instOptions.value = inst.data.data.map(item => {
     return { value: item.id, label: `${item.content}-` + (item.attribute == '1' ? '开' : '关') }
   })
-  console.log('content', instOptions.value)
 })
 
 const initFormData = {
@@ -121,7 +120,7 @@ const initFormData = {
   description: ''
 }
 const initParam = reactive({})
-const form = ref({ ...initFormData })
+let form = ref({ ...initFormData })
 const rules = reactive({
   orderCode: [{ required: true, message: '指令编码不能为空', trigger: 'blur' }],
   name: [{ required: true, message: '指令名称不能为空', trigger: 'blur' }],
@@ -171,6 +170,7 @@ const closeDialog = () => {
  * 重置表单
  */
 const resetForm = () => {
+  form.value = { ...initFormData }
   orderFormRef.value?.resetFields()
   orderFormRef.value?.clearValidate()
 }

+ 1 - 1
src/views/manage/orderInfo/task/index.vue

@@ -311,7 +311,7 @@ watch(active, (newVal, oldVal) => {
 })
 const change = (val: any) => {
   const data = {
-    id: formRef.value?.formModel.modelId,
+    id: formRef.value?.formModel.abnormalId,
     dataParams: JSON.stringify(val)
   }
   updateModelInfoApi(data)