ccjgmwz 3 年 前
コミット
30182cb8d2

+ 7 - 7
src/api/platformManagement.js

@@ -4,7 +4,7 @@ export function getList(data) {
   return request({
     url: '/patformAnagementEgulations/selectPage',
     method: 'get',
-     params: data,
+    params: data
   })
 }
 
@@ -13,7 +13,7 @@ export function addFormData(data) {
   return request({
     url: '/patformAnagementEgulations/api/add',
     method: 'post',
-     data: data,
+    data: data
   })
 }
 
@@ -22,7 +22,7 @@ export function seeData(data) {
   return request({
     url: '/patformAnagementEgulations/show',
     method: 'get',
-     params: data,
+    params: data
   })
 }
 
@@ -31,7 +31,7 @@ export function editFormData(data) {
   return request({
     url: '/patformAnagementEgulations/api/edit',
     method: 'post',
-     data: data,
+    data: data
   })
 }
 
@@ -40,7 +40,7 @@ export function delFormData(data) {
   return request({
     url: '/patformAnagementEgulations/api/delete',
     method: 'post',
-     data: data,
+    data: data
   })
 }
 
@@ -49,6 +49,6 @@ export function auditFormData(data) {
   return request({
     url: '/patformAnagementEgulations/api/examine',
     method: 'post',
-     data: data,
+    data: data
   })
-}
+}

+ 4 - 10
src/layout/components/Navbar.vue

@@ -10,10 +10,10 @@
         <div class="avatar-wrapper">
           <img src="../../../public/img/yonghu.jpg" class="user-avatar">
           <!-- <img :src="avatar+'?imageView2/1/w/80/h/80'" class="user-avatar"> -->
-		  <div class="name_css">
-			  系统管理员:全能账户
-		  </div>
-		  
+          <div class="name_css">
+            系统管理员:全能账户
+          </div>
+
           <i class="el-icon-caret-bottom" />
         </div>
         <el-dropdown-menu slot="dropdown" class="user-dropdown">
@@ -22,12 +22,6 @@
               首页
             </el-dropdown-item>
           </router-link>
-          <a target="_blank" href="https://github.com/PanJiaChen/vue-admin-template/">
-            <el-dropdown-item>Github</el-dropdown-item>
-          </a>
-          <a target="_blank" href="https://panjiachen.github.io/vue-element-admin-site/#/">
-            <el-dropdown-item>Docs</el-dropdown-item>
-          </a>
           <el-dropdown-item divided @click.native="logout">
             <span style="display:block;">退出登录</span>
           </el-dropdown-item>

+ 1 - 1
src/views/dashboard/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="dashboard-container">
-    <div class="dashboard-text">name: {{ name }}</div>
+    <div class="dashboard-text" />
   </div>
 </template>
 

+ 293 - 282
src/views/platformManagement/specifiedRecords.vue

@@ -1,288 +1,300 @@
 // 规定记录审核
 <template>
-	<div class="center">
-		<div class="center_css">
-			<div class="top_css">
-				<el-row>
-					<el-col :span="14">
-						<el-button type="primary" @click="AddRecord" :disabled="disabled">新增</el-button>
-					</el-col>
-					<el-col :span="10">
-						<div class="screen">
-							<el-input placeholder="可按版本号、编写单位、编撰人员查找" v-model="searchkeyWord" clearable></el-input>
-							<el-button class="search" @click="find"><img width="16" height="16"
-									style="margin-left: -8px" src="../../../public/img/sousuo.png" /></el-button><span
-								class="count_css">共{{ deptBudgetTotal }}条</span>
-						</div>
-					</el-col>
-				</el-row>
-			</div>
-			<el-table :data="tableData" style="width: 98%; margin: 0 auto; border-radius: 10px" height="55.8vh" border>
-				<el-table-column prop="versionNumber" label="版本号"></el-table-column>
-				<el-table-column prop="compilationUnit" label="编写单位"></el-table-column>
-				<el-table-column prop="editor" label="编撰人员"></el-table-column>
-				<el-table-column prop="updateDate" label="更新日期"></el-table-column>
-				<el-table-column label="上传" prop="submitter"></el-table-column>
-				<el-table-column prop="versionDescription" label="版本说明">
-				</el-table-column>
-				<el-table-column prop="status" label="状态"></el-table-column>
-				<el-table-column label="操作" min-width="300">
-					<template slot-scope="scope">
-						<el-link target="_blank" @click="look(scope.row)" type="primary" :underline="false">查看</el-link>
-						<el-divider direction="vertical"></el-divider>
-						<el-link target="_blank" @click="audit(scope.row)" type="primary" :underline="false" :disabled="scope.row.status != '待审核'">审核
-						</el-link>
-						<el-divider direction="vertical"></el-divider>
-						<el-link target="_blank" @click="del(scope.row)" type="primary" :underline="false" :disabled="scope.row.status != '待审核' && scope.row.status != '已驳回' ">删除</el-link>
-						<el-divider direction="vertical"></el-divider>
-						<el-link target="_blank" @click="edit(scope.row)" type="primary" :underline="false">编辑</el-link>
-					</template>
-				</el-table-column>
-			</el-table>
-		</div>
-		<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
-			style="text-align: center; margin-top: 10px" :page-size="deptCircularPage.pageSize"
-			layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal">
-		</el-pagination>
-		<el-dialog title="驳回认证" :visible.sync="rejectInfo" width="400px" :before-close="rejectClose">
-			<div>
-				<div><span class="sign">*</span>选择驳回原因</div>
-				<div class="form_css">
-					<el-form ref="form" :model="form" label-width="80px">
-						<el-checkbox-group v-model="form.checkList">
-							<el-checkbox label="证件照片不清晰" value="1"></el-checkbox>
-							<el-checkbox label="证件照片上传错误" value="2"></el-checkbox>
-							<el-checkbox label="身份信息填写错误" value="3"></el-checkbox>
-							<el-checkbox label="证件信息填写错误" value="4"></el-checkbox>
-							<el-checkbox label="其他" value="5"></el-checkbox>
-						</el-checkbox-group>
-						<div style="margin: 20px 0;">驳回原因描述(选填)</div>
-						<el-input type="textarea" :rows="3" resize="none" placeholder="输入驳回原因,1-100个字"
-							v-model="form.rejectReasonDescription" minlength="100"></el-input>
-						<div class="form_btn">
-							<el-button @click="rejectClose">取消</el-button>
-							<el-button @click="submit" type="primary">确定</el-button>
-						</div>
-					</el-form>
-				</div>
-			</div>
-		</el-dialog>
-	</div>
+  <div class="center">
+    <div class="center_css">
+      <div class="top_css">
+        <el-row>
+          <el-col :span="14">
+            <el-button type="primary" :disabled="disabled" @click="AddRecord">新增</el-button>
+          </el-col>
+          <el-col :span="10">
+            <div class="screen">
+              <el-input v-model="searchkeyWord" placeholder="可按版本号、编写单位、编撰人员查找" clearable />
+              <el-button class="search" @click="find"><img
+                width="16"
+                height="16"
+                style="margin-left: -8px"
+                src="../../../public/img/sousuo.png"
+              ></el-button><span
+                class="count_css"
+              >共{{ deptBudgetTotal }}条</span>
+            </div>
+          </el-col>
+        </el-row>
+      </div>
+      <el-table :data="tableData" style="width: 98%; margin: 0 auto; border-radius: 10px" height="55.8vh" border>
+        <el-table-column prop="versionNumber" label="版本号" />
+        <el-table-column prop="compilationUnit" label="编写单位" />
+        <el-table-column prop="editor" label="编撰人员" />
+        <el-table-column prop="updateDate" label="更新日期" />
+        <el-table-column label="上传" prop="submitter" />
+        <el-table-column prop="versionDescription" label="版本说明" />
+        <el-table-column prop="status" label="状态" />
+        <el-table-column label="操作" min-width="300">
+          <template slot-scope="scope">
+            <el-link target="_blank" type="primary" :underline="false" @click="look(scope.row)">查看</el-link>
+            <el-divider direction="vertical" />
+            <el-link target="_blank" type="primary" :underline="false" :disabled="scope.row.status != '待审核'" @click="audit(scope.row)">审核
+            </el-link>
+            <el-divider direction="vertical" />
+            <el-link target="_blank" type="primary" :underline="false" :disabled="scope.row.status != '待审核' && scope.row.status != '已驳回' " @click="del(scope.row)">删除</el-link>
+            <el-divider direction="vertical" />
+            <el-link target="_blank" type="primary" :underline="false" @click="edit(scope.row)">编辑</el-link>
+          </template>
+        </el-table-column>
+      </el-table>
+    </div>
+    <el-pagination
+      :current-page="currentPage"
+      style="text-align: center; margin-top: 10px"
+      :page-size="deptCircularPage.pageSize"
+      layout="total, sizes, prev, pager, next, jumper"
+      :total="deptBudgetTotal"
+      @size-change="handleSizeChange"
+      @current-change="handleCurrentChange"
+    />
+    <el-dialog title="驳回认证" :visible.sync="rejectInfo" width="400px" :before-close="rejectClose">
+      <div>
+        <div><span class="sign">*</span>选择驳回原因</div>
+        <div class="form_css">
+          <el-form ref="form" :model="form" label-width="80px">
+            <el-checkbox-group v-model="form.checkList">
+              <el-checkbox label="证件照片不清晰" value="1" />
+              <el-checkbox label="证件照片上传错误" value="2" />
+              <el-checkbox label="身份信息填写错误" value="3" />
+              <el-checkbox label="证件信息填写错误" value="4" />
+              <el-checkbox label="其他" value="5" />
+            </el-checkbox-group>
+            <div style="margin: 20px 0;">驳回原因描述(选填)</div>
+            <el-input
+              v-model="form.rejectReasonDescription"
+              type="textarea"
+              :rows="3"
+              resize="none"
+              placeholder="输入驳回原因,1-100个字"
+              minlength="100"
+            />
+            <div class="form_btn">
+              <el-button @click="rejectClose">取消</el-button>
+              <el-button type="primary" @click="submit">确定</el-button>
+            </div>
+          </el-form>
+        </div>
+      </div>
+    </el-dialog>
+  </div>
 </template>
 <script>
-	import {
-		getList,
-		toExamine,
-		postNews,
-		delFormData
-	} from '@/api/platformManagement'
-	export default {
-		data() {
-			return {
-				tableData: [],
-				//分页
-				searchkeyWord: "",
-				currentPage: 1,
-				pageSize: 10,
-				deptBudgetTotal: 0,
-				deptCircularPage: {},
-				search: "",
-				addressUrl: [],
-				disabled: false,
-				rejectInfo: false,
-				form: {
-					id: "",
-					checkList: [],
-					rejectReasonDescription: "",
-				},
-			  disabled:false,
-			};
-		},
-		mounted() {
-			this.getList()
-		},
-		methods: {
-			AddRecord() {
-				this.$router.push({
-					path: 'specifiedRecordsAdd'
-				})
-			},
-			getList() {
-				this.loading = true
-				let _obj = {}
-				_obj.currentPage = this.currentPage
-				_obj.pageSize = this.pageSize
-				_obj.searchKeyWord = this.searchkeyWord
-				_obj.searchType = this.search
-				getList(_obj).then(response => {
-						this.tableData = response.data.records
-						this.deptBudgetTotal = response.data.total
-						if(this.tableData[0].status == "待审核" || this.tableData[0].status == "已驳回"){
-							// 最上面一条处于待审核和已驳回时新增按钮置灰不可用
-							this.disabled = true
-						}
-						this.listLoading = false
-					})
-					.catch(() => {
-						this.loading = false
-					})
-			},
-			del(row) {
-				this.$confirm("确定要删除该记录吗?", '提示', {
-						confirmButtonText: '确定',
-						cancelButtonText: '取消',
-						type: 'warning',
-					})
-					.then(() => {
-						this.listLoading = true
-						var _del = {}
-						_del.id = row.id
-						delFormData(_del).then(response => {
-								this.$notify({
-									title: '成功',
-									message: '删除成功!',
-									type: 'success'
-								});
-								this.getList()
-								this.listLoading = false
-							})
-							.catch(() => {
-								this.loading = false
-							})
-					})
-
-
-			},
-			sendInfoClose() {
-				this.Info = {}
-				this.sendInfo = false
-			},
-			submitInfo() {
-				this.listLoading = true
-				postNews(this.Info).then(response => {
-						this.$notify({
-							title: '成功',
-							message: '发送成功!',
-							type: 'success'
-						});
-						this.sendInfoClose()
-						this.listLoading = false
-					})
-					.catch(() => {
-						this.loading = false
-					})
-			},
-			switchChange(row, num) {
-				var _examine = {}
-				_examine.id = row.id
-				let title
-				if (num == 1) {
-					_examine.flag = 3
-					title = "禁用后客户将无法使用所有功能,是否确定禁用?"
-				} else if (num == 2) {
-					title = "确定重新启用该用户?"
-					_examine.flag = 4
-				}
-				this.$confirm(title, '提示', {
-						confirmButtonText: '确定',
-						cancelButtonText: '取消',
-						type: 'warning',
-					})
-					.then(() => {
-						this.listLoading = true
-						toExamine(_examine).then(response => {
-								if (num == 1) {
-									this.$notify({
-										title: '成功',
-										message: '禁用成功!',
-										type: 'success'
-									});
-								} else if (num == 2) {
-									this.$notify({
-										title: '成功',
-										message: '启用成功!',
-										type: 'success'
-									});
-								}
-								this.getList()
-								this.listLoading = false
-							})
-							.catch(() => {
-								this.loading = false
-							})
-					})
-			},
-			find() {
-				this.getList();
-			},
-			look(row) {
-				this.$router.push({
-					path: 'specifiedRecordsLook',
-					query: {
-						id: row.id,
-						type: "1"
-					}
-				})
-			},
-			edit(row) {
-				this.$router.push({
-					path: 'specifiedRecordsLook',
-					query: {
-						id: row.id,
-						type: "2"
-					}
-				})
-			},
-			submit() {
-				if (this.form.checkList.length == 0) {
-					this.$message.error("请选择驳回原因")
-					return
-				}
-				this.listLoading = true
-				this.form.rejectReason = this.form.checkList.toString()
-				delete this.form.checkList
-				toExamine(this.form).then(response => {
-						this.$notify({
-							title: '成功',
-							message: '驳回成功!',
-							type: 'success'
-						});
-						this.form.checkList = []
-						this.form.rejectReasonDescription = ""
-						this.rejectInfo = false
-						this.getList()
-						this.listLoading = false
-					})
-					.catch(() => {
-						this.loading = false
-					})
-			},
-			audit(row) {
-				this.$router.push({
-					path: 'specifiedRecordsLook',
-					query: {
-						id: row.id,
-						type: "3"
-					}
-				})
-			},
-			rejectClose() {
-				this.form.checkList = []
-				this.form.rejectReasonDescription = ""
-				this.rejectInfo = false
-			},
-			handleSizeChange(val) {
-				console.log(`每页 ${val} 条`);
-				this.pageSize = val;
-				this.getList();
-			},
-			handleCurrentChange(val) {
-				this.currentPage = val;
-				console.log(`当前页: ${val}`);
-				this.getList();
-			},
-		},
-	};
+import {
+  getList,
+  toExamine,
+  postNews,
+  delFormData
+} from '@/api/platformManagement'
+export default {
+  data() {
+    return {
+      tableData: [],
+      // 分页
+      searchkeyWord: '',
+      currentPage: 1,
+      pageSize: 10,
+      deptBudgetTotal: 0,
+      deptCircularPage: {},
+      search: '',
+      addressUrl: [],
+      disabled: false,
+      rejectInfo: false,
+      form: {
+        id: '',
+        checkList: [],
+        rejectReasonDescription: ''
+      }
+    }
+  },
+  mounted() {
+    this.getList()
+  },
+  methods: {
+    AddRecord() {
+      this.$router.push({
+        path: 'specifiedRecordsAdd'
+      })
+    },
+    getList() {
+      this.loading = true
+      const _obj = {}
+      _obj.currentPage = this.currentPage
+      _obj.pageSize = this.pageSize
+      _obj.searchKeyWord = this.searchkeyWord
+      _obj.searchType = this.search
+      getList(_obj).then(response => {
+        this.tableData = response.data.records
+        this.deptBudgetTotal = response.data.total
+        if (this.tableData[0].status == '待审核' || this.tableData[0].status == '已驳回') {
+          // 最上面一条处于待审核和已驳回时新增按钮置灰不可用
+          this.disabled = true
+        }
+        this.listLoading = false
+      })
+        .catch(() => {
+          this.loading = false
+        })
+    },
+    del(row) {
+      this.$confirm('确定要删除该记录吗?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      })
+        .then(() => {
+          this.listLoading = true
+          var _del = {}
+          _del.id = row.id
+          delFormData(_del).then(response => {
+            this.$notify({
+              title: '成功',
+              message: '删除成功!',
+              type: 'success'
+            })
+            this.getList()
+            this.listLoading = false
+          })
+            .catch(() => {
+              this.loading = false
+            })
+        })
+    },
+    sendInfoClose() {
+      this.Info = {}
+      this.sendInfo = false
+    },
+    submitInfo() {
+      this.listLoading = true
+      postNews(this.Info).then(response => {
+        this.$notify({
+          title: '成功',
+          message: '发送成功!',
+          type: 'success'
+        })
+        this.sendInfoClose()
+        this.listLoading = false
+      })
+        .catch(() => {
+          this.loading = false
+        })
+    },
+    switchChange(row, num) {
+      var _examine = {}
+      _examine.id = row.id
+      let title
+      if (num == 1) {
+        _examine.flag = 3
+        title = '禁用后客户将无法使用所有功能,是否确定禁用?'
+      } else if (num == 2) {
+        title = '确定重新启用该用户?'
+        _examine.flag = 4
+      }
+      this.$confirm(title, '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      })
+        .then(() => {
+          this.listLoading = true
+          toExamine(_examine).then(response => {
+            if (num == 1) {
+              this.$notify({
+                title: '成功',
+                message: '禁用成功!',
+                type: 'success'
+              })
+            } else if (num == 2) {
+              this.$notify({
+                title: '成功',
+                message: '启用成功!',
+                type: 'success'
+              })
+            }
+            this.getList()
+            this.listLoading = false
+          })
+            .catch(() => {
+              this.loading = false
+            })
+        })
+    },
+    find() {
+      this.getList()
+    },
+    look(row) {
+      this.$router.push({
+        path: 'specifiedRecordsLook',
+        query: {
+          id: row.id,
+          type: '1'
+        }
+      })
+    },
+    edit(row) {
+      this.$router.push({
+        path: 'specifiedRecordsLook',
+        query: {
+          id: row.id,
+          type: '2'
+        }
+      })
+    },
+    submit() {
+      if (this.form.checkList.length == 0) {
+        this.$message.error('请选择驳回原因')
+        return
+      }
+      this.listLoading = true
+      this.form.rejectReason = this.form.checkList.toString()
+      delete this.form.checkList
+      toExamine(this.form).then(response => {
+        this.$notify({
+          title: '成功',
+          message: '驳回成功!',
+          type: 'success'
+        })
+        this.form.checkList = []
+        this.form.rejectReasonDescription = ''
+        this.rejectInfo = false
+        this.getList()
+        this.listLoading = false
+      })
+        .catch(() => {
+          this.loading = false
+        })
+    },
+    audit(row) {
+      this.$router.push({
+        path: 'specifiedRecordsLook',
+        query: {
+          id: row.id,
+          type: '3'
+        }
+      })
+    },
+    rejectClose() {
+      this.form.checkList = []
+      this.form.rejectReasonDescription = ''
+      this.rejectInfo = false
+    },
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`)
+      this.pageSize = val
+      this.getList()
+    },
+    handleCurrentChange(val) {
+      this.currentPage = val
+      console.log(`当前页: ${val}`)
+      this.getList()
+    }
+  }
+}
 </script>
 <style lang="scss" scoped>
 	.center {
@@ -290,7 +302,6 @@
 		background: #f5f6f7;
 		height: calc(100vh - 5vh);
 
-
 		.top_css {
 			padding: 10px;