Default.js 1.96 KB
Newer Older
liuxin committed
1 2 3 4

/**
* Sptsel Default规则
*/
5
import Api from "~/service/Api";
liuxin committed
6
import Utils from "~/utils/index"
liuxin committed
7 8
export default {

9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
    "sptstm"                    :Utils.defaultFunction,
    "dlaxq"                    :Utils.defaultFunction,
    "usfmod.labtxt"                    :Utils.defaultFunction,
    "usfmod.flt"                    :Utils.defaultFunction,
    "usfmod.shwflt"                    :Utils.defaultFunction,
    "dlmft"                    :Utils.defaultFunction,
    "butimg"                    :Utils.defaultFunction,
    "dflg"                    :Utils.defaultFunction,
    "yptinf"                    :Utils.defaultFunction,
    "usfmod.usr.extkey"                    :Utils.defaultFunction,
    "chkinc"                    :Utils.defaultFunction,
    "chkdzt"                    :Utils.defaultFunction,
    "chkpen"                    :Utils.defaultFunction,
    "chkcor"                    :Utils.defaultFunction,
    "chkaut"                    :Utils.defaultFunction,
    "chkdel"                    :Utils.defaultFunction,
    "chktco"                    :Utils.defaultFunction,
1377875331@qq.com committed
26
    // "chkcan": updateTable,
liuxin committed
27
}
28 29 30 31 32 33 34 35 36 37 38 39
// function defaultCheckbox(rule, value, callback) {
//     const that = this;
//     if (that.model[rule.field] === "") {
//         return
//     }
//     if(that.model[rule.field] === false){
//         that.model[rule.field] = "";
//     }
//     that.executeDefault("sptstm").then(res => {
//         //TODO 处理数据逻辑
//         that.$refs.Menu.stmData.data = res.data.sptstm.rows;
//     })
40
   
41 42 43 44 45 46 47 48 49 50
// }
// function updateTable(rule, value, callback){
//     const that = this;
//     if (that.model[rule.field] === true && that.$refs.Menu.stmData.columns[3] === "7 6 \"Creation\" 101 20 DateTime 1") {
//         that.$refs.Menu.stmData.columns.splice(3, 0, "18 5 \"MT\" 100");
//     }
//     if (that.model[rule.field] === false && that.$refs.Menu.stmData.columns[3] === "18 5 \"MT\" 100") {
//         that.$refs.Menu.stmData.columns.splice(3, 1);
//     }
// }