|
@@ -2,7 +2,7 @@
|
|
|
* @description: 合同管理 相关API
|
|
|
* @Author: CP
|
|
|
* @Date: 2020-10-26 15:27:04
|
|
|
- * @FilePath: \construction_management\web\api\contract_api.go
|
|
|
+ * @FilePath: \design_quantity\web\api\contract_api.go
|
|
|
*/
|
|
|
package api
|
|
|
|
|
@@ -27,6 +27,7 @@ type ContractApi struct {
|
|
|
// @Description 未设置合同项目节 返回项目节模板信息
|
|
|
// @Accept json
|
|
|
// @Produce json
|
|
|
+// @Param operation body string true "操作名称" 1
|
|
|
// @Success 200 {object} viewmodels.TreeSectionContract "{code:0成功,-1参数类错误,data:viewmodels.TreeSectionContract,msg:错误信息}"
|
|
|
// @Router /api/section/all [get]
|
|
|
func (c *ContractApi) GetSectionAll() {
|
|
@@ -55,7 +56,7 @@ func (c *ContractApi) GetSectionAll() {
|
|
|
// }
|
|
|
|
|
|
//获得合同项目节
|
|
|
- sectionTree := c.ServiceContract.GetSecionTree()
|
|
|
+ sectionTree := c.ServiceContract.GetSecionTree(sectionData.Operation)
|
|
|
|
|
|
c.Ctx.JSON(iris.Map{
|
|
|
"code": 0,
|