Forráskód Böngészése

修改名字加密问题

chenrui 2 éve
szülő
commit
e4b9f31532
1 módosított fájl, 70 hozzáadás és 70 törlés
  1. 70 70
      public/dzd/index.html

+ 70 - 70
public/dzd/index.html

@@ -283,76 +283,76 @@
 	</body>
 	<script>
 		new Vue({
-		  el: '#app',
-		  data: {
-		    ajaxUrl: 'http://p.iscm.360arrow.com/qpls-md/',
-		    saleList: [],
-		    saleDetailList: [],
-		    info: {},
-		    flag: false
-		  },
-		  created () {
-		    this.loadData()
-		    document.title = this.getUrlParam('name')
-		  },
-		  methods: {
-		    loadData () {
-		      const ajaxData = {
-		        verifySn: this.getUrlParam('verifySn'),
-		        dealerSn: this.getUrlParam('userSn')
-		      }
-		      axios.post(this.ajaxUrl + 'verify/findBySn', ajaxData).then((res) => {
-		        this.info = res.data.data
-		        res.data.data.detailList.forEach(item => {
-		          item.isShow = false
-		          item.list = []
-		        })
-		        this.saleList = res.data.data.detailList
-		        this.getALlList(res.data.data.detailList)
-		      }).catch((error) => {
-		        console.log(error)
-		      })
-		    },
-		    handleShow (con, i) {
-		      const req_data = {
-		        salesBillSn: con.bizSn
-		      }
-		      axios.post(this.ajaxUrl + 'salesDetail/queryList', req_data).then((res) => {
-		        this.saleList[i].list = res.data.data
-		      }).catch((error) => {
-		        console.log(error)
-		      })
-		    },
-		    openInfoList (i) {
-		      this.saleList[i].isShow = !this.saleList[i].isShow
-		      this.saleList.splice()
-		    },
-		    downLoad () {
-		      window.location.href = this.ajaxUrl + 'verify/exportExcel?verifySn=' + this.getUrlParam(
-		        'verifySn') + '&dealerSn=' + this.getUrlParam('userSn')
-		    },
-		    getUrlParam (name) {
-		      var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)') // 构造一个含有目标参数的正则表达式对象
-		      var r = window.location.search.substr(1).match(reg) // 匹配目标参数
-		      if (r != null) return unescape(r[2])
-		      return null // 返回参数值
-		    },
-		    openAll () {
-		      this.flag = !this.flag
-		      this.saleList.forEach((item, i) => {
-		        if (this.flag) {
-		          item.isShow = true
-		        } else {
-		          item.isShow = false
-		        }
-		      })
-		    },
-		    getALlList (list) {
-		      list.forEach((item, i) => {
-		        this.handleShow(item, i)
-		      })
-		    }
-		  }
+			el: '#app',
+			data: {
+				ajaxUrl: 'http://p.iscm.360arrow.com/qpls-md/',
+				saleList: [],
+				saleDetailList: [],
+				info: {},
+				flag: false
+			},
+			created() {
+				this.loadData()
+				console.log('title:',decodeURIComponent(this.getUrlParam(2)))
+				document.title = decodeURIComponent(this.getUrlParam(2))
+				
+			},
+			methods: {
+				loadData() {
+					const ajaxData = {
+						verifySn: this.getUrlParam(1),
+						dealerSn: this.getUrlParam(0)
+					}
+					axios.post(this.ajaxUrl + 'verify/findBySn', ajaxData).then((res) => {
+						this.info = res.data.data
+						res.data.data.detailList.forEach(item => {
+							item.isShow = false
+							item.list = []
+						})
+						this.saleList = res.data.data.detailList
+						this.getALlList(res.data.data.detailList)
+					}).catch((error) => {
+						console.log(error)
+					})
+				},
+				handleShow(con, i) {
+					const req_data = {
+						salesBillSn: con.bizSn
+					}
+					axios.post(this.ajaxUrl + 'salesDetail/queryList', req_data).then((res) => {
+						this.saleList[i].list = res.data.data
+					}).catch((error) => {
+						console.log(error)
+					})
+				},
+				openInfoList(i) {
+					this.saleList[i].isShow = !this.saleList[i].isShow
+					this.saleList.splice()
+				},
+				downLoad() {
+					window.location.href = this.ajaxUrl + 'verify/exportExcel?verifySn=' + this.getUrlParam(1) +
+						'&dealerSn=' + this.getUrlParam(0)
+				},
+		 	getUrlParam(index) {
+					let urlArr = window.location.search.substr(1).split('&');
+					return urlArr[index] // 返回参数值
+				},
+				openAll() {
+					this.flag = !this.flag
+					this.saleList.forEach((item, i) => {
+						if (this.flag) {
+							item.isShow = true
+						} else {
+							item.isShow = false
+						}
+					})
+				},
+				getALlList(list) {
+					list.forEach((item, i) => {
+						this.handleShow(item, i)
+					})
+				}
+			}
 		})
 	</script>