Browse Source

feat:小程序优化代码

master
zhaobing’ 10 months ago
parent
commit
e0a0de09fa
  1. 7
      weapp/package/AIOTOverview/AIOTOverview.js
  2. 9
      weapp/package/AIOTOverview/electricityMonitoring/electricityMonitoring.js
  3. 7
      weapp/package/AIOTOverview/electricityMonitoring/electricityMonitoring.json
  4. 9
      weapp/package/AIOTOverview/flowMonitoring/flowMonitoring.js
  5. 3
      weapp/package/AIOTOverview/flowMonitoring/flowMonitoring.json
  6. 45
      weapp/package/deviceBigdataGraph/deviceBigdataGraph.js
  7. 3
      weapp/package/deviceBigdataGraph/deviceBigdataGraph.json
  8. 16
      weapp/package/deviceBigdataGraph/lifeWarning/lifeWarning.js
  9. 15
      weapp/package/deviceBigdataGraph/statusDetail/statusDetail.js
  10. 9
      weapp/package/groundDisasterInspection/groundDisasterInspection.json
  11. 1
      weapp/package/inspectionInput/inspectionInput.json
  12. 19
      weapp/package/inspectionReport/inspectionReport.js
  13. 6
      weapp/package/inspectionReport/inspectionReport.json
  14. 3
      weapp/package/polling/inspectionRecordDetail/inspectionRecordDetail.wxml
  15. 2
      weapp/package/polling/polling.json
  16. 11
      weapp/package/report/report.json
  17. 2
      weapp/package/riskManagement/riskCalendar/riskCalendar.js
  18. 2
      weapp/package/riskManagement/riskCalendar/riskCalendar.wxml
  19. 1
      weapp/package/startInspection/startInspection.json
  20. 6
      weapp/package/subSystem/subSystem.js
  21. 1
      weapp/package/subSystem/subSystem.json
  22. 3
      weapp/package/troubleshooting/index.json
  23. 1
      weapp/package/troubleshooting/shootingForm/index.json
  24. 2
      weapp/pages/workbench/workbench.wxml

7
weapp/package/AIOTOverview/AIOTOverview.js

@ -4,7 +4,7 @@ import { Request } from "../../common";
const moment = require("../../utils/moment");
Page({
searchId:[],
/**
* 页面的初始数据
*/
@ -17,7 +17,6 @@ Page({
iotCardNonactivated: 0,//物联网卡欠费
iotCardHalt: 0,//物联网卡停机
iotaCardData: [],//物联网卡数据
searchId:[],
},
//跳转流量监控明细
navigatorToFlow() {
@ -28,7 +27,7 @@ Page({
},
//跳转用电监控明细
navigatorToEle() {
const jsonData2 = JSON.stringify(this.data.searchId)
const jsonData2 = JSON.stringify(this.searchId)
wx.navigateTo({
url: `/package/AIOTOverview/electricityMonitoring/electricityMonitoring?data2=${encodeURIComponent(jsonData2)}`
})
@ -90,12 +89,12 @@ Page({
}
})
}
this.searchId=searchId
that.setData({
iotaCardData: controlId,
iotCardNormal: res?.filter(item => item.status == 0)?.length,
iotCardNonactivated: res?.filter(item => item.status == 1)?.length,
iotCardHalt: res?.filter(item => item.status == 2)?.length,
searchId:searchId
})
}
})

9
weapp/package/AIOTOverview/electricityMonitoring/electricityMonitoring.js

@ -3,7 +3,7 @@ import { getProjectList,getRelationList,createInvoke} from "../../../utils/getAp
import {Request} from "../../../common"
Page({
listCopy:[],
/**
* 页面的初始数据
*/
@ -11,7 +11,6 @@ Page({
structList:[ ],
curStruId: 'all', // 选中结构物id
list:[],//断路器设备list
listCopy:[],
},
onClose(e) {
// 获取报告
@ -40,9 +39,9 @@ Page({
if (e.detail) {
let data = []
if (e.detail === 'all') {
data = this.data.listCopy
data = this.listCopy
} else {
data = this.data.listCopy.filter(item => item.xjId === e.detail)
data = this.listCopy.filter(item => item.xjId === e.detail)
}
this.setData({
curStruId: e.detail,
@ -82,10 +81,10 @@ Page({
})
}
data.unshift({text: '全部', value: 'all' })
this.listCopy=listt
this.setData({
structList:data,
list:listt,
listCopy:listt
})
}

7
weapp/package/AIOTOverview/electricityMonitoring/electricityMonitoring.json

@ -2,13 +2,8 @@
"navigationBarTitleText": "用电监控",
"usingComponents": {
"van-button": "@vant/weapp/button/index",
"van-cell": "@vant/weapp/cell/index",
"van-cell-group": "@vant/weapp/cell-group/index",
"van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
"van-dropdown-item": "@vant/weapp/dropdown-item/index",
"van-empty": "@vant/weapp/empty/index",
"van-switch": "@vant/weapp/switch/index"
"van-empty": "@vant/weapp/empty/index"
}
}

9
weapp/package/AIOTOverview/flowMonitoring/flowMonitoring.js

@ -3,6 +3,7 @@ import { getProjectList, getRelationList } from "../../../utils/getApiUrl";
import { Request } from "../../../common";
const moment = require("../../../utils/moment");
Page({
cardDataCopy: [],
/**
* 页面的初始数据
@ -11,7 +12,6 @@ Page({
structList: [],
curStruId: 'all', // 选中结构物id
cardData: [],
cardDataCopy: []
},
onClose(e) {
// 获取报告
@ -21,9 +21,9 @@ Page({
if (e.detail) {
let data = []
if (e.detail === 'all') {
data = this.data.cardDataCopy
data = this.cardDataCopy
} else {
data = this.data.cardDataCopy.filter(item => item.xjId === e.detail)
data = this.cardDataCopy.filter(item => item.xjId === e.detail)
}
this.setData({
curStruId: e.detail,
@ -52,11 +52,10 @@ Page({
}
})
}
console.log('dd',dd)
this.cardDataCopy=dd
this.setData({
structList: data,
cardData:dd ,
cardDataCopy:dd
})
}

3
weapp/package/AIOTOverview/flowMonitoring/flowMonitoring.json

@ -1,9 +1,6 @@
{
"navigationBarTitleText": "流量监控",
"usingComponents": {
"van-button": "@vant/weapp/button/index",
"van-cell": "@vant/weapp/cell/index",
"van-cell-group": "@vant/weapp/cell-group/index",
"van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
"van-dropdown-item": "@vant/weapp/dropdown-item/index",
"van-empty": "@vant/weapp/empty/index"

45
weapp/package/deviceBigdataGraph/deviceBigdataGraph.js

@ -11,6 +11,10 @@ import {
const moment = require("../../utils/moment");
Page({
projectList: [], //结构物列表
timeoutId1: null, // 定时器1的ID
timeoutId2: null, // 定时器2的ID
deviceList:[],//设备列表
initECharts(option) {
this.ecComponent.init((canvas, width, height, dpr) => {
const chart = echarts.init(canvas, null, {
@ -20,6 +24,8 @@ Page({
});
chart.setOption(option);
this.chart = chart;
wx.hideLoading()
return chart;
});
},
@ -32,6 +38,7 @@ Page({
});
chart.setOption(option);
this.chart = chart;
wx.hideLoading()
return chart;
});
},
@ -40,25 +47,22 @@ Page({
*/
data: {
ec: {},
dataList: [], //巡检记录的列表
// dataList: [], //巡检记录的列表
guaranteedRate: 0, //过保率
warrantyPeriod: 0, //质保期
projectList: [], //结构物列表
count: 0, //设备总数
deviceList:[],//设备列表
// normalCount: 0, //正常数量
// abnormalCount: 0, //异常数量
// unknownCount: 0, //未知数量
},
navigator(e) {
const res = JSON.stringify(this.data.deviceList)
const patrolRecord=JSON.stringify(this.data.dataList)
const res = JSON.stringify(this.deviceList)
wx.navigateTo({
url: `/package/deviceBigdataGraph/statusDetail/statusDetail?arrayData=${encodeURIComponent(res)}`,
})
},
navigatorToLifeWarning(e) {
const res = JSON.stringify(this.data.projectList.rows)
const res = JSON.stringify(this.projectList.rows)
wx.navigateTo({
url: `/package/deviceBigdataGraph/lifeWarning/lifeWarning?arrayData=${encodeURIComponent(res)}`,
})
@ -67,6 +71,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
wx.showLoading({ title: '加载中...' });
const that = this
that.ecComponent = that.selectComponent('#mychart-dom-pie');
that.ecDeviceComponent = that.selectComponent('#mychart-device-pie');
@ -94,11 +99,11 @@ Page({
}
typeGroups[type].push(item)
});
this.deviceList=res
that.setData({
guaranteedRate: Math.round((guaranteedRate / count) * 100),
warrantyPeriod: Math.round((warrantyPeriod / count) * 100),
count: res.length,
deviceList:res
})
// 格式转换成指定格式
const result = Object.keys(typeGroups).map((type) => ({
@ -136,7 +141,7 @@ Page({
}]
};
setTimeout(() => {
that.timeoutId1= setTimeout(() => {
that.initECharts(option);
}, 1000)
} else {
@ -168,7 +173,7 @@ Page({
return inspectionTime == maxInspectionTimeByPointId[pointId]
});
//获取设备信息
const devices=that.data.deviceList.map(item=>{return {id:item.id,name:item.name,status:'unknown'}})
const devices=that.deviceList.map(item=>{return {id:item.id,name:item.name,status:'unknown'}})
filteredData?.forEach((item) => {
const inspectContent =item.alarm?(item?.points?.inspectContent || []):[];
if (inspectContent && inspectContent.length&&Array.isArray(inspectContent)&&inspectContent.some(o=>o.deviceId)) {
@ -224,7 +229,7 @@ Page({
break;
}
});
that.setData({dataList:res})
// that.setData({dataList:res})
var optionDevice = {
tooltip: {
trigger: 'item'
@ -260,7 +265,7 @@ Page({
}]
};
setTimeout(() => {
that.timeoutId2= setTimeout(() => {
that.initDeviceECharts(optionDevice);
}, 1000)
} else {
@ -269,9 +274,11 @@ Page({
})
Request.get(getProjectList()).then(res => {
if (res) {
that.setData({
projectList: res
})
this.projectList=res
// that.setData({
// projectList: res
// })
} else {
wx.hideLoading()
@ -292,6 +299,7 @@ Page({
*/
onShow() {
},
/**
@ -305,7 +313,14 @@ Page({
* 生命周期函数--监听页面卸载
*/
onUnload() {
// 清除定时器1
if (this.timeoutId1) {
clearTimeout(this.timeoutId1);
}
// 清除定时器2
if (this.timeoutId2) {
clearTimeout(this.timeoutId2);
}
},
/**

3
weapp/package/deviceBigdataGraph/deviceBigdataGraph.json

@ -5,7 +5,6 @@
"enablePullDownRefresh": false,
"usingComponents": {
"ec-canvas": "../components/ec-canvas/ec-canvas",
"van-button": "@vant/weapp/button/index",
"van-progress": "@vant/weapp/progress/index"
"van-button": "@vant/weapp/button/index"
}
}

16
weapp/package/deviceBigdataGraph/lifeWarning/lifeWarning.js

@ -39,7 +39,8 @@ function setOption (chart, seriesData, xData) {
chart.setOption(option);
}
Page({
timeoutId: null, // 定时器的ID
isLoaded: false,
/**
* 页面的初始数据
*/
@ -48,7 +49,6 @@ Page({
// onInit: initChart,
lazyLoad: true, // 将 lazyLoad 设为 true 后,需要手动初始化图表
},
isLoaded: false,
list: [1, 2, 3],
count: 0, //总设备数
guaranteedRate: 0, //过保率
@ -67,10 +67,10 @@ Page({
// 将图表实例绑定到 this 上,可以在其他成员函数中访问
this.chart = chart;
this.setData({
isLoaded: true,
});
this.isLoaded=true
// this.setData({
// isLoaded: true,
// });
// 注意这里一定要返回 chart 实例,否则会影响事件处理等
return chart;
@ -178,7 +178,7 @@ Page({
warrantyPeriod: warrantyPeriod,
next30days: expiringDevices
})
setTimeout(() => {
that.timeoutId=setTimeout(() => {
this.initChart(monthlyCounts, xAxisLabels)
}, 1000)
} else {
@ -213,7 +213,7 @@ Page({
* 生命周期函数--监听页面卸载
*/
onUnload () {
clearTimeout(this.timeoutId)
},
/**

15
weapp/package/deviceBigdataGraph/statusDetail/statusDetail.js

@ -54,6 +54,8 @@ function setOption(chart, data1, data2,xdata) {
Page({
// deviceList: [], //设备列表
isLoaded: false,
/**
* 页面的初始数据
@ -63,10 +65,8 @@ Page({
// onInit: initChart,
lazyLoad: true, // 将 lazyLoad 设为 true 后,需要手动初始化图表
},
isLoaded: false,
list: [1, 2, 3],
count: 0, //设备总数
deviceList: [], //设备列表
equipmentFailureRate: 0, //设备故障率
equipmentIntegrityRate: 0, //设备完好率
normalCount: 0, //正常数量
@ -89,16 +89,15 @@ Page({
// 将图表实例绑定到 this 上,可以在其他成员函数中访问
this.chart = chart;
this.isLoaded=true
this.setData({
isLoaded: true,
});
// 注意这里一定要返回 chart 实例,否则会影响事件处理等
return chart;
});
},
onLoad(options) {
wx.showLoading({ title: '加载中...' });
const that = this
//上次菜单传入设备列表
const complexArray = JSON.parse(decodeURIComponent(options.arrayData));
@ -153,10 +152,12 @@ Page({
const deviceCount=complexArray.length
that.setData({
count: complexArray.length || 0,
deviceList: complexArray,
equipmentFailureRate:deviceCount?Math.round(((unknown+abnormal)/deviceCount)*100):0,
quipmentIntegrityRate:deviceCount?Math.round((normal/deviceCount)*100):0
})
}, ()=>{
wx.hideLoading()
}
)
//正常数据
const normaldata=Object.values(sevenDays).map(item=>Math.ceil((item.normal/complexArray.length)*100))
//故障数据

9
weapp/package/groundDisasterInspection/groundDisasterInspection.json

@ -9,16 +9,7 @@
"van-field": "@vant/weapp/field/index",
"van-cell": "@vant/weapp/cell/index",
"van-cell-group": "@vant/weapp/cell-group/index",
"van-picker": "@vant/weapp/picker/index",
"van-popup": "@vant/weapp/popup/index",
"van-icon": "@vant/weapp/icon/index",
"van-collapse": "@vant/weapp/collapse/index",
"van-collapse-item": "@vant/weapp/collapse-item/index",
"van-divider": "@vant/weapp/divider/index",
"t-cell-group": "tdesign-miniprogram/cell-group/cell-group",
"t-cell": "tdesign-miniprogram/cell/cell",
"t-picker": "tdesign-miniprogram/picker/picker",
"t-picker-item": "tdesign-miniprogram/picker-item/picker-item",
"van-radio": "@vant/weapp/radio/index",
"van-radio-group": "@vant/weapp/radio-group/index"
}

1
weapp/package/inspectionInput/inspectionInput.json

@ -5,7 +5,6 @@
"enablePullDownRefresh": false,
"component": true,
"usingComponents": {
"t-cell-group": "tdesign-miniprogram/cell-group/cell-group",
"t-cell": "tdesign-miniprogram/cell/cell",
"t-picker": "tdesign-miniprogram/picker/picker",
"t-picker-item": "tdesign-miniprogram/picker-item/picker-item",

19
weapp/package/inspectionReport/inspectionReport.js

@ -4,18 +4,17 @@ import { Request } from "../../common";
const moment = require("../../utils/moment");
Page({
formatStartTime: moment(new Date().getTime()).format('YYYY-MM-DD'),
formatEndTime: moment(new Date().getTime()).format('YYYY-MM-DD'),
/**
* 页面的初始数据
*/
data: {
structures: [], // 结构物
struLoading: false,
curStruId: 'all', // 选中结构物id
startTime: new Date().getTime(),
endTime: new Date().getTime(),
formatStartTime: moment(new Date().getTime()).format('YYYY-MM-DD'),
formatEndTime: moment(new Date().getTime()).format('YYYY-MM-DD'),
report: [], // 巡检报告
},
@ -33,15 +32,15 @@ Page({
},
// 时间选择
onStartTimeChange(event) {
this.formatStartTime= moment(event.detail).format('YYYY-MM-DD')
this.setData({
startTime: event.detail,
formatStartTime: moment(event.detail).format('YYYY-MM-DD')
});
},
onEndTimeChange(event) {
this.formatEndTime=moment(event.detail).format('YYYY-MM-DD')
this.setData({
endTime: event.detail,
formatEndTime: moment(event.detail).format('YYYY-MM-DD'),
});
},
@ -72,11 +71,11 @@ Page({
},
getPatrolReport() {
const { curStruId, formatStartTime, formatEndTime } = this.data;
const { curStruId, } = this.data;
const params = {
projectId: curStruId === 'all' ? '' : curStruId,
startTime: formatStartTime + ' 00:00:00',
endTime: formatEndTime + ' 23:59:59',
startTime: this.formatStartTime + ' 00:00:00',
endTime: this.formatEndTime + ' 23:59:59',
}
wx.showLoading({ title: '查询中...' });
Request.get(getPatrolReport(params)).then(res => {
@ -91,11 +90,9 @@ Page({
},
getStructuresList() {
this.setData({ struLoading: true });
Request.get(getStructuresList()).then(res => {
const filterData=res.rows.filter(s => s.type=='管廊' )
this.setData({
struLoading: false,
structures: [
{ text: '全部', value: 'all' },
...filterData.map(p=>(

6
weapp/package/inspectionReport/inspectionReport.json

@ -3,13 +3,7 @@
"navigationBarTextStyle": "white",
"navigationBarTitleText": "巡检报告",
"usingComponents": {
"van-cell": "@vant/weapp/cell/index",
"van-cell-group": "@vant/weapp/cell-group/index",
"van-popup": "@vant/weapp/popup/index",
"van-picker": "@vant/weapp/picker/index",
"van-datetime-picker": "@vant/weapp/datetime-picker/index",
"van-button": "@vant/weapp/button/index",
"van-divider": "@vant/weapp/divider/index",
"van-empty": "@vant/weapp/empty/index",
"van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
"van-dropdown-item": "@vant/weapp/dropdown-item/index"

3
weapp/package/polling/inspectionRecordDetail/inspectionRecordDetail.wxml

@ -70,6 +70,7 @@
<block wx:else>
<view
wx:for="{{dataList.points.inspectContent}}"
wx:key="*this"
wx:for-item="device"
wx:for-index="deviceidx"
style="margin-top: 16px"
@ -89,7 +90,7 @@
{{device.alarm ? '异常': '正常'}}
</view>
</view>
<view wx:for="{{device.checkItems}}" wx:for-index="itemidx">
<view wx:for="{{device.checkItems}}" wx:key="*this" wx:for-index="itemidx">
<van-collapse-item
title="{{item.name}}"
value="{{item.isNormal ? '正常' : '异常'}}"

2
weapp/package/polling/polling.json

@ -4,13 +4,11 @@
"navigationBarTitleText": "巡检",
"enablePullDownRefresh": true,
"usingComponents": {
"timePicker": "/components/timePicker/index",
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index",
"van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
"van-dropdown-item": "@vant/weapp/dropdown-item/index",
"van-datetime-picker": "@vant/weapp/datetime-picker/index",
"van-icon": "@vant/weapp/icon/index",
"van-button": "@vant/weapp/button/index"
}

11
weapp/package/report/report.json

@ -5,20 +5,9 @@
"enablePullDownRefresh": false,
"componentFramework": "glass-easel",
"usingComponents": {
"van-button": "@vant/weapp/button/index",
"van-field": "@vant/weapp/field/index",
"van-cell": "@vant/weapp/cell/index",
"van-cell-group": "@vant/weapp/cell-group/index",
"van-picker": "@vant/weapp/picker/index",
"van-popup": "@vant/weapp/popup/index",
"van-icon": "@vant/weapp/icon/index",
"van-collapse": "@vant/weapp/collapse/index",
"van-collapse-item": "@vant/weapp/collapse-item/index",
"van-divider": "@vant/weapp/divider/index",
"t-cell-group": "tdesign-miniprogram/cell-group/cell-group",
"t-cell": "tdesign-miniprogram/cell/cell",
"t-picker": "tdesign-miniprogram/picker/picker",
"t-picker-item": "tdesign-miniprogram/picker-item/picker-item",
"van-radio": "@vant/weapp/radio/index",
"van-radio-group": "@vant/weapp/radio-group/index"
}

2
weapp/package/riskManagement/riskCalendar/riskCalendar.js

@ -75,7 +75,7 @@ Page({
const levelValues = {轻微: 0,中度: 1,严重: 2};
let tempLevel = '轻微';
for (const device of d.points.inspectContent) {
if (device.alarm === true) {
if (device?.alarm === true) {
for (const item of device.checkItems) {
if (item.level) {
tempLevel=levelValues[item.level]>levelValues[tempLevel]?item.level:tempLevel

2
weapp/package/riskManagement/riskCalendar/riskCalendar.wxml

@ -43,7 +43,7 @@
/>
</van-popup>
<view wx:for="{{showList}}" class="card" style="margin-bottom: 10px">
<view wx:for="{{showList}}" wx:key="*this" class="card" style="margin-bottom: 10px">
<view class="card-top flex flex-between">
<view class="card-left flex">
<image class="card-icon" src="/images/right_icon.png" />

1
weapp/package/startInspection/startInspection.json

@ -5,7 +5,6 @@
"enablePullDownRefresh": false,
"component": true,
"usingComponents": {
"t-cell-group": "tdesign-miniprogram/cell-group/cell-group",
"t-cell": "tdesign-miniprogram/cell/cell",
"t-picker": "tdesign-miniprogram/picker/picker",
"t-picker-item": "tdesign-miniprogram/picker-item/picker-item",

6
weapp/package/subSystem/subSystem.js

@ -9,6 +9,7 @@ import {
const moment = require("../../utils/moment");
Page({
record: [],//巡检记录
initECharts(option) {
this.ecComponent.init((canvas, width, height, dpr) => {
const chart = echarts.init(canvas, null, {
@ -33,7 +34,6 @@ Page({
},
date: '',
show: true,
record: [],//巡检记录
currentPatrolCount: 0, //当月巡检次数
currentRepairCount: 0, //当月维修次数
currentDate: new Date().getTime(),
@ -98,7 +98,7 @@ Page({
},
onDateSelect(e) {
const currentDate = moment(e.detail).format('YYYY-MM-DD')
const inspectionData = this.data.record.find(item => currentDate == moment(item.inspectionTime).format('YYYY-MM-DD'));
const inspectionData = this.record.find(item => currentDate == moment(item.inspectionTime).format('YYYY-MM-DD'));
if (inspectionData) {
wx.navigateTo({
url: `/package/subSystem/dayPatrolInfo/dayPatrolInfo?day=${moment(e.detail).format('YYYY-MM-DD')}&subType=${this.subType}`,
@ -241,11 +241,11 @@ Page({
}
const data1 = Object.entries(levelCounts).map(([name, value]) => ({ name, value }));
const totalValue = data1.reduce((accumulator, item) => accumulator + item.value, 0);
this.record=res
that.setData({
currentRepairCount: res?.filter(i => i.patrolRecordIssueHandles.length > 0 ? i.patrolRecordIssueHandles[0].state === 6 : false).length || 0,
currentPatrolCount: res.length,
questions: totalValue,
record: res,
formatter: function (e) {
const currentDate = moment(e.date).format('YYYY-MM-DD');
const rs = res.filter(item => currentDate === moment(item.inspectionTime).format('YYYY-MM-DD'))

1
weapp/package/subSystem/subSystem.json

@ -6,7 +6,6 @@
"van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
"van-dropdown-item": "@vant/weapp/dropdown-item/index",
"van-popup": "@vant/weapp/popup/index",
"van-picker": "@vant/weapp/picker/index",
"van-icon": "@vant/weapp/icon/index",
"van-datetime-picker": "@vant/weapp/datetime-picker/index"
}

3
weapp/package/troubleshooting/index.json

@ -4,7 +4,6 @@
"navigationBarTitleText": "问题处理",
"usingComponents": {
"van-button": "@vant/weapp/button/index",
"van-field": "@vant/weapp/field/index",
"van-cell": "@vant/weapp/cell/index",
"van-cell-group": "@vant/weapp/cell-group/index",
"van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
@ -12,8 +11,6 @@
"van-checkbox": "@vant/weapp/checkbox/index",
"van-checkbox-group": "@vant/weapp/checkbox-group/index",
"van-datetime-picker": "@vant/weapp/datetime-picker/index",
"timePicker": "/components/timePicker/index",
"t-date-time-picker": "tdesign-miniprogram/date-time-picker/date-time-picker",
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index"
}

1
weapp/package/troubleshooting/shootingForm/index.json

@ -7,7 +7,6 @@
"van-field": "@vant/weapp/field/index",
"van-cell": "@vant/weapp/cell/index",
"van-cell-group": "@vant/weapp/cell-group/index",
"van-picker": "@vant/weapp/picker/index",
"van-popup": "@vant/weapp/popup/index",
"van-icon": "@vant/weapp/icon/index",
"van-datetime-picker": "@vant/weapp/datetime-picker/index",

2
weapp/pages/workbench/workbench.wxml

@ -1,7 +1,7 @@
<!-- pages/workbench/workbench.wxml -->
<view class="workbench-page">
<view class="workbench">
<view class="workbench-item" wx:for="{{itemList}}" data-page="{{item.page}}" bindtap="navigator">
<view class="workbench-item" wx:for="{{itemList}}" data-page="{{item.page}}" bindtap="navigator" wx:key="*this">
<image src="{{item.iconPath}}" class="item-img" />
<View class="item-text">{{item.text}}</View>
</view>

Loading…
Cancel
Save