Browse Source

fiex:题库导入模板修改

Tang 3 years ago
parent
commit
c0db799879

+ 70 - 70
src/views/education/examManagement/applicationData/byTrainee.vue

@@ -19,7 +19,7 @@
           </li>
         </ul>
         <el-pagination
-        style="text-align: center;"
+          style="text-align: center"
           small
           layout="prev, pager, next"
           :total="total"
@@ -52,79 +52,79 @@
                   padding: '8px',
                   color: '#333',
                 }"
-                ><template v-for="(item, index) in tableSet">
-                  <el-table-column
-                    :width="item.width"
-                    :key="index"
-                    :label="item.label"
-                    align="center"
-                    :show-overflow-tooltip="true"
-                    header-align="center"
-                  >
-                    <template slot-scope="scope">
-                      <div v-if="item.scope === 'isOptions'">
-                        <template v-for="(itemt, indext) in item.options">
-                          <span
-                            :key="indext"
-                            v-if="itemt.value === scope.row[item.prop]"
-                            >{{ itemt.label }}</span
-                          >
-                        </template>
-                      </div>
-                      <div v-else-if="item.scope === 'resultType'">
-                        {{ scope.row[item.prop1] }}
+              >
+                <el-table-column
+                  v-for="(item, index) in tableSet"
+                  :width="item.width"
+                  :key="index"
+                  :label="item.label"
+                  align="center"
+                  :show-overflow-tooltip="true"
+                  header-align="center"
+                >
+                  <template slot-scope="scope">
+                    <div v-if="item.scope === 'isOptions'">
+                      <template v-for="(itemt, indext) in item.options">
                         <span
-                          :style="
-                            scope.row[item.prop2] === 1
-                              ? 'color:purple'
-                              : scope.row[item.prop2] === 0
-                              ? 'color:red;'
-                              : ''
-                          "
-                        >
-                          {{
-                            scope.row[item.prop2] === 1
-                              ? "通过"
-                              : scope.row[item.prop2] === 0
-                              ? "不通过"
-                              : ""
-                          }}
-                        </span>
-                      </div>
-                      <div v-else-if="item.scope === 'goodsInfos'">
-                        {{
-                          scope.row[item.prop1] +
-                          "-" +
-                          scope.row[item.prop2] +
-                          "-"
-                        }}<span style="color: red"
-                          >¥{{ scope.row[item.prop3] }}</span
+                          :key="indext"
+                          v-if="itemt.value === scope.row[item.prop]"
+                          >{{ itemt.label }}</span
                         >
-                      </div>
-                      <div v-else-if="item.scope === 'applyInfos'">
-                        <div>{{ scope.row[item.prop] }}</div>
-                        {{
-                          $methodsTools.onlyForma(scope.row[item.prop1], false)
-                        }}
+                      </template>
+                    </div>
+                    <div v-else-if="item.scope === 'resultType'">
+                      {{ scope.row[item.prop1] }}
+                      <span
+                        :style="
+                          scope.row[item.prop2] === 1
+                            ? 'color:purple'
+                            : scope.row[item.prop2] === 0
+                            ? 'color:red;'
+                            : ''
+                        "
+                      >
                         {{
-                          scope.row[item.prop2]
-                            ? scope.row[item.prop2].replace("-", ":")
-                            : ""
-                        }}-{{
-                          scope.row[item.prop3]
-                            ? scope.row[item.prop3].replace("-", ":")
+                          scope.row[item.prop2] === 1
+                            ? "通过"
+                            : scope.row[item.prop2] === 0
+                            ? "不通过"
                             : ""
                         }}
-                      </div>
-                      <span v-else-if="item.scope === 'aTimeList'">{{
-                        scope.row[item.prop] === null
-                          ? "--"
-                          : $methodsTools.onlyForma(scope.row[item.prop])
-                      }}</span>
-                      <div v-else>{{ scope.row[item.prop] }}</div>
-                    </template>
-                  </el-table-column></template
-                >
+                      </span>
+                    </div>
+                    <div v-else-if="item.scope === 'goodsInfos'">
+                      {{
+                        scope.row[item.prop1] +
+                        "-" +
+                        scope.row[item.prop2] +
+                        "-"
+                      }}<span style="color: red"
+                        >¥{{ scope.row[item.prop3] }}</span
+                      >
+                    </div>
+                    <div v-else-if="item.scope === 'applyInfos'">
+                      <div>{{ scope.row[item.prop] }}</div>
+                      {{
+                        $methodsTools.onlyForma(scope.row[item.prop1], false)
+                      }}
+                      {{
+                        scope.row[item.prop2]
+                          ? scope.row[item.prop2].replace("-", ":")
+                          : ""
+                      }}-{{
+                        scope.row[item.prop3]
+                          ? scope.row[item.prop3].replace("-", ":")
+                          : ""
+                      }}
+                    </div>
+                    <span v-else-if="item.scope === 'aTimeList'">{{
+                      scope.row[item.prop] === null
+                        ? "--"
+                        : $methodsTools.onlyForma(scope.row[item.prop])
+                    }}</span>
+                    <div v-else>{{ scope.row[item.prop] }}</div>
+                  </template>
+                </el-table-column>
                 <el-table-column
                   label="操作"
                   align="center"
@@ -1069,7 +1069,7 @@ export default {
     margin-right: 20px;
     padding: 10px 14px;
     .inputSty {
-      width:133px;
+      width: 133px;
       outline: none;
       height: 26px;
     }

+ 1 - 1
src/views/resource/bankManagement/topicManagement/index.vue

@@ -412,7 +412,7 @@ export default {
       this.disabledBtn = false;
     },
     dowmModel() {
-      let url = baseUrls.BASE_IMG_URL + "/oss/images/file/20220105.xlsx";
+      let url = baseUrls.BASE_IMG_URL + "/oss/images/file/20220307/1646623385198.xlsx";
       let link = document.createElement("a");
       let fileName = "导入模板" + ".xlsx";
       document.body.appendChild(link);