Ver Fonte

no message

Jianghan há 3 anos atrás
pai
commit
03502827be

+ 4 - 1
src/config.json

@@ -26,7 +26,10 @@
     "fields":{
     	"projectname": true,
 		"area": true,
-		"projectcode": true
+		"projectcode": true,
+		"purchasinglist": false,
+		"package": true,
+		"winnerorder": true
 	},
     "es":{
     	"addr": "http://192.168.3.206:9800",

+ 1 - 1
src/front/front.go

@@ -1095,7 +1095,7 @@ func GetDataById1(coll string, ids []string, stype string, tmp map[string]map[st
 							if v < util.BIDDINGSTARTID {
 								tmpBidColl = util.BidColl2 //bidding_back
 							}
-							bid, b := util.MgoB.FindById(tmpBidColl, id, nil)
+							bid, b := util.MgoB.FindById(tmpBidColl, v, nil)
 							if b && len(*bid) > 0 {
 								tmp := make(map[string]interface{})
 								tmp["id"] = v

+ 2 - 2
src/main.go

@@ -49,7 +49,7 @@ func init() {
 }
 
 func main() {
-	// var SE = qu.SimpleEncrypt{Key: "topJYBX2019"}
-	// qu.Debug(SE.EncodeString("6138fff01a75b8f4466dd76f"))
+	var SE = qu.SimpleEncrypt{Key: "topJYBX2019"}
+	qu.Debug(SE.EncodeString("601d7ac3cf5d499d509b83d8"))
 	xweb.Run(":" + util.Config.Port)
 }

+ 4 - 3
src/web/templates/detail.html

@@ -154,8 +154,8 @@
               </el-radio-group>
               
               <el-radio-group v-model="activeLabel" v-for="(item, index) in otherInfo"  size="mini">
-                <el-radio-button class="success" :label="item.subtype">[[item.subtype]]</el-radio-button>
-                <el-radio-button class="success" :label="item.subtype + '-附件'">附件</el-radio-button>
+                <el-radio-button class="success" :label="item.id">[[item.subtype]]</el-radio-button>
+                <el-radio-button class="success" :label="item.id + '-附件'">附件</el-radio-button>
               </el-radio-group>
             
               <el-radio-group v-if="moreInfo&&moreInfo.length > 0"  size="mini">
@@ -357,6 +357,7 @@
 
 </body>
 <script>
+  console.log({{ .T.otherInfo }})
   var allCheckFields  = {{.T.fields}};//本次需标注的所有字段
   // 页面数据
   var pageDataMap = {
@@ -795,7 +796,7 @@
             } else {//匹配原公告关联信息
               var tempS = this.activeLabel.split('-')
               var isFile = tempS.length === 2
-              var otherData = this.otherInfo.filter(v => v.subtype == tempS[0])
+              var otherData = this.otherInfo.filter(v => v.id == tempS[0])
               if (otherData.length > 0) {
                 tempData.title = otherData[0].title
                 tempData.html = otherData[0].detail

+ 3 - 3
src/web/templates/re_detail.html

@@ -154,8 +154,8 @@
               </el-radio-group>
 
               <el-radio-group v-model="activeLabel" v-for="(item, index) in otherInfo"  size="mini">
-                <el-radio-button class="success" :label="item.subtype">[[item.subtype]]</el-radio-button>
-                <el-radio-button class="success" :label="item.subtype + '-附件'">附件</el-radio-button>
+                <el-radio-button class="success" :label="item.id">[[item.subtype]]</el-radio-button>
+                <el-radio-button class="success" :label="item.id + '-附件'">附件</el-radio-button>
               </el-radio-group>
 
               <el-radio-group v-if="moreInfo&&moreInfo.length > 0"  size="mini">
@@ -791,7 +791,7 @@
             } else {//匹配原公告关联信息
               var tempS = this.activeLabel.split('-')
               var isFile = tempS.length === 2
-              var otherData = this.otherInfo.filter(v => v.subtype == tempS[0])
+              var otherData = this.otherInfo.filter(v => v.id == tempS[0])
               if (otherData.length > 0) {
                 tempData.title = otherData[0].title
                 tempData.html = otherData[0].detail

+ 2 - 1
src/web/templates/review.html

@@ -189,7 +189,8 @@
             type:"get",
             success:function(r){
             if (r.rep) {
-                    $("#modal-result").modal("show");
+//                     $("#modal-result").modal("show");
+                    alert("统计成功!")
                 }else {
                     alert("统计失败!")
                 }