风险查看
配置问题件 获取
This commit is contained in:
parent
27f9a7e564
commit
71a77052e0
@ -86,9 +86,8 @@ const getServiceHost = api => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 发行APP前先确定,要发布的版本
|
// 发行APP前先确定,要发布的版本
|
||||||
let APP_ENV = 'beta' // beta: 测试版,release: 发行版
|
let APP_ENV = 'beta' // release: 发行版 debug:开发环境 beta: 测试版
|
||||||
let configURL
|
let configURL
|
||||||
|
|
||||||
if (process.env.CUSTOM_PLATFORM === "dev") {
|
if (process.env.CUSTOM_PLATFORM === "dev") {
|
||||||
//本地环境
|
//本地环境
|
||||||
configURL = {
|
configURL = {
|
||||||
@ -104,7 +103,7 @@ if (process.env.CUSTOM_PLATFORM === "dev") {
|
|||||||
uni_app_url: "http://47.122.43.22:9100",
|
uni_app_url: "http://47.122.43.22:9100",
|
||||||
qrcode_url: "http://47.122.43.22:9201"
|
qrcode_url: "http://47.122.43.22:9201"
|
||||||
}
|
}
|
||||||
} else if (process.env.CUSTOM_PLATFORM === "test") {
|
} else if (process.env.CUSTOM_PLATFORM === "beta") {
|
||||||
//测试环境
|
//测试环境
|
||||||
configURL = {
|
configURL = {
|
||||||
web_name: "",
|
web_name: "",
|
||||||
@ -119,8 +118,8 @@ if (process.env.CUSTOM_PLATFORM === "dev") {
|
|||||||
uni_app_url: "http://47.122.43.22:9100",
|
uni_app_url: "http://47.122.43.22:9100",
|
||||||
qrcode_url: "http://47.122.43.22:9201"
|
qrcode_url: "http://47.122.43.22:9201"
|
||||||
}
|
}
|
||||||
} else
|
} else if (process.env.CUSTOM_PLATFORM === "release") {
|
||||||
//生产环境 发布等
|
//正式环境
|
||||||
configURL = {
|
configURL = {
|
||||||
web_name: "",
|
web_name: "",
|
||||||
serviceHost(api) {
|
serviceHost(api) {
|
||||||
@ -128,13 +127,27 @@ if (process.env.CUSTOM_PLATFORM === "dev") {
|
|||||||
return `${this.uni_app_web_local_api_url}:${apis}`
|
return `${this.uni_app_web_local_api_url}:${apis}`
|
||||||
},
|
},
|
||||||
uni_app_web_url: "",
|
uni_app_web_url: "",
|
||||||
uni_app_web_api_url: APP_ENV === 'release' ? "http://xmmhe.com" : "http://47.122.43.22",
|
uni_app_web_api_url: "http://xmmhe.com",
|
||||||
uni_app_web_source_url: APP_ENV === 'release' ? "http://xmmhe.com:3199" : "http://47.122.43.22:3199",
|
uni_app_web_source_url: "http://xmmhe.com:3199",
|
||||||
qrcode_url: APP_ENV === 'release' ? "http://xmmhe.com:9201" : "http://47.122.43.22:9201",
|
qrcode_url: "http://xmmhe.com:9201",
|
||||||
uni_app_url: APP_ENV === 'release' ? "http://xmmhe.com:9100" :
|
uni_app_url: "http://xmmhe.com:9100",
|
||||||
"http://47.122.43.22:9100", //打包测试: 47.122.43.22 开发可 localhost
|
uni_app_web_local_api_url: "http://xmmhe.com"
|
||||||
uni_app_web_local_api_url: APP_ENV === 'release' ? "http://xmmhe.com" :
|
|
||||||
"http://47.122.43.22" //打包测试: 47.122.43.22 开发可 localhost
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
//开发 debug
|
||||||
|
configURL = {
|
||||||
|
web_name: "",
|
||||||
|
serviceHost(api) {
|
||||||
|
const apis = getServiceHost(api)
|
||||||
|
return `${this.uni_app_web_local_api_url}:${apis}`
|
||||||
|
},
|
||||||
|
uni_app_web_url: "",
|
||||||
|
uni_app_web_api_url: "http://47.122.43.22",
|
||||||
|
uni_app_web_source_url: "http://47.122.43.22:3199", //附件
|
||||||
|
qrcode_url: "http://47.122.43.22:9201", //生成二维码
|
||||||
|
uni_app_url: "http://47.122.43.22:9100", //跳转进入app
|
||||||
|
uni_app_web_local_api_url: "http://localhost" //打包测试: 47.122.43.22 开发可 localhost
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export default configURL
|
export default configURL
|
||||||
@ -5,7 +5,7 @@
|
|||||||
<view class="form-sub">
|
<view class="form-sub">
|
||||||
|
|
||||||
<u-form :model="model" ref="uForm" label-width="90px" class="demo-ruleForm" size="mini">
|
<u-form :model="model" ref="uForm" label-width="90px" class="demo-ruleForm" size="mini">
|
||||||
<view style="font-size: 15px; font-weight: bold;color: #3d4b70;margin-bottom: 10px;">隐患信息</view>
|
<view style="font-size: 15px; font-weight: bold;color: #3d4b70;margin-bottom: 10px;">风险信息</view>
|
||||||
<u-form-item label="区域名称" prop="RISK_AREA_NAME" borderBottom ref="item1"
|
<u-form-item label="区域名称" prop="RISK_AREA_NAME" borderBottom ref="item1"
|
||||||
@click="handleShowSheet({title: '区域名称'})">
|
@click="handleShowSheet({title: '区域名称'})">
|
||||||
<u--input disabled v-model="model.RISK_AREA_NAME" border="none" suffixIcon="arrow-right"
|
<u--input disabled v-model="model.RISK_AREA_NAME" border="none" suffixIcon="arrow-right"
|
||||||
@ -22,7 +22,7 @@
|
|||||||
</u-form-item>
|
</u-form-item>
|
||||||
</u-form>
|
</u-form>
|
||||||
|
|
||||||
<!-- 动态加载隐患信息 -->
|
<!-- 动态加载风险信息 -->
|
||||||
<u-sticky offset-top="20">
|
<u-sticky offset-top="20">
|
||||||
<view class="sub-form">
|
<view class="sub-form">
|
||||||
<view class="sub-form-wrap">
|
<view class="sub-form-wrap">
|
||||||
@ -31,18 +31,18 @@
|
|||||||
<uni-collapse :border="false" accordion>
|
<uni-collapse :border="false" accordion>
|
||||||
<uni-card style="margin-bottom: 5px;" margin="0" spacing="0" :is-shadow="false"
|
<uni-card style="margin-bottom: 5px;" margin="0" spacing="0" :is-shadow="false"
|
||||||
v-for="(item, index) in model.ListShow">
|
v-for="(item, index) in model.ListShow">
|
||||||
<uni-collapse-item :title="(index+1) + '. ' + item.CHECKCONTENT" name="1">
|
<uni-collapse-item :title="(index+1) + '. ' + item.NAME" name="1">
|
||||||
<u-form-item label="检查内容" prop="CHECKCONTENT" borderBottom>
|
<u-form-item label="风险名称" prop="NAME" borderBottom>
|
||||||
<u--textarea disabled disabledColor="#fff" v-model="item.CHECKCONTENT"
|
<u--textarea disabled disabledColor="#fff" v-model="item.NAME"
|
||||||
border="none" inputAlign="right" autoHeight></u--textarea>
|
border="none" inputAlign="right" autoHeight></u--textarea>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item v-if="model.ISDOWN=='是'" label="区域" prop="Nav_RiskArea.NAME"
|
<u-form-item label="风险类别" prop="Nav_Type.NAME"
|
||||||
borderBottom>
|
borderBottom>
|
||||||
<u--input disabled disabledColor="#fff" v-model="item.Nav_RiskArea.NAME"
|
<u--input disabled disabledColor="#fff" v-model="item.Nav_Type.NAME"
|
||||||
border="none" inputAlign="right"></u--input>
|
border="none" inputAlign="right"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="地址" prop="DESCREPTION" borderBottom>
|
<u-form-item label="风险等级" prop="EVALUATE_LEVEL_SHOW" borderBottom>
|
||||||
<u--input disabled disabledColor="#fff" v-model="item.DESCREPTION"
|
<u--input disabled disabledColor="#fff" v-model="item.EVALUATE_LEVEL_SHOW"
|
||||||
border="none" inputAlign="right"></u--input>
|
border="none" inputAlign="right"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</uni-collapse-item>
|
</uni-collapse-item>
|
||||||
@ -64,7 +64,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
OrderPagedRiskArea,
|
OrderPagedRiskArea,
|
||||||
PagedCheckMain
|
PagedEvaluateRisk
|
||||||
} from '../../services/apply'
|
} from '../../services/apply'
|
||||||
import {
|
import {
|
||||||
initFilter,
|
initFilter,
|
||||||
@ -117,11 +117,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
if (option.RISK_AREA_ID)
|
if (option.RISK_AREA_ID&&option.RISK_AREA_ID!=undefined)
|
||||||
this.model.RISK_AREA_ID = option.RISK_AREA_ID // 'FA89F8DA-0B46-4665-A8DD-3675829F6D6F'
|
this.model.RISK_AREA_ID = option.RISK_AREA_ID // 'FA89F8DA-0B46-4665-A8DD-3675829F6D6F'
|
||||||
this.OrgId = option.OrgId // 'B043B28B-BBC3-C452-6052-4FBA1457ABFA'
|
this.OrgId = option.OrgId // 'B043B28B-BBC3-C452-6052-4FBA1457ABFA'
|
||||||
if (this.model.RISK_AREA_ID != undefined && this.model.RISK_AREA_ID != '') {
|
if (this.model.RISK_AREA_ID != undefined && this.model.RISK_AREA_ID != '') {
|
||||||
// this.PagedCheckMain()//扫二维码 默认赋值
|
this.PagedEvaluateRisk()//扫二维码 默认赋值
|
||||||
|
|
||||||
const json = initFilter(this.OrgId, null, "NAME", 0, 1);
|
const json = initFilter(this.OrgId, null, "NAME", 0, 1);
|
||||||
json.IgnoreDataRule = true
|
json.IgnoreDataRule = true
|
||||||
@ -139,14 +139,14 @@
|
|||||||
// this.$refs.uForm.setRules(this.rules)
|
// this.$refs.uForm.setRules(this.rules)
|
||||||
// },
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
PagedCheckMain(paginate) {
|
PagedEvaluateRisk(paginate) {
|
||||||
this.pageIndex++
|
this.pageIndex++
|
||||||
const json = initFilter(this.OrgId, this.model.RISK_AREA_ID, "CREATE_TIME", 1, this.pageIndex, ((
|
const json = initFilter(this.OrgId, this.model.RISK_AREA_ID, "CREATE_TIME", 1, this.pageIndex, ((
|
||||||
this.model.ISDOWN == '否' || this.model.ISDOWN == '') ? false : true))
|
this.model.ISDOWN == '否' || this.model.ISDOWN == '') ? false : true))
|
||||||
json.IgnoreDataRule = true
|
json.IgnoreDataRule = true
|
||||||
json.Limit = this.pageSize
|
json.Limit = this.pageSize
|
||||||
json.SelectField = ["CHECKCONTENT", "DESCREPTION", "Nav_RiskArea.NAME", "CREATE_TIME"]
|
json.SelectField = ["NAME",'EVALUATE_LEVEL', 'Nav_Type.NAME' ]
|
||||||
PagedCheckMain(json).then(res => {
|
PagedEvaluateRisk(json).then(res => {
|
||||||
if (res.IsSuccessful) {
|
if (res.IsSuccessful) {
|
||||||
this.total = res.TotalCount
|
this.total = res.TotalCount
|
||||||
// this.model.ListShow = res.Data
|
// this.model.ListShow = res.Data
|
||||||
@ -169,7 +169,7 @@
|
|||||||
|
|
||||||
doTrueOrFalse() {
|
doTrueOrFalse() {
|
||||||
if (this.model.RISK_AREA_ID != undefined && this.model.RISK_AREA_ID.length > 0)
|
if (this.model.RISK_AREA_ID != undefined && this.model.RISK_AREA_ID.length > 0)
|
||||||
this.PagedCheckMain();
|
this.PagedEvaluateRisk();
|
||||||
},
|
},
|
||||||
|
|
||||||
closePicker() {
|
closePicker() {
|
||||||
@ -237,31 +237,14 @@
|
|||||||
this.selectorInfo.showPopup = false
|
this.selectorInfo.showPopup = false
|
||||||
this.model.RISK_AREA_NAME = e.NAME
|
this.model.RISK_AREA_NAME = e.NAME
|
||||||
this.model.RISK_AREA_ID = e.ID
|
this.model.RISK_AREA_ID = e.ID
|
||||||
this.PagedCheckMain()
|
this.PagedEvaluateRisk()
|
||||||
// this.WorkerScheduling()
|
// this.WorkerScheduling()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.total > this.pageSize * this.pageIndex)
|
if (this.total > this.pageSize * this.pageIndex)
|
||||||
this.PagedCheckMain(true)
|
this.PagedEvaluateRisk(true)
|
||||||
}
|
}
|
||||||
// watch: {
|
|
||||||
// keyword(n, o) {
|
|
||||||
// this.pageIndex = 0
|
|
||||||
// this.keyword = n
|
|
||||||
// this.PagedCheckMain()
|
|
||||||
// },
|
|
||||||
// searchStartTime(n, o) {
|
|
||||||
// this.pageIndex = 0
|
|
||||||
// this.searchStartTime = n
|
|
||||||
// this.PagedCheckMain()
|
|
||||||
// },
|
|
||||||
// filterStatus(n, o) {
|
|
||||||
// this.pageIndex = 0
|
|
||||||
// this.filterStatus = n
|
|
||||||
// this.PagedCheckMain()
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -148,9 +148,14 @@
|
|||||||
// },
|
// },
|
||||||
|
|
||||||
menuClick(menuInfo) {
|
menuClick(menuInfo) {
|
||||||
|
var urlTo = menuInfo.url + '?OrgId=' + menuInfo.ORG_ID
|
||||||
|
if (this.RISK_AREA_ID && this.RISK_AREA_ID != undefined && this.RISK_AREA_ID.length > 1)
|
||||||
|
urlTo += '&RISK_AREA_ID=' + this.RISK_AREA_ID
|
||||||
|
if (this.DEPARTMENT_ID && this.DEPARTMENT_ID != undefined && this.DEPARTMENT_ID.length > 1)
|
||||||
|
urlTo += '&DEPARTMENT_ID=' + this.DEPARTMENT_ID
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: menuInfo.url + '?OrgId=' + menuInfo.ORG_ID +
|
url: urlTo
|
||||||
'&RISK_AREA_ID=' + this.RISK_AREA_ID + '&DEPARTMENT_ID=' + this.DEPARTMENT_ID
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// goCamera() {
|
// goCamera() {
|
||||||
|
|||||||
@ -54,7 +54,7 @@ export const PagedRisk = (params) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//隐患查看
|
//检查查看
|
||||||
export const PagedCheckMain = (params) => {
|
export const PagedCheckMain = (params) => {
|
||||||
return request.send({
|
return request.send({
|
||||||
url: '/BI/H5Controller/PagedCheckMain',
|
url: '/BI/H5Controller/PagedCheckMain',
|
||||||
@ -62,3 +62,12 @@ export const PagedCheckMain = (params) => {
|
|||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//风险查看
|
||||||
|
export const PagedEvaluateRisk = (params) => {
|
||||||
|
return request.send({
|
||||||
|
url: '/BI/H5Controller/PagedEvaluateRisk',
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user