ss
jiangping
2025-07-02 f7b760a680397fd0a3de2d8de36a2601de98530d
admin/src/views/business/bottom.vue
@@ -56,6 +56,13 @@
                         @uploadSuccess="uploadAvatarSuccess"   />
        </div>
      </el-form-item>
      <el-form-item label="企业微信" prop="faceImgFull">
        <div class="upload_wrap">
          <UploadAvatarImage :file="{ 'imgurlfull': form.footFullImgUrl2, 'imgurl': form.footImgUrl2 }" :uploadData="uploadData"
                         @uploadSuccess="uploadAvatarSuccess2"   />
        </div>
      </el-form-item>
      <div style="margin:20px 0 50px 0">
        <span style="font-size: 15px; font-weight: bold">【2】解决方案:</span>
      </div>
@@ -121,7 +128,42 @@
        </div>
      </div>
      <el-form-item style="display: block">
        <el-button type="primary"   icon="el-icon-plus" @click="add2">添加指挥系统</el-button>
        <el-button type="primary"   icon="el-icon-plus" @click="add2">添加智慧系统</el-button>
      </el-form-item>
      <div style="margin: 100px 0 50px 0">
        <span style="font-size: 15px; font-weight: bold;">【4】荣誉资质:</span>
      </div>
      <div  v-for="(item1,index) in form.honors" :key="'荣誉资质'+index" style="display: flex">
        <div style="flex: 1;">
          <el-form-item label="标题:"  :required="true"   >
            <el-input
                style="width: 100%"
                type="text"
                v-model="item1.name"
                placeholder="请输入标题"
                v-trim
            />
          </el-form-item>
        </div>
        <div style="display: block;flex: 3">
          <el-form-item label="跳转地址:" style="display:inline-block;  width: 80%">
            <el-input
                style="width: 100%"
                type="text"
                v-model="item1.address"
                placeholder="请输入跳转地址"
                v-trim
            />
          </el-form-item>
          <el-form-item label-width="30px" style="display:inline-block;">
            <el-button type="danger" v-if="form.honors && form.honors.length >1"  icon="el-icon-delete" @click="del3(index)">删除</el-button>
          </el-form-item>
        </div>
        <div>
        </div>
      </div>
      <el-form-item style="display: block">
        <el-button type="primary"   icon="el-icon-plus" @click="add3">添加荣誉资质</el-button>
      </el-form-item>
        <el-form-item style="margin-top: 100px;width: 100%;text-align: center">
          <el-button type="primary" style="width: 300px"  :loading="working" @click="submit">保存配置项</el-button>
@@ -147,11 +189,14 @@
        address: null,
        footImgUrl: 0,
        footFullImgUrl: 0,
        footImgUrl2: 0,
        footFullImgUrl2: 0,
        footWords: 0,
        linkMobile: 0,
        linkPhone: 0,
        serverTime: '',
        solveScheme: [{ name: '', address: '' }],
        honors: [{ name: '', address: '' }],
        wisdomSystem: [{ name: '', address: '' }]
      }
    }
@@ -171,6 +216,15 @@
    add1 () {
      this.form.solveScheme.push({ name: '', address: '' })
    },
    del3 (index) {
      if (this.form.honors.length == 1) {
        return
      }
      this.form.honors.splice(index)
    },
    add3 () {
      this.form.honors.push({ name: '', address: '' })
    },
    del2 (index) {
      if (this.form.wisdomSystem.length == 1) {
        return
@@ -187,12 +241,15 @@
            this.form.address = res.address
            this.form.footImgUrl = res.footImgUrl
            this.form.footFullImgUrl = res.footFullImgUrl
            this.form.footImgUrl2 = res.footImgUrl2
            this.form.footFullImgUrl2 = res.footFullImgUrl2
            this.form.footWords = res.footWords
            this.form.linkMobile = res.linkMobile
            this.form.linkPhone = res.linkPhone
            this.form.serverTime = res.serverTime
            this.form.solveScheme = res.solveScheme || [{ name: '', address: '' }]
            this.form.wisdomSystem = res.wisdomSystem || [{ name: '', address: '' }]
            this.form.honors = res.honors || [{ name: '', address: '' }]
          }
        })
    },
@@ -202,6 +259,10 @@
      this.form.footImgUrl = file.imgurl
      this.form.footFullImgUrl = file.imgurlfull
    },
    uploadAvatarSuccess2(file) {
      this.form.footImgUrl2 = file.imgurl
      this.form.footFullImgUrl2 = file.imgurlfull
    },
    submit () {
      console.log(this.form)
      this.$refs.form.validate((valid) => {