ibiz-template-plugin.es.js 5.0 KB
Newer Older
zhujiamin's avatar
zhujiamin committed
1 2 3 4 5
var m = Object.defineProperty;
var g = (e, s, a) => s in e ? m(e, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[s] = a;
var i = (e, s, a) => (g(e, typeof s != "symbol" ? s + "" : s, a), a);
import { ModelUtil as b, IndexViewModel as f } from "@ibiz-template/model";
import { PluginStaticResource as r } from "@ibiz-template/runtime";
zhujiamin's avatar
zhujiamin committed
6
import { defineComponent as v, getCurrentInstance as y, ref as o, computed as C, onMounted as S, h as t } from "vue";
zhujiamin's avatar
zhujiamin committed
7
import { useNamespace as w } from "@ibiz-template/vue-util";
zhujiamin's avatar
zhujiamin committed
8
const M = new r(import.meta.url), x = {
zhujiamin's avatar
zhujiamin committed
9 10
  mateUrl: import.meta.url,
  install(e) {
zhujiamin's avatar
zhujiamin committed
11 12
    b.getModelService().then((s) => {
      s.app.userParams.autoWidth === "true" && document.getElementsByClassName("app")[0].classList.add("auto-width");
zhujiamin's avatar
zhujiamin committed
13
    }), M.loadStyle(["/style.css"]), ibiz.config.enableDataInfoBar = !1, ibiz.config.gridEditShowMode = "all";
zhujiamin's avatar
zhujiamin committed
14 15
  }
};
zhujiamin's avatar
zhujiamin committed
16
const L = new r(import.meta.url);
zhujiamin's avatar
zhujiamin committed
17
class P {
zhujiamin's avatar
zhujiamin committed
18
  constructor() {
zhujiamin's avatar
zhujiamin committed
19
    i(this, "component", "IndexView");
zhujiamin's avatar
zhujiamin committed
20 21
  }
}
zhujiamin's avatar
zhujiamin committed
22 23
function l(e, s) {
  return t("div", {
zhujiamin's avatar
zhujiamin committed
24
    class: e.e("logo")
zhujiamin's avatar
zhujiamin committed
25
  }, [s.appIconPath ? t("img", {
zhujiamin's avatar
zhujiamin committed
26 27
    class: e.e("logo-img"),
    attrs: {
zhujiamin's avatar
zhujiamin committed
28
      src: s.appIconPath
zhujiamin's avatar
zhujiamin committed
29
    }
zhujiamin's avatar
zhujiamin committed
30
  }) : null, t("div", {
zhujiamin's avatar
zhujiamin committed
31
    class: e.e("logo-caption")
zhujiamin's avatar
zhujiamin committed
32
  }, [s.caption])]);
zhujiamin's avatar
zhujiamin committed
33
}
zhujiamin's avatar
zhujiamin committed
34
const I = v({
zhujiamin's avatar
zhujiamin committed
35 36 37
  name: "UserAppLayout",
  props: {
    model: {
zhujiamin's avatar
zhujiamin committed
38
      type: f,
zhujiamin's avatar
zhujiamin committed
39 40 41 42 43 44 45 46 47 48 49 50 51 52
      required: !0
    },
    // 视图是否完成加载
    isComplete: {
      type: Boolean,
      default: !1
    },
    // 是否显示分页导航
    isShowTabPageExp: {
      type: Boolean,
      default: !1
    }
  },
  setup(e, {
zhujiamin's avatar
zhujiamin committed
53
    emit: s
zhujiamin's avatar
zhujiamin committed
54
  }) {
zhujiamin's avatar
zhujiamin committed
55 56
    const a = w("layout"), {
      proxy: c
zhujiamin's avatar
zhujiamin committed
57 58 59
    } = y(), n = o(!1), u = () => {
      n.value = !n.value, s("onCollapseChange", n.value);
    }, h = C(() => e.model.source.blankMode === !0), p = o("廉洁风险点提示"), d = o(`风险点名称:<br/>
zhujiamin's avatar
zhujiamin committed
60 61 62 63 64 65 66 67 68
    1、不合理设定绩效考核指标(SY-ZLGL-C005)<br/>
    2、绩效评分有失公允(SY-ZLGL-C006)<br/>
    3、违规调整绩效考核结果(SY-ZLGL-C007)<br/>
    风险描述:<br/>
    1、在制定战略绩效考核方案时,受其他部门请托,不合理设定绩效考核指标,为本人或相关方谋求不正当利益。<br/>
    2、在绩效考核过程中,受其他部门请托,绩效考核打分时有失公平公正,为本人或相关方谋求不正当利益。<br/>
    3、受其他部门请托,违规调整绩效考核小组、公司领导和公司总经理办公会决定的绩效考核结果,为本人或相关方谋求不正当利益。<br/>
    违规行为处罚措施:<br/>
    制定部门绩效考核计划时、绩效考核过程中、反馈绩效考核结果时,发现违规行为及时纠正,对于情节轻微的,未造成损害后果和不良影响的,给予提醒谈话、批评教育或采取岗位调整等组织处理措施。对于情节严重的,根据《中国共产党纪律处分条例》、《中国移动通信集团有限公司员工违纪违规处分条例》(中移人〔2018〕196号)和《中共中国移动通信集团有限公司党组问责工作管理办法》(中移党组〔2021〕23号)等相关规定进行处罚。`);
zhujiamin's avatar
zhujiamin committed
69 70
    return S(() => {
      c.$Modal.warning({
zhujiamin's avatar
zhujiamin committed
71
        title: p.value,
zhujiamin's avatar
zhujiamin committed
72
        content: d.value,
zhujiamin's avatar
zhujiamin committed
73 74 75 76
        okText: "已阅知",
        width: 1e3
      });
    }), {
zhujiamin's avatar
zhujiamin committed
77
      ns: a,
zhujiamin's avatar
zhujiamin committed
78 79 80
      collapseChange: n,
      isBlank: h,
      collapseMenus: u
zhujiamin's avatar
zhujiamin committed
81 82 83
    };
  },
  render() {
zhujiamin's avatar
zhujiamin committed
84
    return this.isComplete ? t("i-layout", {
zhujiamin's avatar
zhujiamin committed
85
      class: [this.ns.b(), this.isBlank ? this.ns.m("blank") : "", this.ns.is("collapse", this.collapseChange), this.ns.is("tab", this.isShowTabPageExp)]
zhujiamin's avatar
zhujiamin committed
86
    }, [t("i-sider", {
zhujiamin's avatar
zhujiamin committed
87 88 89 90 91
      attrs: {
        "hide-trigger": !0,
        value: this.collapseChange
      },
      class: [this.ns.b("nav"), this.ns.is("collapse", this.collapseChange)]
zhujiamin's avatar
zhujiamin committed
92
    }, [l(this.ns, this.model), this.$slots.menu]), t("i-layout", {
zhujiamin's avatar
zhujiamin committed
93
      class: [this.ns.b("content")]
zhujiamin's avatar
zhujiamin committed
94
    }, [t("i-header", {
zhujiamin's avatar
zhujiamin committed
95
      class: this.ns.b("header")
zhujiamin's avatar
zhujiamin committed
96
    }, [t("div", {
zhujiamin's avatar
zhujiamin committed
97
      class: this.ns.be("header", "left")
zhujiamin's avatar
zhujiamin committed
98
    }, [l(this.ns, this.model), t("div", {
zhujiamin's avatar
zhujiamin committed
99
      class: this.ns.be("header", "collapse-icon")
zhujiamin's avatar
zhujiamin committed
100
    }, [this.collapseChange ? t("ion-icon", {
zhujiamin's avatar
zhujiamin committed
101 102 103 104 105 106
      attrs: {
        src: "./assets/img/menu-unfold.svg"
      },
      on: {
        click: () => this.collapseMenus()
      }
zhujiamin's avatar
zhujiamin committed
107
    }) : t("ion-icon", {
zhujiamin's avatar
zhujiamin committed
108 109 110 111 112 113
      attrs: {
        src: "./assets/img/menu-fold.svg"
      },
      on: {
        click: () => this.collapseMenus()
      }
zhujiamin's avatar
zhujiamin committed
114
    })]), this.model.source.mainMenuAlign === "TOP" ? t("i-menu", {
zhujiamin's avatar
zhujiamin committed
115 116 117 118 119
      class: this.ns.be("header", "menu"),
      attrs: {
        mode: "horizontal",
        "active-name": "1"
      }
zhujiamin's avatar
zhujiamin committed
120
    }) : null]), t("div", {
zhujiamin's avatar
zhujiamin committed
121
      class: this.ns.be("header", "right")
zhujiamin's avatar
zhujiamin committed
122
    }, [t("app-user")])]), t("i-content", {
zhujiamin's avatar
zhujiamin committed
123 124 125 126
      class: this.ns.be("content", "main")
    }, [this.$slots.tabPageExp, this.$slots.default])])]) : null;
  }
});
zhujiamin's avatar
zhujiamin committed
127
const T = {
zhujiamin's avatar
zhujiamin committed
128 129
  mateUrl: import.meta.url,
  install(e) {
zhujiamin's avatar
zhujiamin committed
130
    L.loadStyle(["/style.css"]), e.use(x), ibiz.register.view.register(
zhujiamin's avatar
zhujiamin committed
131
      "VIEW_CUSTOM_SyZhbgGsWeb",
zhujiamin's avatar
zhujiamin committed
132 133
      new P()
    ), e.component("AppLayout", I);
zhujiamin's avatar
zhujiamin committed
134 135 136
  }
};
export {
zhujiamin's avatar
zhujiamin committed
137
  T as default
zhujiamin's avatar
zhujiamin committed
138
};