5月31
如将10.0.1.155的/u01/attachments 目录挂载到10.0.1.156对应的/u01/attachments 目录下。
使用以下命令:
mount 10.0.1.155:/u01/attachments /u01/attachments
使用以下命令:
mount 10.0.1.155:/u01/attachments /u01/attachments
5月29
一、在项目根目录下安装
npm install --save js-base64
npm install --save js-md5
1
2
二、在项目文件中引入
import md5 from 'js-md5';
let Base64 = require('js-base64').Base64;
1
2
3
三、在项目文件中使用
base64
Base64.encode('heckjj.com'); // aGVja2pqLmNvbQ==
Base64.encode( '大将军'); // 5aSn5bCG5Yab+
Base64.encodeURI('大将军'); // 5aSn5bCG5Yab-
Base64.decode(aGVja2pqLmNvbQ=='); // heckjj.com
Base64.decode('5aSn5bCG5Yab+'); // 大将军
// note .decodeURI() is unnecessary since it accepts both flavors
Base64.decode('5aSn5bCG5Yab-'); // 大将军
md5
md5(''); // d41d8cd98f00b204e9800998ecf8427e
md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6
md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0
// It also supports UTF-8 encoding
md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07
// It also supports byte `Array`, `Uint8Array`, `ArrayBuffer`
md5([]); // d41d8cd98f00b204e9800998ecf8427e
md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e
// Different output
md5(''); // d41d8cd98f00b204e9800998ecf8427e
md5.hex(''); // d41d8cd98f00b204e9800998ecf8427e
md5.array(''); // [212, 29, 140, 217, 143, 0, 178, 4, 233, 128, 9, 152, 236, 248, 66, 126]
md5.digest(''); // [212, 29, 140, 217, 143, 0, 178, 4, 233, 128, 9, 152, 236, 248, 66, 126]
md5.arrayBuffer(''); // ArrayBuffer
md5.buffer(''); // ArrayBuffer, deprecated, This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
npm install --save js-base64
npm install --save js-md5
1
2
二、在项目文件中引入
import md5 from 'js-md5';
let Base64 = require('js-base64').Base64;
1
2
3
三、在项目文件中使用
base64
Base64.encode('heckjj.com'); // aGVja2pqLmNvbQ==
Base64.encode( '大将军'); // 5aSn5bCG5Yab+
Base64.encodeURI('大将军'); // 5aSn5bCG5Yab-
Base64.decode(aGVja2pqLmNvbQ=='); // heckjj.com
Base64.decode('5aSn5bCG5Yab+'); // 大将军
// note .decodeURI() is unnecessary since it accepts both flavors
Base64.decode('5aSn5bCG5Yab-'); // 大将军
md5
md5(''); // d41d8cd98f00b204e9800998ecf8427e
md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6
md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0
// It also supports UTF-8 encoding
md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07
// It also supports byte `Array`, `Uint8Array`, `ArrayBuffer`
md5([]); // d41d8cd98f00b204e9800998ecf8427e
md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e
// Different output
md5(''); // d41d8cd98f00b204e9800998ecf8427e
md5.hex(''); // d41d8cd98f00b204e9800998ecf8427e
md5.array(''); // [212, 29, 140, 217, 143, 0, 178, 4, 233, 128, 9, 152, 236, 248, 66, 126]
md5.digest(''); // [212, 29, 140, 217, 143, 0, 178, 4, 233, 128, 9, 152, 236, 248, 66, 126]
md5.arrayBuffer(''); // ArrayBuffer
md5.buffer(''); // ArrayBuffer, deprecated, This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
5月28
Element UI Upload 上传文件上传文件一次 ,不论是上传成功之后修改文件再上传还是上传失败重新上传,再次点击上传均无反应。
方法一:利用 :on-success
ref=‘upload’
:on-success=“handleSuccess”
注意: ref='upload 一定要加上ref 不然不起作用
<el-upload
class="upload-demo"
action=""
:limit="1"
:show-file-list="false"
:http-request="uploadLogo"
ref='upload'
:on-success="handleSuccess"
>
<el-button style="width: 150px; height: 35px;line-height: 0;margin-left: 20px" size="medium"
type="primary">
{{$t('StaffManage.bulkImport')}}
</el-button>
</el-upload>
handleSuccess(res, file) {
this.$refs.upload.clearFiles(); //上传成功之后清除历史记录
// this.tableReload()
},
方法二:利用if el-upload让移除文档流
<el-upload
v-if="!form.contractFileUrl"
class="upload-demo"
action=""
:limit="1"
:show-file-list="false"
:http-request="uploadLogo"
>
<el-button size="medium" type="primary">{{$t('AttendanceInformation.ClickUpload')}}</el-button>
</el-upload>
uploadLogo(param) {
let _this = this
_this.form.contractFileUrl = '1'
let formData = new FormData();
formData.append("file", param.file);
_this.$send.post({url: '/contract/upload', data: formData}, res => {
if (res.code === 10000) {
_this.isdisabled = true
_this.form.contractFileUrl = res.data.url
_this.form.contractFileId = res.data.id
} else {
_this.form.contractFileUrl = null
_this.form.contractFileId = null
_this.$msg.error(res.message)
}
})
},
方法一:利用 :on-success
ref=‘upload’
:on-success=“handleSuccess”
注意: ref='upload 一定要加上ref 不然不起作用
<el-upload
class="upload-demo"
action=""
:limit="1"
:show-file-list="false"
:http-request="uploadLogo"
ref='upload'
:on-success="handleSuccess"
>
<el-button style="width: 150px; height: 35px;line-height: 0;margin-left: 20px" size="medium"
type="primary">
{{$t('StaffManage.bulkImport')}}
</el-button>
</el-upload>
handleSuccess(res, file) {
this.$refs.upload.clearFiles(); //上传成功之后清除历史记录
// this.tableReload()
},
方法二:利用if el-upload让移除文档流
<el-upload
v-if="!form.contractFileUrl"
class="upload-demo"
action=""
:limit="1"
:show-file-list="false"
:http-request="uploadLogo"
>
<el-button size="medium" type="primary">{{$t('AttendanceInformation.ClickUpload')}}</el-button>
</el-upload>
uploadLogo(param) {
let _this = this
_this.form.contractFileUrl = '1'
let formData = new FormData();
formData.append("file", param.file);
_this.$send.post({url: '/contract/upload', data: formData}, res => {
if (res.code === 10000) {
_this.isdisabled = true
_this.form.contractFileUrl = res.data.url
_this.form.contractFileId = res.data.id
} else {
_this.form.contractFileUrl = null
_this.form.contractFileId = null
_this.$msg.error(res.message)
}
})
},




