jinlin
2024-09-26 7ec9326ce00d08f9d957981f2edff6df26f24a28
web/src/views/modules/basicInfo/TyProductModel-AddOrUpdate.vue
@@ -1,7 +1,7 @@
<template>
  <zt-dialog ref="dialog" @confirm="formSubmit" append-to-body>
  <zt-dialog ref="dialog" append-to-body @confirm="formSubmit" :hasConfirm="true">
    <el-form :model="dataForm" ref="dataForm" :disabled="dataForm.disabled" label-width="120px">
      <zt-form-item label="上级系统" prop="pid">
      <zt-form-item label="上级节点" prop="pid">
        <zt-select v-model="dataForm.pid" placeholder=" " :datas="productList" @input="selectDefaultProduct"/>
      </zt-form-item>
      <zt-form-item label="名称" prop="name" rules="required">
@@ -43,7 +43,7 @@
    name: 'TyProductModel',
    data() {
      return {
        url: `${window.SITE_CONFIG['apiURL']}/sysPictureBase/getProductImg?token=${Cookies.get('token')}&id=`,
        url: `${window.SITE_CONFIG['apiURL']}/sysPictureBase/getSvgImage?token=${Cookies.get('token')}&id=`,
        fileId: '',
        productList: [],
        dataForm: {
@@ -69,7 +69,7 @@
        this.getProductList()
      },
      selectDefaultProduct() {
        this.dataForm.nodeType = 1
        this.dataForm.nodeType = 5
        this.getDefaultImg(this.dataForm.nodeType)
      },
      // 获取系统列表