Commit e218467f authored by xinzhedeai's avatar xinzhedeai

better:特种作业提醒事项模块整合处理

parent 79b3faaa
......@@ -4,11 +4,13 @@
* description: 商户首页
*/
var VUE = null
var quill = null
window.addEventListener("load", function() {
VUE = new Vue({
el: '#app',
data() {
return {
detailInfo: {},
showTipPopup: false,
previewUrl: BASE_URL,
flag: 'XQ',
......@@ -85,6 +87,7 @@ window.addEventListener("load", function() {
showTipPage(){
this.showTipPopup = true
this.detail()
return
// let param = {
......@@ -96,6 +99,40 @@ window.addEventListener("load", function() {
// gemhoUtil.navigatePage(url, '跳转中...')
},
detail() { // 隐患详情
vant.Toast.loading({
message: '正在加载...',
forbidClick: true,
loadingType: 'spinner',
});
http2.post({
serviceId: API_KEY_MAP["no-page"]['id'],
interfacePublicKey: API_KEY_MAP["no-page"]["publicKey"],
interfacePrivateKey: API_KEY_MAP["no-page"]["privateKey"],
reqParams: {
sign: 34, // 隐患详情
workType: this.formData.workType,
}
}, (res) => {
if (res) {
console.log('接口回调数据', JSON.parse(res))
setTimeout(() => {
this.$nextTick(() => {
vant.Toast.clear()
})
}, 0);
this.detailInfo = JSON.parse(res).data
// 初始化编辑器
quill = new Quill('#editor-container', {
theme: 'snow', readOnly: true, modules: {
toolbar: false // 关键配置:禁用工具栏
},
});
quill.root.innerHTML = this.detailInfo || '该特种作业类型下暂无提醒事项内容,请联系管理员'
}
})
},
getDict4tab1() {
http2.post({
serviceId: API_KEY_MAP["page"]['id'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment