瀏覽代碼

Merge branch 'dev_1.2.0' of http://git.qmth.com.cn/union-question/union-question-web into dev_1.2.0

zhangjie 2 年之前
父節點
當前提交
c7e66b801c

+ 29 - 30
jenkins.sh

@@ -1,31 +1,30 @@
-#!/bin/bash
-set -e # 如果构建失败,则退出,不能删除旧的包
-
-if [ "$#" -ne 1 ] ; then
-  echo "Usage: $0 BUILD_ENV" >&2
-  exit 1
-fi
-
-pwd
-
-echo “build env: $1”
-
-pwd
-
-yarn
-npm run build:$1
-
-mkdir -p ~/project/union-question/static-new/admin/temp
-cp -r  dist ~/project/union-question/static-new/admin/temp
-
-cd ~/project/union-question/static-new/admin
-if [ -d "dist" ]; then
-  currentTime=`date "+%Y%m%d%H%M%S"`
-  echo "dist backup... $currentTime"
-  tar cf admin-bak-$currentTime.tar.gz dist
-  rm -rf dist/*
-fi
-
-mv temp/dist .
-rm -rf temp
+#!/bin/bash
+set -e # 如果构建失败,则退出,不能删除旧的包
+if [ "$#" -ne 1 ] ; then
+  echo "Usage: $0 BUILD_ENV" >&2
+  exit 1
+fi
+
+pwd
+
+echo “build env: $1”
+
+pwd
+
+yarn
+npm run build:$1
+
+mkdir -p ~/project/union-question/static-new/admin/temp
+cp -r  dist ~/project/union-question/static-new/admin/temp
+
+cd ~/project/union-question/static-new/admin
+if [ -d "dist" ]; then
+  currentTime=`date "+%Y%m%d%H%M%S"`
+  echo "dist backup... $currentTime"
+  tar cf admin-bak-$currentTime.tar.gz dist
+  rm -rf dist/*
+fi
+
+mv temp/dist .
+rm -rf temp
 echo "ok..."
 echo "ok..."

+ 1 - 7
src/modules/portal/views/home/main/HomeMain.vue

@@ -16,13 +16,7 @@
             <div class="cover"></div>
             <div class="cover"></div>
           </div>
           </div>
           <div
           <div
-            class="
-              align-self-left
-              d-flex d-flex
-              flex-column
-              align-items-start
-              module-desc
-            "
+            class="align-self-left d-flex d-flex flex-column align-items-start module-desc"
           >
           >
             <div class="h4">{{ menu.name }}</div>
             <div class="h4">{{ menu.name }}</div>
             <div style="width: 400px; font-size: 14px; text-align: left">
             <div style="width: 400px; font-size: 14px; text-align: left">

+ 1 - 1
src/modules/questions/views/CheckDuplicateList.vue

@@ -409,7 +409,7 @@ export default {
       this.loading = true;
       this.loading = true;
       this.$http.get(url, { params: this.formSearch }).then((response) => {
       this.$http.get(url, { params: this.formSearch }).then((response) => {
         this.tableData = response.data.content;
         this.tableData = response.data.content;
-        this.currentPage = response.data.number + 1;
+        this.currentPage = response.data.number;
         this.total = response.data.totalElements;
         this.total = response.data.totalElements;
         this.loading = false;
         this.loading = false;
       });
       });

+ 3 - 1
src/modules/questions/views/EditPaperPendingTrial.vue

@@ -1177,7 +1177,7 @@
       <PaperBlue
       <PaperBlue
         v-if="blueDialog"
         v-if="blueDialog"
         :paper-id="paperId"
         :paper-id="paperId"
-        :course-code="paper.course.code"
+        :course-id="paper.course.id"
       ></PaperBlue>
       ></PaperBlue>
     </el-dialog>
     </el-dialog>
     <!-- 审核记录 -->
     <!-- 审核记录 -->
@@ -1256,6 +1256,7 @@ export default {
       parentView: "",
       parentView: "",
       paper: {
       paper: {
         course: {
         course: {
+          id: "",
           code: "",
           code: "",
           name: "",
           name: "",
         },
         },
@@ -1862,6 +1863,7 @@ export default {
       this.loading = true;
       this.loading = true;
       this.paper = {
       this.paper = {
         course: {
         course: {
+          id: "",
           code: "",
           code: "",
           name: "",
           name: "",
         },
         },

+ 0 - 120
src/modules/questions/views/ExportTemplate.vue

@@ -43,9 +43,6 @@
         </el-form-item>
         </el-form-item>
       </el-form>
       </el-form>
       <div class="part-box-action">
       <div class="part-box-action">
-        <el-button type="primary" plain icon="icon icon-set" @click="operConfig"
-          >配置
-        </el-button>
         <el-button type="primary" icon="icon icon-plus-white" @click="addFile"
         <el-button type="primary" icon="icon icon-plus-white" @click="addFile"
           >新增</el-button
           >新增</el-button
         >
         >
@@ -205,52 +202,6 @@
         <el-button type="danger" plain @click="closeFileModel">取消</el-button>
         <el-button type="danger" plain @click="closeFileModel">取消</el-button>
       </div>
       </div>
     </el-dialog>
     </el-dialog>
-
-    <el-dialog
-      title="配置信息"
-      width="550px"
-      :visible.sync="configModel"
-      :close-on-click-modal="false"
-      :modal="false"
-      append-to-body
-      custom-class="side-dialog"
-      @close="closeConfigModel"
-    >
-      <el-form
-        ref="configForm"
-        :key="configModelKey"
-        :inline="true"
-        :model="configForm"
-        :rules="configRules"
-        label-width="90px"
-      >
-        <el-form-item v-if="isSuperAdmin" label="学校名称">
-          <el-input
-            v-model="configForm.orgName"
-            disabled="true"
-            class="pull-length"
-          ></el-input>
-        </el-form-item>
-        <el-form-item label="配置名称" prop="serviceName">
-          <el-input
-            v-model="configForm.serviceName"
-            class="pull-length"
-            placeholder="请输入serviceName"
-          ></el-input>
-        </el-form-item>
-      </el-form>
-      <div slot="footer">
-        <el-button
-          type="primary"
-          :loading="configForm.loading"
-          @click="subConfig"
-          >确定</el-button
-        >
-        <el-button type="danger" plain @click="closeConfigModel"
-          >取消</el-button
-        >
-      </div>
-    </el-dialog>
   </section>
   </section>
 </template>
 </template>
 <script>
 <script>
@@ -295,11 +246,6 @@ export default {
         dataFile: null,
         dataFile: null,
         loading: false,
         loading: false,
       },
       },
-      configForm: {
-        serviceName: null,
-        orgName: null,
-        loading: false,
-      },
       tableData: [],
       tableData: [],
       currentPage: 1,
       currentPage: 1,
       pageSize: 10,
       pageSize: 10,
@@ -340,21 +286,6 @@ export default {
           },
           },
         ],
         ],
       },
       },
-      configRules: {
-        serviceName: [
-          {
-            required: true,
-            type: "string",
-            message: "请输入配置名称",
-            trigger: "change",
-          },
-          {
-            pattern: /^[^\\/\\?%#&=\\+]*$/,
-            message: "名称不能包含特殊字符 / ? % # & = +",
-            trigger: "change",
-          },
-        ],
-      },
     };
     };
   },
   },
   computed: {
   computed: {
@@ -451,33 +382,6 @@ export default {
       }
       }
       this.fileModel = true;
       this.fileModel = true;
     },
     },
-    operConfig() {
-      if (this.formSearch.rootOrgId == null) {
-        this.$notify({
-          type: "warning",
-          message: "请选择学校",
-        });
-        return;
-      }
-      this.loading = true;
-      var url =
-        QUESTION_API + "/exportTemplate/config/" + this.formSearch.rootOrgId;
-      this.$httpWithMsg
-        .get(url)
-        .then((response) => {
-          this.configForm.serviceName = response.data.exportServiceName;
-          if (this.isSuperAdmin) {
-            for (const org of this.rootOrgList) {
-              if (this.formSearch.rootOrgId == org.id) {
-                this.configForm.orgName = org.name;
-                break;
-              }
-            }
-          }
-          this.configModel = true;
-        })
-        .finally(() => (this.loading = false));
-    },
     async subFile() {
     async subFile() {
       const res = await this.$refs.fileForm.validate();
       const res = await this.$refs.fileForm.validate();
 
 
@@ -509,30 +413,6 @@ export default {
         })
         })
         .finally(() => (this.fileForm.loading = false));
         .finally(() => (this.fileForm.loading = false));
     },
     },
-    async subConfig() {
-      const res = await this.$refs.configForm.validate();
-
-      if (res === false) {
-        return;
-      }
-      this.configForm.loading = true;
-      var params = "?serviceName=" + this.configForm.serviceName;
-      var url =
-        QUESTION_API +
-        "/exportTemplate/config/" +
-        this.formSearch.rootOrgId +
-        params;
-      this.$httpWithMsg
-        .put(url)
-        .then(() => {
-          this.$notify({
-            type: "success",
-            message: "配置成功!",
-          });
-          this.closeConfigModel();
-        })
-        .finally(() => (this.configForm.loading = false));
-    },
     closeFileModel() {
     closeFileModel() {
       this.fileModel = false;
       this.fileModel = false;
       this.$refs.fileForm.resetFields();
       this.$refs.fileForm.resetFields();