dangzj 6 mesiacov pred
rodič
commit
340c1edc4a

+ 13 - 0
ruoyi-system/src/main/java/com/ruoyi/invest/domain/TProjectChannel.java

@@ -48,7 +48,11 @@ public class TProjectChannel extends BaseEntity
     @Excel(name = "联系电话")
     private String telephone;
 
+    @Excel(name = "城市")
+    private String channelCity;
+
     /** 地址 */
+    @Excel(name = "地址")
     private String address;
 
     /** 渠道负责人 */
@@ -208,6 +212,14 @@ public class TProjectChannel extends BaseEntity
         this.notStatus = notStatus;
     }
 
+    public String getChannelCity() {
+        return channelCity;
+    }
+
+    public void setChannelCity(String channelCity) {
+        this.channelCity = channelCity;
+    }
+
     @Override
     public String toString() {
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@@ -219,6 +231,7 @@ public class TProjectChannel extends BaseEntity
             .append("channelBlurb", getChannelBlurb())
             .append("contacts", getContacts())
             .append("telephone", getTelephone())
+            .append("channelCity", getChannelCity())
             .append("address", getAddress())
             .append("channelHead", getChannelHead())
             .append("status", getStatus())

+ 5 - 1
ruoyi-system/src/main/resources/mapper/invest/TProjectChannelMapper.xml

@@ -13,6 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="channelBlurb"    column="channel_blurb"    />
         <result property="contacts"    column="contacts"    />
         <result property="telephone"    column="telephone"    />
+        <result property="channelCity"    column="channel_city"    />
         <result property="address"    column="address"    />
         <result property="channelHead"    column="channel_head"    />
         <result property="status"    column="status"    />
@@ -25,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectTProjectChannelVo">
-        select id, channel_name, channel_code, channel_type, channel_group, channel_blurb, contacts, telephone, address, channel_head, status, mark, del_flag, create_by, create_time, update_by, update_time from t_project_channel
+        select id, channel_name, channel_code, channel_type, channel_group, channel_blurb, contacts, telephone, channel_city,address, channel_head, status, mark, del_flag, create_by, create_time, update_by, update_time from t_project_channel
     </sql>
 
     <select id="selectTProjectChannelList" parameterType="TProjectChannel" resultMap="TProjectChannelResult">
@@ -60,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="channelBlurb != null">channel_blurb,</if>
             <if test="contacts != null">contacts,</if>
             <if test="telephone != null">telephone,</if>
+            <if test="channelCity != null">channel_city,</if>
             <if test="address != null">address,</if>
             <if test="channelHead != null">channel_head,</if>
             <if test="status != null">status,</if>
@@ -79,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="channelBlurb != null">#{channelBlurb},</if>
             <if test="contacts != null">#{contacts},</if>
             <if test="telephone != null">#{telephone},</if>
+            <if test="channelCity != null">#{channelCity},</if>
             <if test="address != null">#{address},</if>
             <if test="channelHead != null">#{channelHead},</if>
             <if test="status != null">#{status},</if>
@@ -101,6 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="channelBlurb != null">channel_blurb = #{channelBlurb},</if>
             <if test="contacts != null">contacts = #{contacts},</if>
             <if test="telephone != null">telephone = #{telephone},</if>
+            <if test="channelCity != null">channel_city = #{channelCity},</if>
             <if test="address != null">address = #{address},</if>
             <if test="channelHead != null">channel_head = #{channelHead},</if>
             <if test="status != null">status = #{status},</if>

+ 12 - 0
ruoyi-ui/src/views/invest/channel/index.vue

@@ -321,6 +321,13 @@
             placeholder="请输入联系电话"
           />
         </el-form-item>
+        <el-form-item label="城市" prop="channelCity">
+          <el-input
+            maxlength="100"
+            v-model="form.channelCity"
+            placeholder="请输入城市"
+          />
+        </el-form-item>
         <el-form-item label="地址" prop="address">
           <el-input
             maxlength="100"
@@ -427,6 +434,9 @@
         <el-form-item label="联系电话" prop="telephone">
           <el-input disabled maxlength="20" v-model="form.telephone" />
         </el-form-item>
+        <el-form-item label="城市" prop="channelCity">
+          <el-input disabled maxlength="100" v-model="form.channelCity" />
+        </el-form-item>
         <el-form-item label="地址" prop="address">
           <el-input disabled maxlength="100" v-model="form.address" />
         </el-form-item>
@@ -545,6 +555,7 @@ export default {
         channelBlurb: null,
         contacts: null,
         telephone: null,
+        channelCity:null,
         address: null,
         channelHead: null,
         status: null,
@@ -574,6 +585,7 @@ export default {
             trigger: "blur",
           },
         ],
+        channelCity: [{ required: true, trigger: "blur", message: "请输入" }],
         address: [{ required: true, trigger: "blur", message: "请输入" }],
         channelHead: [{ required: true, trigger: "change", message: "请选择" }],
         status: [{ required: true, trigger: "change", message: "请选择" }],