Jianghan 3 lat temu
rodzic
commit
19caf9111e
2 zmienionych plików z 5 dodań i 2 usunięć
  1. 1 0
      src/config.json
  2. 4 2
      src/web/templates/list.html

+ 1 - 0
src/config.json

@@ -290,6 +290,7 @@
         ]
     },
 	"topsubtype":{
+        "采购意向": ["采购意向"],
 		"预告": ["预告","预审","预审结果","论证意见","需求公示","其它"],
 		"招标": ["变更","邀标","询价","竞谈","单一","竞价","招标","其它"],
 		"结果": ["废标","流标","结果变更","中标","成交","其它"],

+ 4 - 2
src/web/templates/list.html

@@ -142,7 +142,8 @@
                          <label class="checkbox-inline">类型:</label>
                          <select name="type" id="topsubtype" class="form-control">
                              <option value="-1">请选择</option>
-                                  <!--<option value="trailer" {{if eq .T.type "notice"}}selected{{end}}>预告</option> -->
+<!--                             <option value="trailer" {{if eq .T.type "notice"}}selected{{end}}>预告</option>-->
+                             <option value="intention" {{if eq .T.type "intention"}}selected{{end}}>采购意向</option>
                              <option value="tender" {{if eq .T.type "tender"}}selected{{end}}>招标</option>
                              <option value="bid" {{if eq .T.type "bid"}}selected{{end}}>结果</option>
                          </select>
@@ -151,7 +152,7 @@
                          <label class="checkbox-inline">字段:</label>
                          <select name="field" id="field" class="form-control">
                              <option value="-1">请选择</option>
-<!--                              <option value="trailer" {{if eq .T.type "notice"}}selected{{end}}>预告</option> -->
+                             <option value="trailer" {{if eq .T.type "notice"}}selected{{end}}>预告</option>
                              <option value="tender" {{if eq .T.type "tender"}}selected{{end}}>招标</option>
                              <option value="bid" {{if eq .T.type "bid"}}selected{{end}}>结果</option>
                          </select>
@@ -254,6 +255,7 @@ $(function(){
     if({{.T.type}} == {{.T.topsubtype}}[i]){
       selected = "selected"
     }
+        console.log({{.T.topsubtype}}[i])
     $("#topsubtype").append("<option "+selected+" value='"+{{.T.topsubtype}}[i]+"'>"+{{.T.topsubtype}}[i]+"</option>")
   }
   //标注人员筛选