Commit 9f557bc0 authored by daniel's avatar daniel

fix(service): 自助服务新增排序

parent da9aa408
...@@ -23,7 +23,8 @@ ...@@ -23,7 +23,8 @@
, create_time , create_time
, create_user , create_user
, cmpt_id , cmpt_id
, icon_url) , icon_url
, sort)
VALUES ( #{userId} VALUES ( #{userId}
, #{type} , #{type}
, #{path} , #{path}
...@@ -44,7 +45,8 @@ ...@@ -44,7 +45,8 @@
, now() , now()
, #{userId} , #{userId}
, #{cmptId} , #{cmptId}
, #{iconUrl}) , #{iconUrl}
, #{sort})
</insert> </insert>
<update id="update"> <update id="update">
...@@ -71,6 +73,7 @@ ...@@ -71,6 +73,7 @@
,update_time = now() ,update_time = now()
,update_user = #{userId} ,update_user = #{userId}
,cmpt_id = #{cmptId} ,cmpt_id = #{cmptId}
,sort = #{sort}
WHERE WHERE
id = #{id} id = #{id}
</update> </update>
...@@ -91,6 +94,7 @@ ...@@ -91,6 +94,7 @@
, userId , userId
, cmpt_id AS cmptId , cmpt_id AS cmptId
, app_id AS appId , app_id AS appId
, sort
, path , path
, type , type
, title , title
...@@ -116,6 +120,7 @@ ...@@ -116,6 +120,7 @@
,title ,title
,address ,address
,app_id AS appId ,app_id AS appId
,sort
,path ,path
,lng ,lng
,lat ,lat
...@@ -145,6 +150,7 @@ ...@@ -145,6 +150,7 @@
<if test="moduleId != null and moduleId != ''"> <if test="moduleId != null and moduleId != ''">
AND FIND_IN_SET(#{moduleId}, module_id) AND FIND_IN_SET(#{moduleId}, module_id)
</if> </if>
ORDER BY sort
LIMIT #{pageSize} OFFSET #{page} LIMIT #{pageSize} OFFSET #{page}
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -32,4 +32,6 @@ public class RichText { ...@@ -32,4 +32,6 @@ public class RichText {
private String appId; private String appId;
// 小程序路径/文件地址/图片地址 // 小程序路径/文件地址/图片地址
private String path; private String path;
// 排序
private Integer sort;
} }
\ No newline at end of file
...@@ -528,7 +528,20 @@ ...@@ -528,7 +528,20 @@
</label> </label>
</div> </div>
</div> </div>
<div class="func">
<span class="title-new">排序</span>
<span style="font-size: 16px;color: #ce3939;margin:10px 0;">
<span
style="font-size: 12px;display: inline-block;border-radius: 50%;height: 18px;width: 18px;background: #ce3939;color: white;text-align: center;">注</span>
<span style="display: inline">越小越靠前</span>
</span>
<div>
<input class="input" type="number" v-model="service.sort"
placeholder="请输入排序">
</div>
</div>
</div> </div>
<div class="saveDiv"> <div class="saveDiv">
<span @click="cancel" class="cancel">取消</span> <span @click="cancel" class="cancel">取消</span>
<span @click="submit" class="submit">保存</span> <span @click="submit" class="submit">保存</span>
...@@ -569,6 +582,7 @@ ...@@ -569,6 +582,7 @@
"delFlg": null, // 删除状态(0:未删除 1:已删除) "delFlg": null, // 删除状态(0:未删除 1:已删除)
"appId": null, // 小程序appid "appId": null, // 小程序appid
"path": null, // 小程序路径/文件地址/图片地址 "path": null, // 小程序路径/文件地址/图片地址
sort: 100, // 排序
}, },
moduleIndex: 0, moduleIndex: 0,
keyword: '', keyword: '',
...@@ -753,6 +767,7 @@ ...@@ -753,6 +767,7 @@
remark4: null, remark4: null,
status: 1, status: 1,
delFlg: null, delFlg: null,
sort: 100, // 排序
}; };
}, },
// 编辑 // 编辑
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment