New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zhangqingcq/plug-r-qw

Package Overview
Dependencies
Maintainers
1
Versions
501
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zhangqingcq/plug-r-qw - npm Package Compare versions

Comparing version 1.0.72 to 1.0.73

node-serve/data/formR.js

7

package.json
{
"name": "@zhangqingcq/plug-r-qw",
"version": "1.0.72",
"version": "1.0.73",
"description": "this is a collection fo plug-in developed when I was in qw",

@@ -8,4 +8,6 @@ "main": "/lib/plugRQw.umd.min.js",

"serve": "vue-cli-service serve",
"example": "npm run start-node-js-server && npm run serve",
"build": "vue-cli-service build",
"lib": "vue-cli-service build --target lib --name plugRQw --dest lib src/index.js && gulp"
"lib": "vue-cli-service build --target lib --name plugRQw --dest lib src/index.js && gulp",
"node-serve": "node node-serve/index.js"
},

@@ -70,2 +72,3 @@ "repository": {

"vue-amap": "^0.5.10",
"vue-json-viewer": "^2.2.14",
"vue-router": "^3.0.3",

@@ -72,0 +75,0 @@ "vuex": "^3.0.1",

@@ -11,3 +11,3 @@ ## alCascaderMC

* searchable: 布尔对象,可搜索,默认:`true`
* filterable: 布尔对象,可搜索,默认:`true`

@@ -14,0 +14,0 @@ * placeholder: 字符串,占位符,默认:`'请选择'`

@@ -56,2 +56,4 @@ ## checkboxTree

* inlineLeaf 布尔对象,叶子节点为行内模式,横向排列,默认:`false`
* disabled 布尔对象,禁用整颗树的checkbox选择功能

@@ -58,0 +60,0 @@ ### 事件

@@ -7,7 +7,7 @@ ## uploadGroup

* url: 字符串,文件上传地址(非本地上传时),如:`http://myfileurl.com/flie`
* url: 字符串,文件上传地址(远程上传时),如:`http://myfileurl.com/flie`
* data: 对象,文件上传接口其他参数(非本地上传时),如:`{appId: 0,moduleId: 0,typeId: 0}`
* data: 对象,文件上传接口其他参数(远程上传时),如:`{appId: 0,moduleId: 0,typeId: 0}`
* manualUpload: 布尔类型,是否开启本地上传模式,默认false,该模式适合需要通过该组件获取到文件对象的集合(v-model),然后自己处理上传到服务器的逻辑的情况。
* manualUpload: 布尔类型,是否开启本地上传模式,默认false(远程上传),给该字段赋值`true`时开启本地上传,该模式适合需要通过该组件获取到文件对象的集合(v-model),然后自己处理上传到服务器的逻辑的情况。

@@ -34,2 +34,31 @@ * maxSize: 正数,单个文件大小限制,默认0,不限制

### 注意
* 如果要使用非本地上传模式(文件直接上传到服务器),因为本组件该模式是定制化开发,接口数据格式限定死了,默认用的私有地址,只在特定环境有效,如果需要在其他接口数据格式下使用该组件,推荐使用本地模式,然后自己处理上传到服务器的逻辑,或者使用iview的upload组件
* 如果要使用远程上传模式(文件直接上传到服务器),因为本组件该模式是定制化开发,接口数据格式限定死了,默认用的私有地址,只在特定环境有效,如果需要在其他接口数据格式下使用该组件,推荐使用本地模式,然后自己处理上传到服务器的逻辑,或者使用iview的upload组件
* 如果实在想用远程上传模式,文件上传接口返回数据格式需如下:
```
{
code:0,/*表示上传成功*/
data:[
{
id:XXX,
mimeType:XXX/*文件类型,对应file对象的type,如:image/jpeg*/
}
]
}
```
* 文件下载接口需为`url+'/'+id+'/download'`,其中url为文件上传地址,id为文件上传成功接口返回的文件id
* 文件信息获取地址为`url+'/'+id`,用于在界面上根据id反显文件,返回数据格式需如下:
```
{
data:{
returnValue:[
{
id:XXX,
name:XXX,
mimeType:XXX/*文件类型,对应file对象的type,如:image/jpeg*/
}
]
}
}
```

@@ -12,3 +12,3 @@ import Hello from "./components/hello.vue"

import selectInput from "./components/selectInput/selectInput.vue"
import orgCascader from "./components/orgCascader/orgCascader.vue"
import asyncCascader from "./components/asyncCascader/asyncCascader.vue"
import editor from "./components/editor/editor.vue"

@@ -21,2 +21,3 @@ import alCascaderMC from "./components/alCascaderMC/alCascaderMC.vue"

import headerBt from "./components/headerBt/headerBt.vue"
import formR from "./components/formR/formR.vue"
import messageBox from './methods/messageBox.js'

@@ -29,2 +30,3 @@ import $swal from './windowMethods/swal.js'

import iviewArea from 'iview-area'
import JsonView from 'vue-json-viewer'
import {

@@ -50,3 +52,3 @@ myTypeof, toHump, toLine, trimObj, clearObj, htmlEncode, htmlDecode, getFileSrc, getFileTypeByName, isImgByFile,

selectInput,
orgCascader,
asyncCascader,
editor,

@@ -59,2 +61,3 @@ alCascaderMC,

headerBt,
formR,
}

@@ -112,2 +115,3 @@

Vue.use(iviewArea)
Vue.use(JsonView)

@@ -114,0 +118,0 @@ Object.keys(components).forEach(key => {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc