diff --git a/pages.json b/pages.json index 4277e90..d8e8fd9 100644 --- a/pages.json +++ b/pages.json @@ -43,9 +43,116 @@ } }, { - "path": "pages/shipWork/mixAdd", + "path": "pages/shipWork/peopleAdd", "style": { - "navigationBarTitleText": "杂项作业编辑" + "navigationBarTitleText": "杂项作业查看(人员信息)" + } + }, + { + "path": "pages/shipWork/shiftAdd", + "style": { + "navigationBarTitleText": "杂项作业查看(工班信息)" + } + }, { + "path": "pages/shipWork/shiftDetails", + "style": { + "navigationBarTitleText": "工班信息详情" + } + }, { + "path": "pages/shipWork/untieCord", + "style": { + "navigationBarTitleText": "系解缆" + } + }, + { + "path": "pages/shipWork/untieAdd", + "style": { + "navigationBarTitleText": "系解缆信息" + } + }, + { + "path": "pages/shipWork/supply", + "style": { + "navigationBarTitleText": "供给" + } + }, + { + "path": "pages/shipWork/supplyAdd", + "style": { + "navigationBarTitleText": "供给信息" + } + }, + { + "path": "pages/shipWork/workAssign", + "style": { + "navigationBarTitleText": "指导员作业布置" + } + }, + { + "path": "pages/shipWork/workAssignAdd", + "style": { + "navigationBarTitleText": "指导员作业布置信息" + } + }, { + "path": "pages/shipWork/notice", + "style": { + "navigationBarTitleText": "船舶装卸通知书" + } + }, + { + "path": "pages/shipWork/noticeAdd", + "style": { + "navigationBarTitleText": "船舶装卸通知书信息" + } + }, { + "path": "pages/shipWork/opinion", + "style": { + "navigationBarTitleText": "质量意见征询" + } + }, { + "path": "pages/shipWork/opinionAdd", + "style": { + "navigationBarTitleText": "质量意见征询信息" + } + }, { + "path": "pages/shipWork/abnormal", + "style": { + "navigationBarTitleText": "异常情况" + } + }, { + "path": "pages/shipWork/abnormalAdd", + "style": { + "navigationBarTitleText": "异常情况信息" + } + }, { + "path": "pages/shipWork/mafi", + "style": { + "navigationBarTitleText": "MAFI清单" + } + }, { + "path": "pages/shipWork/mafiAdd", + "style": { + "navigationBarTitleText": "MAFI清单信息" + } + }, { + "path": "pages/shipWork/patrol", + "style": { + "navigationBarTitleText": "安全巡检" + } + }, { + "path": "pages/shipWork/patrolAdd", + "style": { + "navigationBarTitleText": "安全巡检信息" + } + }, { + "path": "pages/shipWork/shipInfo", + "style": { + "navigationBarTitleText": "船舶资料" + } + }, { + "path": "pages/shipWork/shipPlan", + "style": { + "navigationBarTitleText": "船舶计划" } }, { diff --git a/pages/shipWork/abnormal.vue b/pages/shipWork/abnormal.vue new file mode 100644 index 0000000..fdbda21 --- /dev/null +++ b/pages/shipWork/abnormal.vue @@ -0,0 +1,109 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/abnormalAdd.vue b/pages/shipWork/abnormalAdd.vue new file mode 100644 index 0000000..f97a4da --- /dev/null +++ b/pages/shipWork/abnormalAdd.vue @@ -0,0 +1,180 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/documentList.vue b/pages/shipWork/documentList.vue index 8de6605..c8ed5a5 100644 --- a/pages/shipWork/documentList.vue +++ b/pages/shipWork/documentList.vue @@ -5,14 +5,14 @@

其他作业

@@ -28,41 +28,41 @@ url: "mixWork" }, { name: "系解缆", - url: "mixWork" + url: "untieCord" }, { name: "供给", - url: "mixWork" + url: "supply" }, { name: "指导员作业布置", - url: "mixWork" + url: "workAssign" }, { name: "船舶装卸通知单", - url: "mixWork" + url: "notice" }, { name: "质量意见征询", - url: "mixWork" + url: "opinion" }, { name: "异常情况", - url: "mixWork" + url: "abnormal" }, { name: "MAFI清单", - url: "mixWork" + url: "mafi" }], otherListh: [{ name: "安全巡检", - url: "mixWork" - }, - { - name: "船舶载货量", - url: "mixWork" + url: "patrol" }, + // { + // name: "船舶载货量", + // url: "mixWork" + // }, { name: "船舶资料", - url: "mixWork" + url: "shipInfo" }, { name: "船舶计划", - url: "mixWork" + url: "shipPlan" }, { name: "作业查询", @@ -108,7 +108,7 @@ margin: 10px auto; } - span { + p { text-align: center; font-size: 16px; margin-top: 10px; diff --git a/pages/shipWork/mafi.vue b/pages/shipWork/mafi.vue new file mode 100644 index 0000000..3dfb89c --- /dev/null +++ b/pages/shipWork/mafi.vue @@ -0,0 +1,113 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/mafiAdd.vue b/pages/shipWork/mafiAdd.vue new file mode 100644 index 0000000..cf23fda --- /dev/null +++ b/pages/shipWork/mafiAdd.vue @@ -0,0 +1,225 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/mixAdd.vue b/pages/shipWork/mixAdd.vue deleted file mode 100644 index 4a7e3e3..0000000 --- a/pages/shipWork/mixAdd.vue +++ /dev/null @@ -1,152 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/shipWork/mixWork.vue b/pages/shipWork/mixWork.vue index 02ee611..4d122c1 100644 --- a/pages/shipWork/mixWork.vue +++ b/pages/shipWork/mixWork.vue @@ -5,8 +5,9 @@ {{item}} + + - + 新增 + + 新增 @@ -44,8 +46,9 @@ data() { return { tabsList: ["人员信息", "工班信息"], - tabsType: 1, + tabsType: 1, // 1是人员信息 2是工班信息 tabsIndex: 0, + // 人员信息列表 peopleInfo: [{ val1: "JK9795799", val2: "内贸", @@ -68,6 +71,7 @@ val5: "100", val6: "未上传", }], + // 工班信息列表 shiftInfo: [{ val1: "JK9795799", val6: "未上传", @@ -84,11 +88,26 @@ this.tabsType = 2; } }, - add() { - uni.navigateTo({ - url: `/pages/shipWork/mixAdd` - }) + add(state) { + const obj = { + state: state, + } + const params = encodeURIComponent(JSON.stringify(obj)); + if (this.tabsType == 1) { + uni.navigateTo({ + url: `/pages/shipWork/peopleAdd?params=${params}` + }) + } else { + uni.navigateTo({ + url: `/pages/shipWork/shiftAdd?params=${params}` + }) + } }, + lookShift() { + uni.navigateTo({ + url: `/pages/shipWork/shiftDetails` + }) + } } } diff --git a/pages/shipWork/notice.vue b/pages/shipWork/notice.vue new file mode 100644 index 0000000..048bdcd --- /dev/null +++ b/pages/shipWork/notice.vue @@ -0,0 +1,109 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/noticeAdd.vue b/pages/shipWork/noticeAdd.vue new file mode 100644 index 0000000..cb71c8c --- /dev/null +++ b/pages/shipWork/noticeAdd.vue @@ -0,0 +1,162 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/opinion.vue b/pages/shipWork/opinion.vue new file mode 100644 index 0000000..42bd701 --- /dev/null +++ b/pages/shipWork/opinion.vue @@ -0,0 +1,109 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/opinionAdd.vue b/pages/shipWork/opinionAdd.vue new file mode 100644 index 0000000..e9b63d8 --- /dev/null +++ b/pages/shipWork/opinionAdd.vue @@ -0,0 +1,226 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/patrol.vue b/pages/shipWork/patrol.vue new file mode 100644 index 0000000..29c6c86 --- /dev/null +++ b/pages/shipWork/patrol.vue @@ -0,0 +1,97 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/patrolAdd.vue b/pages/shipWork/patrolAdd.vue new file mode 100644 index 0000000..61b6d93 --- /dev/null +++ b/pages/shipWork/patrolAdd.vue @@ -0,0 +1,212 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/peopleAdd.vue b/pages/shipWork/peopleAdd.vue new file mode 100644 index 0000000..e4242ce --- /dev/null +++ b/pages/shipWork/peopleAdd.vue @@ -0,0 +1,217 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/shiftAdd.vue b/pages/shipWork/shiftAdd.vue new file mode 100644 index 0000000..b6e4f73 --- /dev/null +++ b/pages/shipWork/shiftAdd.vue @@ -0,0 +1,565 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/shiftDetails.vue b/pages/shipWork/shiftDetails.vue new file mode 100644 index 0000000..1fa4f21 --- /dev/null +++ b/pages/shipWork/shiftDetails.vue @@ -0,0 +1,300 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/shipInfo.vue b/pages/shipWork/shipInfo.vue new file mode 100644 index 0000000..1515067 --- /dev/null +++ b/pages/shipWork/shipInfo.vue @@ -0,0 +1,45 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/shipPlan.vue b/pages/shipWork/shipPlan.vue new file mode 100644 index 0000000..2e2c6f6 --- /dev/null +++ b/pages/shipWork/shipPlan.vue @@ -0,0 +1,74 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/supply.vue b/pages/shipWork/supply.vue new file mode 100644 index 0000000..77b7779 --- /dev/null +++ b/pages/shipWork/supply.vue @@ -0,0 +1,109 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/supplyAdd.vue b/pages/shipWork/supplyAdd.vue new file mode 100644 index 0000000..3dff2c3 --- /dev/null +++ b/pages/shipWork/supplyAdd.vue @@ -0,0 +1,219 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/untieAdd.vue b/pages/shipWork/untieAdd.vue new file mode 100644 index 0000000..754db5b --- /dev/null +++ b/pages/shipWork/untieAdd.vue @@ -0,0 +1,217 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/untieCord.vue b/pages/shipWork/untieCord.vue new file mode 100644 index 0000000..9c19fb5 --- /dev/null +++ b/pages/shipWork/untieCord.vue @@ -0,0 +1,113 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/workAssign.vue b/pages/shipWork/workAssign.vue new file mode 100644 index 0000000..ffae9e1 --- /dev/null +++ b/pages/shipWork/workAssign.vue @@ -0,0 +1,109 @@ + + + + + \ No newline at end of file diff --git a/pages/shipWork/workAssignAdd.vue b/pages/shipWork/workAssignAdd.vue new file mode 100644 index 0000000..3d941ad --- /dev/null +++ b/pages/shipWork/workAssignAdd.vue @@ -0,0 +1,260 @@ + + + + + \ No newline at end of file diff --git a/uni_modules/custom-tabs/changelog.md b/uni_modules/custom-tabs/changelog.md new file mode 100644 index 0000000..4978d07 --- /dev/null +++ b/uni_modules/custom-tabs/changelog.md @@ -0,0 +1,22 @@ +## 1.0.8(2022-04-21) +1. 优化插件,避免多个组件互相影响。 +## 1.0.7(2022-04-20) +1. 优化 +## 1.0.6(2022-04-20) +1. 修改使用多个该组件存在的BUG +## 1.0.5(2022-03-24) +1. 修复设置animation参数无效的BUG +2. 修复有动画切换的显示BUG +## 1.0.4(2022-03-08) +1. 增加defaultTextStyle字段,方便直接配置未选中的tab样式 +2. 增加activeTextStyle字段,方便直接配置选中后tab的样式 +3. 增加activeLineStyle字段,方便直接配置选中后下划线的样式 +## 1.0.3(2022-03-07) +1. 修改vue2模式下 tablist is not defined 报错的bug +## 1.0.2(2022-03-02) +1. 新增tabs切换那一栏固定功能,类似吸顶效果 +2. 新增监听label变化,label值可动态改变 +3. 新增不显示的页面进行隐藏,防止某页面内容过多撑开其他页面 +4. h5隐藏滚动条 +## 1.0.0(2021-12-13) +1.0.0 diff --git a/uni_modules/custom-tabs/components/custom-tab-pane/custom-tab-pane.vue b/uni_modules/custom-tabs/components/custom-tab-pane/custom-tab-pane.vue new file mode 100644 index 0000000..63bd98a --- /dev/null +++ b/uni_modules/custom-tabs/components/custom-tab-pane/custom-tab-pane.vue @@ -0,0 +1,72 @@ + + + + diff --git a/uni_modules/custom-tabs/components/custom-tabs/custom-tabs.vue b/uni_modules/custom-tabs/components/custom-tabs/custom-tabs.vue new file mode 100644 index 0000000..3cdc3e1 --- /dev/null +++ b/uni_modules/custom-tabs/components/custom-tabs/custom-tabs.vue @@ -0,0 +1,221 @@ + + + + diff --git a/uni_modules/custom-tabs/package.json b/uni_modules/custom-tabs/package.json new file mode 100644 index 0000000..96dfcbd --- /dev/null +++ b/uni_modules/custom-tabs/package.json @@ -0,0 +1,83 @@ +{ + "id": "custom-tabs", + "displayName": "Tabs标签页 灵活配置 多端兼容(暂停维护谨慎使用,建议使用uv-tabs)", + "version": "1.0.8", + "description": "在做项目的过程中用到了tab切换,本想着去插件市场找一个直接现用,后面发现找到的tab切换并不是我想要的那种使用方式,于是我结合了element-ui中Tabs标签页的方式写了该组件...", + "keywords": [ + "tabs", + "tab", + "tabs标签页", + "tab切换", + "标签页" +], + "repository": "https://gitee.com/my_dear_li_pan/my-uni-modules.git", +"engines": { + }, + "dcloudext": { + "category": [ + "前端组件", + "通用组件" + ], + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "插件不采集任何数据", + "permissions": "无" + }, + "npmurl": "" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "Vue": { + "vue2": "y", + "vue3": "y" + }, + "App": { + "app-vue": "y", + "app-nvue": "n" + }, + "H5-mobile": { + "Safari": "u", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "n", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "u", + "联盟": "u" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/custom-tabs/readme.md b/uni_modules/custom-tabs/readme.md new file mode 100644 index 0000000..97d3d95 --- /dev/null +++ b/uni_modules/custom-tabs/readme.md @@ -0,0 +1,149 @@ +- 概要 +- Tips +- 支持的平台 +- 使用示例 +- Tabs Attributes +- Tabs Events +- Tab-pane Attributes +- 关注我,不迷路 + +
+ +#### 概要 + +在做项目的过程中用到了tab切换,本想着去插件市场找一个直接现用,后面发现找到的tab切换并不是我想要的那种使用方式,于是我结合了element-ui中Tabs标签页的方式写了该组件。 + + +
+ +#### Tips + +1. 该插件使用的预编译,需要自行安装scss/sass插件。 +2. 该插件同时兼容了VUE2和VUE3,hbuilderX 最好是更新到较新版本。 +3. 由于组件重构升级,老用户需要更新插件的,需要注意参数,根据下面提供的参数修改即可。 +4. 遵循uni_modules规范插件。 +5. 如果发现组件有bug或者不完善可以留言交流。 +6. uniapp插件git地址:https://gitee.com/my_dear_li_pan/my-uni-modules.git +7. 个人博客地址:https://blog.csdn.net/qq_42961150?spm=1011.2124.3001.5343 + +
+ +#### 支持的平台 +- H5、app-vue、微信小程序、百度小程序等小程序平台。 +- 暂不支持nvue。 +- cli脚手架项目是否可用,暂未测试。 + +
+ +#### 使用示例 +``` + + + +``` + +
+ +#### Tabs Attributes + +参数|说明|类型|是否必填|可选值|默认值 +-|-|-|-|-|-| +type|组件的唯一标识,如果有多个该组件,则值必须不同|string|是|-|- +value|选中选项的索引,从0开始|Number|否|-|0 +animation|切换动画|Boolean|否|true/false|true +duration|切换动画的动画时长,单位ms|Number|否|-|200 +tabSpacing|tab选项的左右间距,单位rpx|Number|否|-|40 +tabCenter|tab选项是否居中显示|Boolean|否|true/false|false +fixed|tab选项固定|Boolean|否|true/false|false +defaultTextStyle|未选中tab选项的样式|Object|否|示例:```:defaultTextStyle="{color:'pink'}"```|- +activeTextStyle|选中后tab选项的样式|Object|否|示例:```:activeTextStyle="{color:'red','font-weight':700}"```|- +activeLineStyle|选中后tab选项下划线的样式|Object|否|示例:```:activeLineStyle="{'background-color':'red',height:'6rpx'}"```|- + +
+ +#### Tabs Events +事件名称|说明|回调参数 +-|-|-| +change|tab 被选中时触发|被选中的标签tab实例 + +
+ +#### Tab-pane Attributes + +参数|说明|类型|是否必填|可选值|默认值 +-|-|-|-|-|-| +label|选项卡标题|String|是|-|- +name|与选项卡绑定值 value 对应的标识符,表示选项卡别名。==注意:== 该值的格式必须和组件上的type配合使用,eg:type="c1",name="c1_"+自定义值|String|是|-|该选项卡在选项卡列表中的顺序值,如第一个选项卡则为'c1_1' + +
+ +**----- 别忘记点赞哟,您的肯定就是对我最大的支持 END -----** + +#### 关注我,不迷路 + +如果任何疑问的可以在评论区留言,还可以加QQ群交流:568984539,加群备注‘地区-名字-技术类型’。 + +更多前端等相关知识可关注我个人博客:https://blog.csdn.net/qq_42961150?spm=1011.2124.3001.5343 + +**个人作品展示:** + +uniapp+vue3.2+unicloud开发微信小程序:**皮皮虎去水印**。 + +关注下方公众号:【**全网免费网盘资源**】、【**美团外卖饿了么天天领红包**】、【**去水印**】。 + +![image](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-bb657efd-fece-483e-a715-5daea480fde8/6e029310-aec8-46e9-9883-1c88dc1925ad.jpg) + + + + + + + + diff --git a/uni_modules/uni-steps/changelog.md b/uni_modules/uni-steps/changelog.md new file mode 100644 index 0000000..cb9d367 --- /dev/null +++ b/uni_modules/uni-steps/changelog.md @@ -0,0 +1,16 @@ +## 1.1.1(2021-11-22) +- 修复 vue3中某些scss变量无法找到的问题 +## 1.1.0(2021-11-19) +- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-steps](https://uniapp.dcloud.io/component/uniui/uni-steps) +## 1.0.8(2021-05-12) +- 新增 项目示例地址 +## 1.0.7(2021-05-06) +- 修复 uni-steps 横向布局时,多行文字高度不合理的 bug +## 1.0.6(2021-04-21) +- 优化 添加依赖 uni-icons, 导入后自动下载依赖 +## 1.0.5(2021-02-05) +- 优化 组件引用关系,通过uni_modules引用组件 + +## 1.0.4(2021-02-05) +- 调整为uni_modules目录规范 diff --git a/uni_modules/uni-steps/components/uni-steps/uni-steps.vue b/uni_modules/uni-steps/components/uni-steps/uni-steps.vue new file mode 100644 index 0000000..a6c8f28 --- /dev/null +++ b/uni_modules/uni-steps/components/uni-steps/uni-steps.vue @@ -0,0 +1,269 @@ + + + + + diff --git a/uni_modules/uni-steps/package.json b/uni_modules/uni-steps/package.json new file mode 100644 index 0000000..c687b40 --- /dev/null +++ b/uni_modules/uni-steps/package.json @@ -0,0 +1,89 @@ +{ + "id": "uni-steps", + "displayName": "uni-steps 步骤条", + "version": "1.1.1", + "description": "步骤条组件,提供横向和纵向两种布局格式。", + "keywords": [ + "uni-ui", + "uniui", + "步骤条", + "时间轴" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, + "dcloudext": { + "category": [ + "前端组件", + "通用组件" + ], + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" + }, + "uni_modules": { + "dependencies": [ + "uni-scss", + "uni-icons" + ], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/uni-steps/readme.md b/uni_modules/uni-steps/readme.md new file mode 100644 index 0000000..da7a4bf --- /dev/null +++ b/uni_modules/uni-steps/readme.md @@ -0,0 +1,13 @@ + + +## Steps 步骤条 +> **组件名:uni-steps** +> 代码块: `uSteps` + + +步骤条,常用于显示进度 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-steps) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 + +