Commit b4905f9d authored by 14699's avatar 14699

fix:修改

parent 29fe67b2
......@@ -103,6 +103,6 @@ For a detailed explanation on how things work, check out the [guide](http://vuej
# 热更新操作步骤
1.修改对应环境的版本号
2.执行npm run build:对应环境
2.执行npm run build:对应环境 , 重新移除添加android平台 cordova platform rm android , cordova platform add android@6.3.0
3.将压缩后的www文件夹里的文件覆盖到服务器上下载下来的对应文件
4.去对应的业务系统环境内修改相应的版本号
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://210.12.156.64:9090/r/api"',
fileUploadSvcPath:'"http://210.12.156.64:9090/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"',
currentVersion: '"3.7.3"'
currentVersion: '"3.7.4"'
}
......@@ -59,9 +59,6 @@
}
},
"dependent_plugins": {
"cordova-plugin-compat": {
"PACKAGE_NAME": "com.hls.app"
},
"cordova-plugin-contacts": {
"PACKAGE_NAME": "com.hls.app"
},
......
......@@ -971,10 +971,10 @@ export default {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.approverBpList = res.lists.map(item => {
if (item.bp_name === '李燕') {
vm.$set(vm.baseInfo, 'zm_approver_bp', item.bp_id)
vm.$set(vm.baseInfo, 'zm_approver_bp_n', item.bp_name)
}
// if (item.bp_name === '李燕') {
// vm.$set(vm.baseInfo, 'zm_approver_bp', item.bp_id)
// vm.$set(vm.baseInfo, 'zm_approver_bp_n', item.bp_name)
// }
return {
code: item.bp_id,
code_name: item.bp_name,
......
......@@ -10,11 +10,11 @@
</h-header>
<div class="tab-style has-header">
<div :class="{ 'done': num === 1, 'undone': num !== 1 }" @click="num = 1; isRadio = false">
<img :src="num === 1 ? check1 : uncheck1" />
<img :src="num === 1 ? check1 : uncheck1" >
<span>未审核方案</span>
</div>
<div :class="{ 'done': num === 2, 'undone': num !== 2 }" @click="num = 2; isRadio = false">
<img :src="num === 2 ? check2 : uncheck2" />
<img :src="num === 2 ? check2 : uncheck2" >
<span>已审核方案</span>
</div>
</div>
......@@ -443,6 +443,8 @@ export default {
},
goDetails (item) {
console.log('点击对象:', item)
console.log('是否该只读:', this.num)
this.$router.push({
name: 'ContractDetail',
params: {
......@@ -450,6 +452,7 @@ export default {
user_bp_type: this.user_bp_type,
num: this.num,
check_id: item.check_id,
readOnly: this.num === 1 ? 'N' : 'Y',
},
})
},
......
......@@ -825,7 +825,6 @@ export default {
obj.picture = hlsUtil.convertImageUrl(imgUrl[0])
obj.filePath = imgUrl[0]
vm.upLoadObj = obj.picture
console.log('$$$$$$$$$$$$$$$1' + imgUrl[0])
// 拍完一张立马执行保存图片逻辑
vm.save_picture(obj)
}
......
This diff is collapsed.
......@@ -310,9 +310,9 @@ export default {
//转换iOS下的webview url
convertImageUrl: function (url) {
if(vum.Platform.isAndroid()){
if (vum.Platform.isAndroid()) {
return url
}else if (vum.Platform.isIOS()){
} else if (vum.Platform.isIOS()) {
return window.Ionic.WebView.convertFileSrc(url)
}
},
......@@ -320,16 +320,16 @@ export default {
/**
* 录制视频
*/
captureVideo: function(onSuccess, onError){
captureVideo: function (onSuccess, onError) {
var option = {
//本设置录制的视频尺寸为10s 4-5mb,清晰度较好
duration: 10*1000, //10s
duration: 10 * 1000, //10s
cameraDirection: window.MediaCapture.CAMERA_FRONT
}
if (typeof onSuccess === 'function' && typeof onError === 'function') {
navigator.device.capture.captureVideo(onSuccess, onError, option);
} else{
} else {
window.hlsPopup.showLongBottom('参数有误!')
}
},
......@@ -380,11 +380,11 @@ export default {
}
}
function uploadSuccess (result) {
function uploadSuccess(result) {
success(JSON.parse(result.response))
}
function fileError () {
function fileError() {
window.hlsPopup.hideLoading()
console.log('upload error source ' + error.source)
console.log('upload error target ' + error.target)
......@@ -398,9 +398,9 @@ export default {
* @param success
*/
fileUploadSvc: function (file, success) {
console.log('file',file)
if(file.pkvalue && file.source_type){
console.log('file1',file)
console.log('file', file)
if (file.pkvalue && file.source_type) {
console.log('file1', file)
let path = file.filePath
var name = path.substr(path.lastIndexOf('/') + 1)
let url = encodeURI(process.env.fileUploadSvcPath + 'attachment_upload')
......@@ -417,19 +417,19 @@ export default {
'access_token': window.localStorage.access_token,
'filePath': path,
}
if(file.fileName){
if (file.fileName) {
options.fileName = encodeURI(file.fileName) + name.substr(name.lastIndexOf('.'))
}
else{
else {
options.fileName = name
}
options.mimeType = 'multipart/form-date'
let ft = new FileTransfer() // eslint-disable-line
function uploadSuccess (result) {
function uploadSuccess(result) {
success(JSON.parse(result.response))
}
function fileError () {
function fileError() {
window.hlsPopup.hideLoading()
console.log('upload error source ' + error.source)
console.log('upload error target ' + error.target)
......@@ -437,8 +437,8 @@ export default {
ft.upload(path, url, uploadSuccess, fileError, options)
}
else{
console.log('file2',file)
else {
console.log('file2', file)
hlsPopup.showLongCenter('上传失败!')
}
},
......@@ -464,12 +464,12 @@ export default {
options.mimeType = 'multipart/form-date'
let ft = new FileTransfer() // eslint-disable-line
function uploadSuccess (message) {
function uploadSuccess(message) {
let res = JSON.parse(message.response)
success(res)
}
function error (e) {
function error(e) {
this.hlsPopup.showLongCenter('汉王识别失败')
}
......@@ -496,12 +496,12 @@ export default {
options.fileName = name
options.mimeType = 'multipart/form-date'
let ft = new FileTransfer() // eslint-disable-line
function uploadSuccess (message) {
function uploadSuccess(message) {
let res = JSON.parse(message.response)
console.log(JSON.stringify(res, '', 2))
success(res)
}
function error (e) {
function error(e) {
this.hlsPopup.showLongCenter('识别失败')
}
ft.upload(path, url, uploadSuccess, error, options)
......@@ -529,12 +529,12 @@ export default {
}
let ft = new FileTransfer() // eslint-disable-line
function uploadSuccess (message) {
function uploadSuccess(message) {
let res = JSON.parse(message.response)
success(res)
}
function error (e) {
function error(e) {
this.hlsPopup.showLongCenter('识别失败')
}
......@@ -562,12 +562,12 @@ export default {
}
let ft = new FileTransfer() // eslint-disable-line
function uploadSuccess (message) {
function uploadSuccess(message) {
let res = JSON.parse(message.response)
success(res)
}
function error (e) {
function error(e) {
console.log('识别失败')
hlsPopup.showLongCenter('识别失败')
}
......@@ -800,7 +800,7 @@ export default {
})
if (!positive || !negative) throw new Error('IRR requires at least one positive value and one negative value')
function npv (rate) {
function npv(rate) {
numberOfTries++
if (numberOfTries > 1000) {
throw new Error('IRR can\'t find a result')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment