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