lshcom 1.0.20 → 1.0.21

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lshcom",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "files": [
5
5
  "src/assets/*",
6
6
  "src/common/*",
@@ -130,6 +130,16 @@ const global = {
130
130
  sessionStorage.removeItem(key);
131
131
  }
132
132
  },
133
+ // 复制文本
134
+ copy(val, msg = '复制成功') {
135
+ const textarea = document.createElement('textarea');
136
+ textarea.value = val;
137
+ document.body.appendChild(textarea);
138
+ textarea.select();
139
+ document.execCommand('copy');
140
+ document.body.removeChild(textarea);
141
+ if(msg) Message.success(msg)
142
+ },
133
143
  // 避免重复调接口
134
144
  postFlag: {
135
145
  dataDictionarys:{},
@@ -13,7 +13,7 @@
13
13
  </b-col>
14
14
  <b-col>
15
15
  <b-form-fieldset horizontal label="制卡日期" :label-cols="4" class="text-right">
16
- <EleDatePicker ref="inDateOrder" type="daterange" valueFormat="yyyy-MM-dd" @change="val => {query.makeDateStart = val[0];query.makeDateEnd = val[1]}" />
16
+ <EleDatePicker ref="makeDate" type="daterange" valueFormat="yyyy-MM-dd" @change="val => {query.makeDateStart = val[0];query.makeDateEnd = val[1]}" />
17
17
  </b-form-fieldset>
18
18
  </b-col>
19
19
  </b-row>
@@ -53,6 +53,7 @@
53
53
  methods: {
54
54
  reset(){
55
55
  this.query = JSON.parse(JSON.stringify(this.queryBase))
56
+ this.$refs.makeDate.change()
56
57
  },
57
58
  confirm(){
58
59
  if(!this.$refs.EleTable.radioValue) return this.$message('请选择一条数据')