Преглед изворни кода

Merge remote-tracking branch 'origin/V0.0.2' into V0.0.2

ouyang пре 2 година
родитељ
комит
21e642b8ba

+ 1 - 1
.env.development

@@ -10,7 +10,7 @@ ENV = 'development'
 #罗俊
 #VUE_APP_BASE_API = 'http://10.87.10.49:8080'
 #罗伟
-# VUE_APP_BASE_API = 'http://10.87.10.47:8080'
+ VUE_APP_BASE_API = 'http://10.87.10.47:8080'
 #高雄
 #VUE_APP_BASE_API = 'http://10.87.11.94:8080'
 VUE_APP_BASE_API = 'http://localhost:8080'

+ 3 - 0
src/api/question/list.js

@@ -24,6 +24,7 @@ export function confirm(data) {
     url: "/core/question/confirm/" + data.id,
     method: "put",
     data,
+    showLoading: true,
   });
 }
 
@@ -33,6 +34,7 @@ export function confirmDissent(data) {
     url: "/core/question/confirmDissent/" + data.id,
     method: "put",
     data,
+    showLoading: true,
   });
 }
 
@@ -42,5 +44,6 @@ export function reform(data) {
     url: "/core/question/reform/" + data.id,
     method: "put",
     data,
+    showLoading: true,
   });
 }

+ 1 - 11
src/views/core/edu/plan/index.vue

@@ -600,7 +600,6 @@ export default {
       }, `plan_${new Date().getTime()}.xlsx`)
     },
     showSelectFile() {
-      // this.$refs.DialogSelectFile.show();
       this.$refs["DialogSelectFile"].show();
     },
     fileSelected(list) {
@@ -609,21 +608,12 @@ export default {
       list.forEach(x => {
         tempArry=tempArry.concat(x.fileList);
       })
-      console.log("fileSelected",tempArry);
-      //this.form.fileList=this.form.fileList.concat(tempArry);
       this.formFileListDefualtValue =this.form.fileList.concat(tempArry);
     },
   },
   mounted() {
 
   },
-  updated(){
-    this.filterOrtTypeOptions=JSON.parse(JSON.stringify(this.dict.type.sys_org_type)).filter(element => {
-      if(element.value > 3){
-        return JSON.parse(JSON.stringify(element))
-      }
-    });
-    console.log('this.filterOrtTypeOptions',this.filterOrtTypeOptions);
-  }
+
 };
 </script>

+ 2 - 2
src/views/core/knowledge/index.vue

@@ -196,7 +196,7 @@ export default {
     handleAdd() {
       this.reset();
       this.open = true;
-      this.title = "添加标签";
+      this.title = "新增标签";
     },
     /** 修改按钮操作 */
     handleUpdate(row) {
@@ -205,7 +205,7 @@ export default {
       getKnowledge(id).then(response => {
         this.form = response.data;
         this.open = true;
-        this.title = "修改标签";
+        this.title = "编辑标签";
       });
     },
     /** 提交按钮 */

+ 1 - 1
src/views/core/materials/index.vue

@@ -198,7 +198,7 @@
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button v-show="title!='学习资料详情'" type="primary" @click="submitForm">确 定</el-button>
         <el-button @click="cancel">取 消</el-button>
       </div>
     </DialogCom>

+ 38 - 19
src/views/question/list/dialog.vue

@@ -1,6 +1,7 @@
 <template>
-  <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body @close="cancel">
-    <el-descriptions :column="2" class="contentArea">
+  <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body @close="cancel">
+    <div class="question-dialog-body">
+      <el-descriptions :column="2" class="contentArea">
       <el-descriptions-item label="隐患所属机构">{{
         data.orgName
       }}</el-descriptions-item>
@@ -45,7 +46,7 @@
       <el-descriptions-item label="确认人">{{
         data.confirm.executorName
       }}</el-descriptions-item>
-      <el-descriptions-item label="描述">{{
+      <el-descriptions-item label="异议内容" :span="2" v-if="data.confirm.executeStatus==1">{{
         data.confirm.description
       }}</el-descriptions-item>
     </el-descriptions>
@@ -56,7 +57,7 @@
       <el-descriptions-item label="审核人">{{
         data.confirmDissent.executorName
       }}</el-descriptions-item>
-      <el-descriptions-item label="描述">{{
+      <el-descriptions-item label="描述" :span="2" v-if="data.confirmDissent.executeStatus==1">{{
         data.confirmDissent.description
       }}</el-descriptions-item>
     </el-descriptions>
@@ -67,10 +68,10 @@
       <el-descriptions-item label="整改状态">{{
         data.reform.executeStatus == 0 ? "已整改" : "未整改"
       }}</el-descriptions-item>
-      <el-descriptions-item label="描述">{{
+      <el-descriptions-item label="描述" :span="2">{{
         data.reform.description
       }}</el-descriptions-item>
-      <el-descriptions-item label="整改图片">
+      <el-descriptions-item label="整改图片" :span="2">
         <div class="imageList">
           <el-image
             style="width: 100px; height: 100px"
@@ -128,6 +129,7 @@
       >
         <el-input
           v-model="confirmDissentData.description"
+          placeHolder="请输入原因"
           maxlength="255"
         ></el-input>
       </el-form-item>
@@ -164,8 +166,10 @@
         ></imgUpload>
       </el-form-item>
     </el-form>
+  
+    </div>
     <div slot="footer" class="dialog-footer">
-      <el-button type="primary" @click="submitForm">确 定</el-button>
+      <el-button type="primary" @click="submitForm" v-if="type!='detail'">确 定</el-button>
       <el-button @click="cancel">取 消</el-button>
     </div>
   </el-dialog>
@@ -211,13 +215,13 @@ export default {
       },
       confirmRule: {
         description: [
-          { required: false, message: "请输入异议内容", trigger: "blur" },
+          { required: true, message: "请输入异议内容", trigger: "blur" },
         ],
       },
 
       confirmDissentRule: {
         description: [
-          { required: false, message: "请输入原因", trigger: "blur" },
+          { required: true, message: "请输入原因", trigger: "blur" },
         ],
       },
       reformRule: {
@@ -246,10 +250,12 @@ export default {
       this.setTitle(type);
       getQuestion(row.id).then((r) => {
         this.data = r.data;
-        this.data.confirmDissent = r.data.flows.find((d) => d.executeStep == 1);
-        this.data.confirm = r.data.flows.find((d) => d.executeStep == 2);
-        this.data.reform = r.data.flows.find((d) => d.executeStep == 10);
-        debugger
+        this.data.confirmDissent = r.data.flows.find((d) => d.executeStep == 2);
+        this.data.confirm = r.data.flows.find((d) => d.executeStep == 1);
+        this.data.reform = r.data.flows.find((d) => d.executeStep == 11);   
+        if(this.data.reform && this.data.reform.images)     {
+          this.data.reform.images=this.data.reform.images.split(",")
+        }
         this.open = true;
       });
     },
@@ -367,7 +373,20 @@ export default {
 };
 </script>
 <style lang="scss" scoped>
-.contentArea {
+.form {
+  padding-top: 20px;
+}
+.imageList div {
+  margin-left: 5px;
+  margin-right: 5px;
+}
+.question-dialog-body{
+  max-height: 500px;
+  overflow-y: auto;
+  padding-right: 15px;
+}
+
+.question-dialog-body>div{
   border-bottom: 1px solid #606266;
   padding-bottom: 20px;
 
@@ -377,11 +396,11 @@ export default {
     display: inline-block;
   }
 }
-.form {
-  padding-top: 20px;
+
+.question-dialog-body>div:not(:first-child){
+  padding-top: 15px;
 }
-.imageList div {
-  margin-left: 5px;
-  margin-right: 5px;
+.question-dialog-body>div:last-child{
+  border: none;
 }
 </style>

+ 5 - 5
src/views/question/list/index.vue

@@ -57,12 +57,12 @@
               />
             </el-select>
           </el-form-item>
-          <el-form-item label="发现日期" prop="submitTime">
+          <el-form-item label="发现日期" prop="submitRange">
             <el-date-picker
               clearable
-              v-model="queryParams.submitTime"
+              v-model="queryParams.submitRange"
               type="daterange"
-              value-format="yyyy-MM-dd"
+              format="yyyy-MM-dd"
               placeholder="请选择发现日期"
             >
             </el-date-picker>
@@ -96,6 +96,7 @@
           <right-toolbar
             :showSearch.sync="showSearch"
             @queryTable="getList"
+            :columns="columns"
           ></right-toolbar>
         </el-row>
 
@@ -188,7 +189,6 @@
           <el-table-column
             label="操作"
             align="center"
-            width="120px"
             class-name="small-padding fixed-width"
           >
             <template slot-scope="scope">
@@ -281,7 +281,7 @@ export default {
         pageNum: 1,
         pageSize: 10,
         orgId: this.orgId,
-        submitTime: null,
+        submitRange: null,
         confirmStatus: null,
         reformStatus: null,
         checkSub: true,

+ 6 - 6
src/views/resumption/taskManager/index.vue

@@ -348,14 +348,14 @@
             prop="abnormalDataNums"
             label="异常个数"
             min-width="9%"
-            v-if="columns[8].visible"
+            v-if="columns[9].visible"
           >
           </el-table-column>
           <el-table-column
             prop="status"
             label="任务状态"
             width="100px"
-            v-if="columns[9].visible"
+            v-if="columns[10].visible"
           >
             <template slot-scope="r">
               <span>
@@ -523,10 +523,10 @@ export default {
         { key: 4, label: `上级机构`, visible: true },
         { key: 5, label: `履职机构`, visible: true },
         { key: 6, label: `履职角色`, visible: true },
-        { key: 2, label: `提交人`, visible: true },
-        { key: 3, label: `提交时间`, visible: true },
-        { key: 4, label: `异常个数`, visible: true },
-        { key: 5, label: `任务状态`, visible: true },
+        { key: 7, label: `提交人`, visible: true },
+        { key: 8, label: `提交时间`, visible: true },
+        { key: 9, label: `异常个数`, visible: true },
+        { key: 10, label: `任务状态`, visible: true },
       ],
     };
   },

+ 1 - 1
src/views/system/area/index.vue

@@ -20,7 +20,7 @@
           </el-form-item>
       
       <el-form-item label="区域名称" prop="name">
-        <el-input
+        <el-input maxlength="50"
          style="width: 100%"
           v-model="queryParams.name"
           placeholder="请输入区域名称"

+ 1 - 1
src/views/system/workTimeSet/dialog.add.vue

@@ -3,7 +3,7 @@
     <DialogCom title="新增作息" @close="handleClose" :visible.sync="isShow" :close-on-click-modal="false"
       custom-class="gxDialog" width="911px" append-to-body>
 <!--      <div class="p-5 work-time">-->
-        <el-form label-width="90px" label-suffix=":" label-position="right">
+        <el-form label-width="90px" label-suffix="" label-position="right">
 
           <el-form-item label="分配机构">
             <org-tree-select ref="orgTreeSelect" @selectNode="queryNode"></org-tree-select>