index=0 处理
This commit is contained in:
parent
6ab33a4585
commit
78d93e94f9
@ -176,6 +176,7 @@
|
||||
},
|
||||
|
||||
doTrueOrFalse() {
|
||||
this.pageIndex = 0
|
||||
if (this.model.RISK_AREA_ID != undefined && this.model.RISK_AREA_ID.length > 0)
|
||||
this.PagedCheckMain();
|
||||
},
|
||||
@ -208,6 +209,7 @@
|
||||
this.handleShowSheet(p)
|
||||
},
|
||||
async handleShowSheet(p) {
|
||||
this.pageIndex = 0
|
||||
var defaultChecked = []
|
||||
const json = initFilter(this.OrgId, null, "NAME", 0, (p.pageIndex ?? 1));
|
||||
json.IgnoreDataRule = true
|
||||
|
||||
@ -31,19 +31,20 @@
|
||||
<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.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>
|
||||
<uni-collapse-item :title="(index+1) + '. ' + item.Nav_RiskName.NAME" name="1">
|
||||
<u-form-item label="风险名称" prop="Nav_RiskName.NAME" borderBottom>
|
||||
<u--textarea disabled disabledColor="#fff"
|
||||
v-model="item.Nav_RiskName.NAME" border="none" inputAlign="right"
|
||||
autoHeight></u--textarea>
|
||||
</u-form-item>
|
||||
<u-form-item label="风险类别" prop="Nav_Type.NAME"
|
||||
borderBottom>
|
||||
<u-form-item label="风险类别" prop="Nav_Type.NAME" borderBottom>
|
||||
<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="EVALUATE_LEVEL_SHOW" borderBottom>
|
||||
<u--input disabled disabledColor="#fff" v-model="item.EVALUATE_LEVEL_SHOW"
|
||||
border="none" inputAlign="right"></u--input>
|
||||
<u--input disabled disabledColor="#fff"
|
||||
v-model="item.EVALUATE_LEVEL_SHOW" border="none"
|
||||
inputAlign="right"></u--input>
|
||||
</u-form-item>
|
||||
</uni-collapse-item>
|
||||
</uni-card>
|
||||
@ -117,11 +118,11 @@
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
if (option.RISK_AREA_ID&&option.RISK_AREA_ID!=undefined)
|
||||
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.PagedEvaluateRisk()//扫二维码 默认赋值
|
||||
this.PagedEvaluateRisk() //扫二维码 默认赋值
|
||||
|
||||
const json = initFilter(this.OrgId, null, "NAME", 0, 1);
|
||||
json.IgnoreDataRule = true
|
||||
@ -145,7 +146,7 @@
|
||||
this.model.ISDOWN == '否' || this.model.ISDOWN == '') ? false : true))
|
||||
json.IgnoreDataRule = true
|
||||
json.Limit = this.pageSize
|
||||
json.SelectField = ["NAME",'EVALUATE_LEVEL', 'Nav_Type.NAME' ]
|
||||
json.SelectField = ["Nav_RiskName.NAME", 'EVALUATE_LEVEL', 'Nav_Type.NAME']
|
||||
PagedEvaluateRisk(json).then(res => {
|
||||
if (res.IsSuccessful) {
|
||||
this.total = res.TotalCount
|
||||
@ -155,7 +156,7 @@
|
||||
} else {
|
||||
this.model.ListShow = res.Data
|
||||
}
|
||||
|
||||
|
||||
if (res.TotalCount == 0)
|
||||
uni.$showMsg("未获取到数据", 'none')
|
||||
} else {
|
||||
@ -168,6 +169,7 @@
|
||||
},
|
||||
|
||||
doTrueOrFalse() {
|
||||
this.pageIndex = 0
|
||||
if (this.model.RISK_AREA_ID != undefined && this.model.RISK_AREA_ID.length > 0)
|
||||
this.PagedEvaluateRisk();
|
||||
},
|
||||
@ -200,6 +202,7 @@
|
||||
this.handleShowSheet(p)
|
||||
},
|
||||
async handleShowSheet(p) {
|
||||
this.pageIndex = 0
|
||||
var defaultChecked = []
|
||||
const json = initFilter(this.OrgId, null, "NAME", 0, (p.pageIndex ?? 1));
|
||||
json.IgnoreDataRule = true
|
||||
|
||||
@ -176,6 +176,7 @@
|
||||
},
|
||||
|
||||
doTrueOrFalse() {
|
||||
this.pageIndex = 0
|
||||
if (this.model.RISK_AREA_ID != undefined && this.model.RISK_AREA_ID.length > 0) {
|
||||
this.pageIndex = 0
|
||||
this.PagedRisk();
|
||||
@ -210,6 +211,7 @@
|
||||
this.handleShowSheet(p)
|
||||
},
|
||||
async handleShowSheet(p) {
|
||||
this.pageIndex = 0
|
||||
var defaultChecked = []
|
||||
const json = initFilter(this.OrgId, null, "NAME", 0, (p.pageIndex ?? 1));
|
||||
json.IgnoreDataRule = true
|
||||
|
||||
@ -172,6 +172,7 @@
|
||||
},
|
||||
|
||||
doTrueOrFalse() {
|
||||
this.pageIndex = 0
|
||||
if (this.model.RISK_AREA_ID != undefined && this.model.RISK_AREA_ID.length > 0)
|
||||
this.PagedCheckMain();
|
||||
},
|
||||
@ -204,6 +205,7 @@
|
||||
this.handleShowSheet(p)
|
||||
},
|
||||
async handleShowSheet(p) {
|
||||
this.pageIndex = 0
|
||||
var defaultChecked = []
|
||||
const json = initFilter(this.OrgId, null, "NAME", 0, (p.pageIndex ?? 1));
|
||||
json.IgnoreDataRule = true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user