index=0 处理

This commit is contained in:
wyw 2025-05-23 14:51:46 +08:00
parent 6ab33a4585
commit 78d93e94f9
4 changed files with 21 additions and 12 deletions

View File

@ -176,6 +176,7 @@
}, },
doTrueOrFalse() { doTrueOrFalse() {
this.pageIndex = 0
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.PagedCheckMain();
}, },
@ -208,6 +209,7 @@
this.handleShowSheet(p) this.handleShowSheet(p)
}, },
async handleShowSheet(p) { async handleShowSheet(p) {
this.pageIndex = 0
var defaultChecked = [] var defaultChecked = []
const json = initFilter(this.OrgId, null, "NAME", 0, (p.pageIndex ?? 1)); const json = initFilter(this.OrgId, null, "NAME", 0, (p.pageIndex ?? 1));
json.IgnoreDataRule = true json.IgnoreDataRule = true

View File

@ -31,19 +31,20 @@
<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.NAME" name="1"> <uni-collapse-item :title="(index+1) + '. ' + item.Nav_RiskName.NAME" name="1">
<u-form-item label="风险名称" prop="NAME" borderBottom> <u-form-item label="风险名称" prop="Nav_RiskName.NAME" borderBottom>
<u--textarea disabled disabledColor="#fff" v-model="item.NAME" <u--textarea disabled disabledColor="#fff"
border="none" inputAlign="right" autoHeight></u--textarea> v-model="item.Nav_RiskName.NAME" border="none" inputAlign="right"
autoHeight></u--textarea>
</u-form-item> </u-form-item>
<u-form-item label="风险类别" prop="Nav_Type.NAME" <u-form-item label="风险类别" prop="Nav_Type.NAME" borderBottom>
borderBottom>
<u--input disabled disabledColor="#fff" v-model="item.Nav_Type.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="EVALUATE_LEVEL_SHOW" borderBottom> <u-form-item label="风险等级" prop="EVALUATE_LEVEL_SHOW" borderBottom>
<u--input disabled disabledColor="#fff" v-model="item.EVALUATE_LEVEL_SHOW" <u--input disabled disabledColor="#fff"
border="none" inputAlign="right"></u--input> v-model="item.EVALUATE_LEVEL_SHOW" border="none"
inputAlign="right"></u--input>
</u-form-item> </u-form-item>
</uni-collapse-item> </uni-collapse-item>
</uni-card> </uni-card>
@ -117,11 +118,11 @@
} }
}, },
onLoad(option) { 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.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.PagedEvaluateRisk()// 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
@ -145,7 +146,7 @@
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 = ["NAME",'EVALUATE_LEVEL', 'Nav_Type.NAME' ] json.SelectField = ["Nav_RiskName.NAME", 'EVALUATE_LEVEL', 'Nav_Type.NAME']
PagedEvaluateRisk(json).then(res => { PagedEvaluateRisk(json).then(res => {
if (res.IsSuccessful) { if (res.IsSuccessful) {
this.total = res.TotalCount this.total = res.TotalCount
@ -155,7 +156,7 @@
} else { } else {
this.model.ListShow = res.Data this.model.ListShow = res.Data
} }
if (res.TotalCount == 0) if (res.TotalCount == 0)
uni.$showMsg("未获取到数据", 'none') uni.$showMsg("未获取到数据", 'none')
} else { } else {
@ -168,6 +169,7 @@
}, },
doTrueOrFalse() { doTrueOrFalse() {
this.pageIndex = 0
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.PagedEvaluateRisk(); this.PagedEvaluateRisk();
}, },
@ -200,6 +202,7 @@
this.handleShowSheet(p) this.handleShowSheet(p)
}, },
async handleShowSheet(p) { async handleShowSheet(p) {
this.pageIndex = 0
var defaultChecked = [] var defaultChecked = []
const json = initFilter(this.OrgId, null, "NAME", 0, (p.pageIndex ?? 1)); const json = initFilter(this.OrgId, null, "NAME", 0, (p.pageIndex ?? 1));
json.IgnoreDataRule = true json.IgnoreDataRule = true

View File

@ -176,6 +176,7 @@
}, },
doTrueOrFalse() { doTrueOrFalse() {
this.pageIndex = 0
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.pageIndex = 0 this.pageIndex = 0
this.PagedRisk(); this.PagedRisk();
@ -210,6 +211,7 @@
this.handleShowSheet(p) this.handleShowSheet(p)
}, },
async handleShowSheet(p) { async handleShowSheet(p) {
this.pageIndex = 0
var defaultChecked = [] var defaultChecked = []
const json = initFilter(this.OrgId, null, "NAME", 0, (p.pageIndex ?? 1)); const json = initFilter(this.OrgId, null, "NAME", 0, (p.pageIndex ?? 1));
json.IgnoreDataRule = true json.IgnoreDataRule = true

View File

@ -172,6 +172,7 @@
}, },
doTrueOrFalse() { doTrueOrFalse() {
this.pageIndex = 0
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.PagedCheckMain();
}, },
@ -204,6 +205,7 @@
this.handleShowSheet(p) this.handleShowSheet(p)
}, },
async handleShowSheet(p) { async handleShowSheet(p) {
this.pageIndex = 0
var defaultChecked = [] var defaultChecked = []
const json = initFilter(this.OrgId, null, "NAME", 0, (p.pageIndex ?? 1)); const json = initFilter(this.OrgId, null, "NAME", 0, (p.pageIndex ?? 1));
json.IgnoreDataRule = true json.IgnoreDataRule = true