index.html id=2,index2.html

Matrix Admin
To Do list
  • Luanch This theme on Themeforest Nirav Today
  • Manage Pending Orders Alex Today
  • MAke your desk clean Admin Tomorrow
  • Today we celebrate the great looking theme Admin 08.03.2013
  • Manage all the orders Mark 12.03.2013
Progress Box
  • 81% Clicks 567
  • 72% Uniquie Clicks 507
  • 53% Impressions 457
  • 3% Online Users 8
News updates
Lorem ipsum dolor sit amet, consectetur adipiscing elit. dolor sit amet, consectetur adipiscing eli
20jan
Congratulation Maruti, Happy Birthday many many happy returns of the day 11jan
Maruti is a Responsive Admin theme But already everything was solved. It will ... 07Jan
Envato approved Maruti Admin template i am very happy to approved by TF 05jan
I am alwayse here if you have any question we glad that you choose our template 01jan

Calendar
Add new event
Drag Events to the calander
My Event 1
My Event 2
My Event 3
My Event 4
My Event 5

// This function is called from the pop-up menus to transfer to

// a different page. Ignore if the value returned is a null string:

function goPage (newURL) {

// if url is empty, skip the menu dividers and reset the menu selection to default

if (newURL != "") {

// if url is "-", it is this page -- reset the menu:

if (newURL == "-" ) {

resetMenu();

}

// else, send page to designated URL

else {

document.location.href = newURL;

}

}

}

// resets the menu selection upon entry to this page:

function resetMenu() {

document.gomenu.selector.selectedIndex = 2;

}

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
你可以在 `fromDataRules` 中添加一个自定义规则来实现该功能,代码如下: ```javascript fromDataRules: { controlok: [ { required: true, message: '请输入', trigger: 'blur', validator: (rule, value, callback) => { let index = rule.field.split('.')[1]; let row = this.list[index]; if (row.iscontrol === true && (value === undefined || value.trim() === '')) { callback(new Error('请输入')); } else { callback(); } } } ] } ``` 在该规则中,我们定义了一个自定义验证函数 `validator`,它会在输入框失去焦点时被调用。该函数会根据当前行的 `iscontrol` 值和 `controlok` 的值来判断是否需要进行验证。如果需要验证且 `controlok` 值为空,则会调用 `callback(new Error('请输入'))` 来提示用户输入。否则,调用 `callback()` 来表示验证通过。 在模板中,我们需要绑定 `fromDataRules.controlok` 规则,在 `el-form-item` 组件中添加 `prop` 属性,并将其值设为 `'list.' + scope.$index + '.controlok'`,这样该规则就会应用到该行的 `controlok` 属性上。 ```html <template slot-scope="scope"> <el-form-item :prop="'list.' + scope.$index + '.controlok'" :rules="fromDataRules.controlok"> <el-input v-if="scope.row.controluse === 'S2F21'" :disabled="scope.row.iscontrol === false || scope.row.iscontrol == null || scope.row.iscontrol == ''" v-model="scope.row.controlok" filterable clearable /> <el-select v-else v-model="scope.row.controlok" :disabled="scope.row.iscontrol === false || scope.row.iscontrol == null || scope.row.iscontrol == ''" :placeholder="t('web_ems_tip_pleaseInput')" filterable clearable> <el-option v-for="item in identifyingList" :key="item.id" :label="item" :value="item" /> </el-select> </el-form-item> </template> ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值