kun 191203 15:20

This commit is contained in:
沈学坤
2019-12-03 15:19:09 +08:00
parent 1a49467a2d
commit 29ea1900b3
2 changed files with 54 additions and 51 deletions

View File

@@ -791,7 +791,11 @@ export default {
}) })
}, },
handleRemove (file, fileList) { handleRemove (file, fileList) {
console.log(file, fileList) this.picture.forEach(element => {
if (file.name === element.name) {
this.picture.splice(element, 1)
}
})
}, },
handlePreview (file) { handlePreview (file) {
console.log(file) console.log(file)
@@ -845,7 +849,7 @@ export default {
btn (index) { btn (index) {
let s = this.sub let s = this.sub
s = index s = index
// this.sub = s; // this.sub = s
let regd = /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/ let regd = /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/
let regs = /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/ let regs = /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/
@@ -909,7 +913,8 @@ export default {
this.prodemofg = this.divisionLaborText this.prodemofg = this.divisionLaborText
this.prodemotwo = this.coverText this.prodemotwo = this.coverText
this.funds = this.initialText this.funds = this.initialText
this.proimages = [...this.fileLists, ...this.picture] // this.proimages = [...this.fileLists, ...this.picture]
this.proimages = [...this.picture]
// if (this.subStatus === 1) { // if (this.subStatus === 1) {
if ( if (
@@ -962,10 +967,7 @@ export default {
} else if (this.aterm > this.fterm) { } else if (this.aterm > this.fterm) {
alert('截止日期应比申请日期晚') alert('截止日期应比申请日期晚')
return false return false
} else if ( } else if (!regd.test(this.poffice_tel) || !regd.test(this.coffice_tel)) {
!regd.test(this.poffice_tel) ||
!regd.test(this.coffice_tel)
) {
alert('请填写正确的电话号码!') alert('请填写正确的电话号码!')
return false return false
} else if (!regs.test(this.aphone) || !regs.test(this.cphone)) { } else if (!regs.test(this.aphone) || !regs.test(this.cphone)) {
@@ -1225,6 +1227,7 @@ export default {
let imgs = JSON.parse(data.proimages) let imgs = JSON.parse(data.proimages)
this.fileLists = imgs this.fileLists = imgs
this.picture = this.fileLists
}, },
getDataDetails (id) { getDataDetails (id) {
this.$http({ this.$http({

View File

@@ -12,7 +12,7 @@
hotOnly: false, hotOnly: false,
proxy: { proxy: {
'/url/': { '/url/': {
target: 'http://cyteam.org.cn/api/', target: 'http://chaoyang.yulongcode.com/api/',
ws: false, ws: false,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {