@netang/quasar 0.0.86 → 0.0.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,11 +65,11 @@
65
65
  <div class="col-xs-12 col-sm-6 col-md-3">
66
66
  <q-select
67
67
  class="n-field-fieldset"
68
- label="是否增加来源页面参数"
69
- v-model="formData.addFromPageQuery"
68
+ label="来源页面参数"
69
+ v-model="formData.noFromPageQuery"
70
70
  :options="[
71
- { label: '', value: false },
72
- { label: '', value: true },
71
+ { label: '自动添加', value: false },
72
+ { label: '禁止添加', value: true },
73
73
  ]"
74
74
  map-options
75
75
  emit-value
@@ -450,8 +450,8 @@ export default {
450
450
  selection: '',
451
451
  // 显示类型, 可选 single / multiple / 空(默认显示)
452
452
  show: '',
453
- // 是否增加来源页面参数
454
- addFromPageQuery: false,
453
+ // 禁止添加来源页面参数
454
+ noFromPageQuery: false,
455
455
  // 页面 ID (跳转页面 / 重定向 URL)
456
456
  toPage: '',
457
457
  // 是否固定列
@@ -735,9 +735,9 @@ export default {
735
735
  }
736
736
  }
737
737
 
738
- // 如果增加来源页面参数
739
- if (data.addFromPageQuery) {
740
- obj.addFromPageQuery = true
738
+ // 如果禁止添加来源页面参数
739
+ if (data.noFromPageQuery) {
740
+ obj.noFromPageQuery = true
741
741
  }
742
742
 
743
743
  // 否则为其他
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.0.86",
3
+ "version": "0.0.88",
4
4
  "description": "netang-quasar",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/utils/$power.js CHANGED
@@ -928,10 +928,10 @@ async function request(params) {
928
928
 
929
929
  query = formatQuery(query, true)
930
930
 
931
- // 如果有增加来源页面参数
932
- if ($n_get(o.data, 'addFromPageQuery') === true) {
931
+ // 如果不是禁止添加来源页面参数
932
+ if ($n_get(o.data, 'noFromPageQuery') !== true) {
933
933
  // 来源页面是当前路由的完整路径
934
- query.n_frompage = encodeURIComponent($currentRoute.fullPath)
934
+ query.n_from_page = encodeURIComponent($currentRoute.fullPath)
935
935
  }
936
936
 
937
937
  // 请求前执行
@@ -1105,12 +1105,12 @@ async function request(params) {
1105
1105
  // 如果不是关闭当前页面, 则为关闭窗口并跳转页面
1106
1106
  o.data.requestSuccess.type !== 'close'
1107
1107
  // 如果有来源页面
1108
- && $n_has($route.query, 'n_frompage')
1109
- && $n_isValidString($route.query.n_frompage)
1108
+ && $n_has($route.query, 'n_from_page')
1109
+ && $n_isValidString($route.query.n_from_page)
1110
1110
  ) {
1111
1111
  Object.assign(opts, {
1112
1112
  // 跳转页面地址
1113
- pushPage: decodeURIComponent($route.query.n_frompage),
1113
+ pushPage: decodeURIComponent($route.query.n_from_page),
1114
1114
  // 是否跳转并刷新页面
1115
1115
  isPushRefresh: o.data.requestSuccess.type === 'closePushRefresh',
1116
1116
  })