Browse Source

修改基层登记表格,集中文印导出

sunyanqiang 3 years ago
parent
commit
0408b53d04

+ 8 - 0
src/api/grassrootsregistration/bdglequip.js

@@ -17,6 +17,14 @@ export function getBdglequip(id) {
   })
 }
 
+// 查看训练器材/教材登记薄详细
+export function equipuntits(id) {
+  return request({
+    url: '/grassrootsregistration/bdglequip/equipunits?unitid=' + id,
+    method: 'get'
+  })
+}
+
 // 新增训练器材/教材登记薄
 export function addBdglequip(data) {
   return request({

+ 8 - 0
src/api/grassrootsregistration/bdglfilemanagement.js

@@ -17,6 +17,14 @@ export function getBdglfilemanagement(id) {
   })
 }
 
+// 查看文件管理登计本详细
+export function fileunits(id) {
+  return request({
+    url: '/grassrootsregistration/bdglfilemanagement/fileunits?unitid=' + id,
+    method: 'get'
+  })
+}
+
 // 新增文件管理登计本
 export function addBdglfilemanagement(data) {
   return request({

+ 7 - 0
src/api/grassrootsregistration/bdglsecrecy.js

@@ -16,6 +16,13 @@ export function getBdglsecrecy(id) {
     method: 'get'
   })
 }
+// 查看/手机/涉密载体登记本详细
+export function units(unitid) {
+  return request({
+    url: '/grassrootsregistration/bdglsecrecy/units?unitid=' + unitid,
+    method: 'get'
+  })
+}
 
 // 新增网络/手机/涉密载体登记本
 export function addBdglsecrecy(data) {

+ 21 - 10
src/components/look_word/bdgldiary.vue

@@ -52,7 +52,7 @@
             height="40"
             style="border: none; font-family: 'fangsong'"
           >
-            {{ message.blogDate | dataFormat }}
+            {{ message.blogDate | dataFormats }}
           </td>
           <td colspan="2" style="border: none; font-family: 'songti'">
             <span style="font-family: 'fangsong'">{{ message.week }}</span>
@@ -477,7 +477,8 @@
             rowspan="2"
             style="font-family: 'fangsong'"
           >
-            {{ message.dutyDate | dataFormat }}<br />
+            <div style="margin-bottom: 10px">交接时间</div>
+            {{ message.dutyDate | dataFormat }}
           </td>
           <td class="JR_right" colspan="8"></td>
         </tr>
@@ -842,19 +843,29 @@
           border: none;
         "
       >
-        <tr height="30" style="border: none; font-family: 'songti'">
-          <td colspan="3" style="border: none"></td>
-          <td colspan="6" style="border: none"></td>
-          <td colspan="2" height="40" style="border: none">
+        <tr
+          height="30"
+          style="
+            border: none;
+            font-family: 'songti';
+            display: flex;
+            justify-content: space-between;
+            height: 70px;
+          "
+        >
+          <td colspan="2" style="border: none">
             <p style="border: none; font-family: 'songti'">
               连队首长签字: {{ message.sz }}
             </p>
           </td>
-
-          <td colspan="3" style="border: none; font-family: 'songti'">
+          <td colspan="10" style="border: none;width:250px" ></td>
+          <td
+            colspan="2"
+            style="border: none; font-family: 'songti'; display: inline-block"
+          >
             <p style="border: none; font-family: 'songti'">
-              时&nbsp;&nbsp;间:  
-              <!--  {{ message.blogDate | dataFormat }} -->
+              时&nbsp;&nbsp;间:
+              {{ message.blogDate | dataFormat }}
             </p>
           </td>
         </tr>

+ 43 - 17
src/components/look_word/bdglequip.vue

@@ -124,56 +124,64 @@ font-family: 'heiti'
               <p align="center" class="JR_left" style="font-family: 'heiti'">经手人</p>
             </td>
           </tr>
-          <tr class="JR_tr" style="font-family: 'fangsong'">
+
+
+
+
+
+
+          <tr class="JR_tr" style="font-family: 'fangsong'" v-for="(item,i) in message" :key="i">
             <td width="37" valign="center">
-              <p align="center">{{ message.id }}</p>
+              <p align="center">{{ item.id }}</p>
             </td>
             <td width="66" valign="center" rowspan="1" class="JR_right">
-              <p align="center">{{ message.type }}</p>
+              <p align="center">{{ item.type }}</p>
             </td>
             <td width="85" valign="center">
-              <p align="center" class="JR_right">{{ message.title }}</p>
+              <p align="center" class="JR_right">{{ item.title }}</p>
             </td>
             <td width="66" valign="center">
-              <p align="center" class="JR_right">{{ message.unitName }}</p>
+              <p align="center" class="JR_right">{{ item.unitName }}</p>
             </td>
             <td width="56" valign="center">
-              <p align="center" class="JR_right">{{ message.granttime }}</p>
+              <p align="center" class="JR_right">{{ item.granttime }}</p>
             </td>
             <td width="47" valign="center">
-              <p align="center" class="JR_right">{{ message.grantnum }}</p>
+              <p align="center" class="JR_right">{{ item.grantnum }}</p>
             </td>
             <td width="47" valign="center">
-              <p align="center" class="JR_right">{{ message.ownnum }}</p>
+              <p align="center" class="JR_right">{{ item.ownnum }}</p>
             </td>
             <td width="56" valign="center">
-              <p align="center" class="JR_right">{{ message.stocknum }}</p>
+              <p align="center" class="JR_right">{{ item.stocknum }}</p>
             </td>
             <td width="56" valign="center">
-              <p align="center" class="JR_right">{{ message.intime }}</p>
+              <p align="center" class="JR_right">{{ item.intime }}</p>
             </td>
             <td width="47" valign="center">
-              <p align="center" class="JR_right">{{ message.innum }}</p>
+              <p align="center" class="JR_right">{{ item.innum }}</p>
             </td>
             <td width="75" valign="center">
-              <p align="center" class="JR_right">{{ message.peopleName }}</p>
+              <p align="center" class="JR_right">{{ item.peopleName }}</p>
             </td>
             <td width="56" valign="center">
-              <p align="center" class="JR_right">{{ message.outtime }}</p>
+              <p align="center" class="JR_right">{{ item.outtime }}</p>
             </td>
             <td width="47" valign="center">
-              <p align="center" class="JR_right">{{ message.outnum }}</p>
+              <p align="center" class="JR_right">{{ item.outnum }}</p>
             </td>
             <td width="75" valign="center">
-              <p align="center" class="JR_right">{{ message.people1Name }}</p>
+              <p align="center" class="JR_right">{{ item.people1Name }}</p>
             </td>
             <td width="56" valign="center">
-              <p align="center" class="JR_right">{{ message.quality }}</p>
+              <p align="center" class="JR_right">{{ item.quality }}</p>
             </td>
             <td width="56" valign="center">
-              <p align="center" class="JR_right">{{ message.info }}</p>
+              <p align="center" class="JR_right">{{ item.info }}</p>
             </td>
           </tr>
+
+
           <tr >
             <td width="37" valign="center" style="font-family: 'heiti'">
               <p align="center">
@@ -253,10 +261,28 @@ export default {
   data() {
     return {
       title: "训练器材、教材登记簿",
+      num:[],
+      arr: [],
       style:
         ".b1{width:860px !important};.JR_tr {height: 40px;};.JR_left{width: 120px;font-size: 1.151em; font-family: '楷体_GB2312';};.JR_right{ font-size: 1.231em; font-family: 仿宋_GB2312;};.JR_bottom{border-left:0; font-size: 1.331em; font-family: 仿宋_GB2312; text-align: right};",
     };
   },
+  created(){
+    this.message.forEach((item,i )=> {
+      if (this.num.length <= 0){
+        this.num.push(item.type)
+      } 
+      else if(this.num.indexOf(item.type) == -1){
+        this.num.push(item.type)
+      } 
+    });
+    for (let index = 0; index < this.num.length; index++) {
+      this.arr[index] = {
+        index: null
+      }
+    }
+    
+  },
   methods: {
     daochu() {
       lookWord(this.title, "#contents", this.style, true);

+ 77 - 157
src/components/look_word/bdglsecrecy.vue

@@ -9,14 +9,13 @@
           font-weight: 600;
           margin-botttom: 30px;
           color: black;
-          font-family: 'heiti'
+          font-family: 'heiti';
         "
       >
         《网络、移动电话、涉密载体使用管理登记本》
       </p>
       <!-- <div class="fTitle">网络、移动电话、涉密载体使用管理登记本</div> -->
       <table
-      
         border="1"
         style="
           border-collapse: collapse;
@@ -29,217 +28,130 @@
           mso-border-insidev: 0.5pt solid windowtext;
           mso-padding-alt: 0pt 0pt 0pt 0pt;
           width: 930px;
-          
         "
         bordercolor="black"
         class="size"
       >
         <!--<p align="center" style="font-size: 14pt;font-weight: bold;">网络/移动电话/涉密载体登记本</p>-->
-        <tbody style="font-size: 16px;font-weight: 500;">
+        <tbody style="font-size: 16px; font-weight: 500">
           <tr class="JR_tr">
-            <td valign="center" style="width: 90px;font-family: 'heiti'" class="JR_left">
+            <td
+              valign="center"
+              style="width: 90px; font-family: 'heiti'"
+              class="JR_left"
+            >
               <p align="center" style="margin: 5px 0">种类(名称)</p>
             </td>
-            <td valign="center" style="width: 90px;font-family: 'heiti'" class="JR_left">
+            <td
+              valign="center"
+              style="width: 90px; font-family: 'heiti'"
+              class="JR_left"
+            >
               <p align="center" style="margin: 5px 0">型号</p>
             </td>
-            <td valign="center" style="width: 90px;font-family: 'heiti'" class="JR_left">
+            <td
+              valign="center"
+              style="width: 90px; font-family: 'heiti'"
+              class="JR_left"
+            >
               <p align="center" style="margin: 5px 0">编号</p>
             </td>
-            <td valign="center" style="width: 90px;font-family: 'heiti'" class="JR_left">
+            <td
+              valign="center"
+              style="width: 90px; font-family: 'heiti'"
+              class="JR_left"
+            >
               <p align="center" style="margin: 5px 0">密级</p>
             </td>
-            <td valign="center" style="width: 90px;font-family: 'heiti'" class="JR_left">
+            <td
+              valign="center"
+              style="width: 90px; font-family: 'heiti'"
+              class="JR_left"
+            >
               <p align="center" style="margin: 5px 0">责任人</p>
             </td>
-            <td valign="center" style="width: 90px;font-family: 'heiti'" class="JR_left">
+            <td
+              valign="center"
+              style="width: 90px; font-family: 'heiti'"
+              class="JR_left"
+            >
               <p align="center" style="margin: 5px 0">使用人</p>
             </td>
-            <td valign="center" style="width: 90px;font-family: 'heiti'" class="JR_left">
+            <td
+              valign="center"
+              style="width: 90px; font-family: 'heiti'"
+              class="JR_left"
+            >
               <p align="center" style="margin: 5px 0">批准人</p>
             </td>
-            <td valign="center" style="width: 90px;font-family: 'heiti'" class="JR_left">
+            <td
+              valign="center"
+              style="width: 90px; font-family: 'heiti'"
+              class="JR_left"
+            >
               <p align="center" style="margin: 5px 0">
                 使用起止 <br />
                 时间
               </p>
             </td>
-            <td valign="center" style="width: 106px;font-family: 'heiti'" class="JR_left">
+            <td
+              valign="center"
+              style="width: 106px; font-family: 'heiti'"
+              class="JR_left"
+            >
               <p align="center" style="margin: 5px 0">移交(出借)时间</p>
             </td>
           </tr>
-          <tr class="JR_tr">
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0;font-family: 'fangsong'">{{ message.kind }}</p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0;font-family: 'fangsong'">{{ message.version }}</p>
-            </td>
+          <tr class="JR_tr" v-for="(item, i) in message" :key="i+' '">
             <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0;font-family: 'fangsong'">{{ message.number }}</p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0;font-family: 'fangsong'">
-                {{ message.confidential }}
+              <p align="center" style="margin: 5px 0; font-family: 'fangsong'">
+                {{ item.kind }}
               </p>
             </td>
             <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0;font-family: 'fangsong'">
-                {{ message.peopleName }}
+              <p align="center" style="margin: 5px 0; font-family: 'fangsong'">
+                {{ item.version }}
               </p>
             </td>
             <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0;font-family: 'fangsong'">
-                {{ message.people1Name }}
+              <p align="center" style="margin: 5px 0; font-family: 'fangsong'">
+                {{ item.number }}
               </p>
             </td>
             <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0;font-family: 'fangsong'">
-                {{ message.people2Name }}
+              <p align="center" style="margin: 5px 0; font-family: 'fangsong'">
+                {{ item.confidential }}
               </p>
             </td>
             <td valign="center" class="JR_right">
-              <!--<p align="center">2022-01-18<br>2022-01-18</p>-->
-              <p align="center" style="margin: 5px 0;font-family: 'fangsong'">
-                {{ message.startTime }}
+              <p align="center" style="margin: 5px 0; font-family: 'fangsong'">
+                {{ item.peopleName }}
               </p>
             </td>
             <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0;font-family: 'fangsong'">
-                {{ message.hindOverTime }}<br />
-                (移交/出售)
-              </p>
-            </td>
-          </tr>
-          <tr class="JR_tr">
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0; height: 40px"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <!--<p align="center">2022-01-20<br>2022-01-20</p>-->
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0">
-                <br />
+              <p align="center" style="margin: 5px 0; font-family: 'fangsong'">
+                {{ item.people1Name }}
               </p>
             </td>
-          </tr>
-          <tr class="JR_tr">
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0; height: 40px"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <!--<p align="center">2022-01-20<br>2022-01-20</p>-->
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
             <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0">
-                <br />
+              <p align="center" style="margin: 5px 0; font-family: 'fangsong'">
+                {{ item.people2Name }}
               </p>
             </td>
-          </tr>
-          <tr class="JR_tr">
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0; height: 40px"></p>
-            </td>
             <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <!--<p align="center">2022-01-20<br>2022-01-20</p>-->
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0">
-                <br />
+              <!--<p align="center">2022-01-18<br>2022-01-18</p>-->
+              <p align="center" style="margin: 5px 0; font-family: 'fangsong'">
+                {{ item.startTime }}
               </p>
             </td>
-          </tr>
-          <tr class="JR_tr">
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0; height: 40px"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
             <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <!--<p align="center">2022-01-20<br>2022-01-20</p>-->
-              <p align="center" style="margin: 5px 0"></p>
-            </td>
-            <td valign="center" class="JR_right">
-              <p align="center" style="margin: 5px 0">
-                <br />
+              <p align="center" style="margin: 5px 0; font-family: 'fangsong'">
+                {{ item.hindOverTime }}<br />
+                (移交/出售)
               </p>
             </td>
           </tr>
-          <tr class="JR_tr">
+          <tr class="JR_tr" v-for="(item1,i1) in num" :key="i1+''">
             <td valign="center" class="JR_right">
               <p align="center" style="margin: 5px 0; height: 40px"></p>
             </td>
@@ -287,8 +199,16 @@ export default {
       title: "网络、移动电话、涉密载体使用管理登记本",
       style:
         "font-weight: 550;.size{width:860px !important};.JR_tr {height: 40px;};.JR_left{font-size: 1.211em; font-family: '楷体_GB2312';};.JR_right{ font-size: 1.1em; font-family: 仿宋_GB2312;};.JR_bottom{border-left:0; font-size: 1.331em; font-family: 仿宋_GB2312; text-align: right}",
+      num: 0,
     };
   },
+  created() {
+    if (this.message.length >= 6){
+      this.num = 0
+    } else {
+      this.num = 6 - this.message.length
+    }
+  },
   methods: {
     daochu() {
       lookWord(this.title, "#contents", this.style, true);

+ 10 - 0
src/main.js

@@ -77,6 +77,16 @@ Vue.filter('dataFormat', originVal => {
     return `${y}-${m}-${d}`
   }
 
+})
+// originVal 后台返回的中国标准时间
+Vue.filter('dataFormats', originVal => {
+  const dt = new Date(originVal)
+  if (originVal) {
+    const m = (dt.getMonth() + 1 + '').padStart(2, '0')
+    const d = (dt.getDate() + '').padStart(2, '0')
+    return `${m}月${d}日`
+  }
+
 })
 
 import dataV from '@jiaminghi/data-view'

+ 78 - 23
src/views/PrintsLog/printlog/index.vue

@@ -40,28 +40,6 @@
           ></el-option>
         </el-select>
       </el-form-item>
-      <el-form-item label="" prop="unitId">
-        <treeselect
-          v-model="queryParams.unitId"
-          :options="deptOptions"
-          placeholder="请选择单位"
-          @select="selectPeos"
-        />
-      </el-form-item>
-      <el-form-item prop="levelM">
-        <el-select
-          v-model="queryParams.levelM"
-          clearable
-          placeholder="请选择级别"
-        >
-          <el-option
-            v-for="dict in levelMs"
-            :key="dict.dictValue"
-            :label="dict.dictLabel"
-            :value="parseInt(dict.dictValue)"
-          ></el-option>
-        </el-select>
-      </el-form-item>
       <!-- <el-button type="primary" size="btn" @click="handleQuery"
           >搜索</el-button
         > -->
@@ -333,6 +311,68 @@
         <el-button @click="cancel" size="btn">取 消</el-button>
       </div>
     </el-dialog>
+
+    <!-- 导出弹框 -->
+    <el-dialog
+      title="导出记录"
+      :visible.sync="open1"
+      width="550px"
+      append-to-body
+      :close-on-click-modal="false"
+    >
+      <el-form
+        ref="form"
+        :model="queryParams"
+        inline
+        :rules="rules"
+        label-width="120px"
+      >
+        <el-form-item label="" prop="unitId">
+          <treeselect
+            v-model="queryParams.unitId"
+            :options="deptOptions"
+            placeholder="请选择单位"
+            @select="selectPeos"
+          />
+        </el-form-item>
+        <el-form-item prop="levelM">
+          <el-select
+            v-model="queryParams.levelM"
+            clearable
+            placeholder="请选择级别"
+          >
+            <el-option
+              v-for="dict in levelMs"
+              :key="dict.dictValue"
+              :label="dict.dictLabel"
+              :value="parseInt(dict.dictValue)"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item>
+          <el-date-picker
+            v-model="queryParams.startt"
+            type="date"
+            placeholder="选择开始时间"
+            value-format="yyyy-MM-dd"
+          >
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item>
+          <el-date-picker
+            v-model="queryParams.endt"
+            type="date"
+            placeholder="选择结束时间"
+             value-format="yyyy-MM-dd"
+          >
+          </el-date-picker>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForms">确 定</el-button>
+        <el-button @click="cancels" size="btn">取 消</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
@@ -395,6 +435,8 @@ export default {
         printCode: null,
         primaryPath: null,
         presentPath: null,
+        startt:null,
+        endt:null
       },
       // 表单参数
       form: {},
@@ -412,6 +454,7 @@ export default {
       deptOptions: [],
       //级别
       levelMs: [],
+      open1: false,
     };
   },
   created() {
@@ -444,7 +487,6 @@ export default {
     },
     selectPeos(data) {
       this.queryParams.unitId = data.id;
-      this.getList();
     },
     //获取人员
     getrylist() {
@@ -469,6 +511,13 @@ export default {
       this.reset();
       this.flg = null;
     },
+    cancels() {
+      this.queryParams.levelM = null;
+      this.queryParams.unitId = null;
+      this.queryParams.startt = null;
+      this.queryParams.endt = null;
+      this.open1 = false;
+    },
     // 表单重置
     reset() {
       this.form = {
@@ -605,7 +654,12 @@ export default {
     },
     /** 导出按钮操作 */
     handleExport() {
+      this.open1 = true;
+    },
+    // 导出操作
+    submitForms() {
       const queryParams = this.queryParams;
+      console.log(queryParams);
       this.$modal
         .confirm("是否确认导出集中文印记录数据项?")
         .then(() => {
@@ -615,6 +669,7 @@ export default {
         .then((response) => {
           this.$download.name(response.msg);
           this.exportLoading = false;
+          this.cancels();
         })
         .catch(() => {});
     },

+ 3 - 1
src/views/grassrootsregistration/bdgldiary/index.vue

@@ -1643,7 +1643,9 @@ export default {
             if (this.relatives[0].peopleId !== null) {
               this.form.kinsfolk = this.relatives;
             }
-            // 训练计划
+          this.form.blogDate=new Date(this.form.blogDate)
+          console.log(this.form.blogDate);
+            // // 训练计划
             this.form.weekworkRegisters = this.xunlian;
             addBdgldiary(this.form).then((response) => {
               this.$modal.msgSuccess("新增成功");

+ 4 - 3
src/views/grassrootsregistration/bdglequip/index.vue

@@ -354,6 +354,7 @@ import {
   updateBdglequip,
   exportBdglequip,
   getList,
+  equipuntits
 } from "@/api/grassrootsregistration/bdglequip";
 import {
   getZhuChiRen,
@@ -375,7 +376,7 @@ export default {
     return {
       //查看页面
       menuRoleVisible: false,
-      wordInfo: {},
+      wordInfo: [],
       //判断关闭
       style: "2",
       // 遮罩层
@@ -626,10 +627,10 @@ export default {
     },
     //查看按钮操作
     handleChakan(row) {
+      const unitId =row.unitId
       // 是否隐藏按钮
       this.opens = false;
-      const id = row.id || this.ids;
-      getBdglequip(id).then((response) => {
+      equipuntits(unitId).then((response) => {
         this.wordInfo = response.data;
         this.title = "查看文件管理登计本";
         this.menuRoleVisible = true;

+ 4 - 3
src/views/grassrootsregistration/bdglfilemanagement/index.vue

@@ -318,6 +318,7 @@ import {
   addBdglfilemanagement,
   updateBdglfilemanagement,
   exportBdglfilemanagement,
+  fileunits
 } from "@/api/grassrootsregistration/bdglfilemanagement";
 import {
   getZhuChiRen,
@@ -337,7 +338,7 @@ export default {
     return {
       //查看页面
       menuRoleVisible: false,
-      wordInfo: {},
+      wordInfo: [],
       //判断关闭
       style: "2",
       // 遮罩层
@@ -564,10 +565,10 @@ export default {
 
     //查看按钮操作
     handleChakan(row) {
+      const unitId =row.unitId
       // 是否隐藏按钮
       this.opens = false;
-      const id = row.id || this.ids;
-      getBdglfilemanagement(id).then((response) => {
+      fileunits(unitId).then((response) => {
         this.wordInfo = response.data;
         this.title = "查看文件管理登计本";
         this.menuRoleVisible = true;

+ 11 - 8
src/views/grassrootsregistration/bdglsecrecy/index.vue

@@ -7,8 +7,12 @@
       v-show="showSearch"
       label-width="68px"
     >
-    <el-form-item prop="deptName">
-      <el-input placeholder="请输入单位" v-model="queryParams.deptName" @input="handleQuery"/>
+      <el-form-item prop="deptName">
+        <el-input
+          placeholder="请输入单位"
+          v-model="queryParams.deptName"
+          @input="handleQuery"
+        />
       </el-form-item>
       <el-form-item label="" prop="kind">
         <el-select
@@ -215,10 +219,7 @@
           />
         </el-form-item>
         <el-form-item label="种类" prop="kind">
-          <el-select
-            v-model="form.kind"
-            placeholder="请选择种类"
-          >
+          <el-select v-model="form.kind" placeholder="请选择种类">
             <el-option
               v-for="(item, i) in ziDian"
               :label="item.bb"
@@ -351,6 +352,7 @@ import {
   addBdglsecrecy,
   updateBdglsecrecy,
   exportBdglsecrecy,
+  units,
 } from "@/api/grassrootsregistration/bdglsecrecy";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@@ -366,7 +368,7 @@ export default {
     return {
       //查看页面
       menuRoleVisible: false,
-      wordInfo: {},
+      wordInfo: [],
       //判断关闭
       style: "2",
       // 遮罩层
@@ -621,10 +623,11 @@ export default {
     },
     //查看按钮操作
     handleChakan(row) {
+      const unitId = row.unitId;
       // 是否隐藏按钮
       this.opens = false;
       const id = row.id || this.ids;
-      getBdglsecrecy(id).then((response) => {
+      units(unitId).then((response) => {
         this.wordInfo = response.data;
         this.title = "查看网络/手机/涉密载体登记本";
         this.menuRoleVisible = true;