特殊人群
This commit is contained in:
		@@ -141,7 +141,7 @@
 | 
			
		||||
    </template>
 | 
			
		||||
    <template #footer>
 | 
			
		||||
      <el-button class="delete-btn footer-btn" @click="onBack">取消</el-button>
 | 
			
		||||
      <el-button class="footer-btn" type="primary" @click="submit('formData')">提交</el-button>
 | 
			
		||||
      <el-button class="footer-btn" type="primary" :loading="isLoading" @click="submit('formData')">提交</el-button>
 | 
			
		||||
    </template>
 | 
			
		||||
  </ai-detail>
 | 
			
		||||
</template>
 | 
			
		||||
@@ -169,6 +169,7 @@ export default {
 | 
			
		||||
          return time.getTime() < Date.now() - 8.64e7;
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      isLoading: false,
 | 
			
		||||
      girdName: '',
 | 
			
		||||
      gridFieldName: '',
 | 
			
		||||
      showGrid: false,
 | 
			
		||||
@@ -391,7 +392,6 @@ export default {
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (item.type === 'upload' && this.formData[item.fieldDbName]) {
 | 
			
		||||
              console.log(this.formData[item.fieldDbName])
 | 
			
		||||
              this.formData[item.fieldDbName] = this.formData[item.fieldDbName].split(',').map(v => {
 | 
			
		||||
                return {
 | 
			
		||||
                  url: v
 | 
			
		||||
@@ -410,6 +410,7 @@ export default {
 | 
			
		||||
    submit() {
 | 
			
		||||
      this.$refs.formData?.validate((valid) => {
 | 
			
		||||
        if (valid) {
 | 
			
		||||
          this.isLoading = true
 | 
			
		||||
          this.formDataList.map((item) => {
 | 
			
		||||
            if (item.length) {
 | 
			
		||||
              item.map((items) => {
 | 
			
		||||
@@ -436,12 +437,15 @@ export default {
 | 
			
		||||
            ...this.formData,
 | 
			
		||||
            id: this.params.id || ''
 | 
			
		||||
          }).then((res) => {
 | 
			
		||||
            this.isLoading = false
 | 
			
		||||
            if (res.code == 0) {
 | 
			
		||||
              this.$message.success('提交成功')
 | 
			
		||||
              setTimeout(() => {
 | 
			
		||||
                this.onBack(true)
 | 
			
		||||
              }, 600)
 | 
			
		||||
            }
 | 
			
		||||
          }).catch(() => {
 | 
			
		||||
            this.isLoading = false
 | 
			
		||||
          })
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user