|
@@ -754,31 +754,10 @@ export default {
|
|
|
activated() {
|
|
|
if(this.$route.query.list){
|
|
|
this.pendingPage = JSON.parse(this.$route.query.list)
|
|
|
- }
|
|
|
- if (this.$route.query.open === 'true'){
|
|
|
- this.contentList = []
|
|
|
- this.contentButton = this.$options.data().contentButton
|
|
|
- let data = {
|
|
|
- tableName: this.purchaseList.tableName,
|
|
|
- userId: Cookies.get('userName')
|
|
|
- }
|
|
|
- this.$refs.avatar.form = {}
|
|
|
- this.getRow(data)
|
|
|
-
|
|
|
- this.contentOption.forEach(item => {
|
|
|
- if (item.label == 'personNaem' || item.label == 'corpsName' || item.label == 'fBillno') {
|
|
|
- item.disabled = true
|
|
|
- } else {
|
|
|
- item.disabled = false
|
|
|
- }
|
|
|
- })
|
|
|
- this.contentButton.forEach(item => item.disabled = false)
|
|
|
- this.contentStyle.forEach(item => item.disabled = false)
|
|
|
- this.$router.push({ query: {} })
|
|
|
+ this.homePage()
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.homePage()
|
|
|
//获取登陆人
|
|
|
queryUserVal().then((response) => {
|
|
|
this.lander = response.user.userName
|
|
@@ -1136,6 +1115,7 @@ export default {
|
|
|
console.log(this.pendingPage.name)
|
|
|
if (this.pendingPage.name) {
|
|
|
this.contentButton.push(JSON.parse(this.$route.query.list))
|
|
|
+ if (JSON.parse(this.$route.query.list)) this.$router.push({ query: {} })
|
|
|
}
|
|
|
let data = {
|
|
|
actId: 550,
|
|
@@ -1216,7 +1196,8 @@ export default {
|
|
|
},
|
|
|
//查看
|
|
|
viewMethod(scope,res,i) {
|
|
|
- this.form = this.$refs.avatar.form
|
|
|
+ console.log(res)
|
|
|
+ if (this.form.length !== undefined) this.form = this.$refs.avatar.form
|
|
|
if(res){
|
|
|
this.contentButton.forEach(item => {
|
|
|
item.disabled = false
|