|
|
|
@ -933,7 +933,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 下载文件 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="上传文件"
|
|
|
|
|
title="拉取文件"
|
|
|
|
|
:visible.sync="pullFileVisible"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
width="30%"
|
|
|
|
@ -960,10 +960,10 @@
|
|
|
|
|
<!-- 上传文件base64 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
class="pushBoxDialog"
|
|
|
|
|
title="下发文件"
|
|
|
|
|
title="推送文件"
|
|
|
|
|
:visible.sync="pushFileVisible"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
width="454px"
|
|
|
|
|
width="504px"
|
|
|
|
|
>
|
|
|
|
|
<el-form
|
|
|
|
|
:model="pushFileForm"
|
|
|
|
@ -973,6 +973,11 @@
|
|
|
|
|
<el-form-item label="文件路径:" prop="name">
|
|
|
|
|
<el-input v-model="pushFileForm.name"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<ul>
|
|
|
|
|
<li v-for="(item, index) in pathOption" @click="handlePath(item)">
|
|
|
|
|
{{ item.desc }}{{ item.name }}
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<el-form-item label="文件上传:">
|
|
|
|
|
<el-upload
|
|
|
|
|
class="upload-demo"
|
|
|
|
@ -994,6 +999,52 @@
|
|
|
|
|
<el-button type="primary" @click="handlePush">确 定</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<!-- 上传大文件 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
class="configDialogBox"
|
|
|
|
|
title="请选择配置文件"
|
|
|
|
|
:visible.sync="configVisible"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
width="30%"
|
|
|
|
|
>
|
|
|
|
|
<el-form :model="configform" :rules="configRules" ref="configRuleForm">
|
|
|
|
|
<el-form-item label="文件路径:" prop="pathVal">
|
|
|
|
|
<el-input v-model="configform.pathVal"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<ul>
|
|
|
|
|
<li
|
|
|
|
|
v-for="(item, index) in bigpathOption"
|
|
|
|
|
@click="handlebigPath(item)"
|
|
|
|
|
>
|
|
|
|
|
{{ item.desc }}{{ item.name }}
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<el-form-item label="文件名称" prop="upVal">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="configform.upVal"
|
|
|
|
|
placeholder="请选择文件"
|
|
|
|
|
@change="selectChangedconfig"
|
|
|
|
|
filterable
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in configOptions"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.fileName"
|
|
|
|
|
:value="item.path"
|
|
|
|
|
:title="item.title"
|
|
|
|
|
>
|
|
|
|
|
{{ item.fileName }}
|
|
|
|
|
<i class="title">({{ item.title }}</i
|
|
|
|
|
><i class="time">{{ item.createTime }})</i>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="configVisible = false">取 消</el-button>
|
|
|
|
|
<el-button type="primary" @click="handleconfig">确 定</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@ -1062,6 +1113,7 @@ export default {
|
|
|
|
|
del_file: "删除文件",
|
|
|
|
|
pull_files: "拉取文件",
|
|
|
|
|
push_file: "推送文件",
|
|
|
|
|
dl_file: "推送大文件",
|
|
|
|
|
},
|
|
|
|
|
taskdrawer: false,
|
|
|
|
|
drawer: false,
|
|
|
|
@ -1190,6 +1242,30 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
selectUpObjOta: {},
|
|
|
|
|
upOptionsOta: [],
|
|
|
|
|
//上传大文件
|
|
|
|
|
//升级
|
|
|
|
|
configVisible: false,
|
|
|
|
|
configform: {
|
|
|
|
|
upVal: "",
|
|
|
|
|
pathVal: "",
|
|
|
|
|
},
|
|
|
|
|
bigpathOption: [
|
|
|
|
|
{
|
|
|
|
|
name: "/sdcard/com.xypower.mpapp/data/recog/rp.dat",
|
|
|
|
|
desc: "AI识别文件",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "/sdcard/com.xypower.mpapp/data/recog/rb.dat",
|
|
|
|
|
desc: "AI识别文件",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
selectconfigObj: {},
|
|
|
|
|
configRules: {
|
|
|
|
|
upVal: [
|
|
|
|
|
{ required: true, message: "请选择升级文件", trigger: "change" },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
configOptions: [],
|
|
|
|
|
//设置frpc服务器
|
|
|
|
|
frpcVisible: false,
|
|
|
|
|
frpcform: {
|
|
|
|
@ -1286,6 +1362,48 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
pathOption: [
|
|
|
|
|
{
|
|
|
|
|
name: "/sdcard/com.xypower.mpapp/data/App.json",
|
|
|
|
|
desc: "MpAPP全局配置",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "/sdcard/com.xypower.mpapp/data/recog.json",
|
|
|
|
|
desc: "AI全局配置",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "/sdcard/com.xypower.mpapp/data/bc.json",
|
|
|
|
|
desc: "电压电量配置",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "/sdcard/com.xypower.mpapp/data/channels/1.json",
|
|
|
|
|
desc: "通道拍照配置",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "/sdcard/com.xypower.mpapp/data/channels/2.json",
|
|
|
|
|
desc: "通道拍照配置",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "/sdcard/com.xypower.mpapp/data/imgparams/1",
|
|
|
|
|
desc: "图像参数配置",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "/sdcard/com.xypower.mpapp/data/imgparams/2",
|
|
|
|
|
desc: "图像参数配置",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "/sdcard/com.xypower.mpapp/data/videoparams/1",
|
|
|
|
|
desc: "短视频参数配置",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "/sdcard/com.xypower.mpapp/data/videoparams/2",
|
|
|
|
|
desc: "短视频参数配置",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "/sdcard/com.xypower.mpapp/data/videoparams/78",
|
|
|
|
|
desc: "采样配置",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
//上传文件base64
|
|
|
|
|
pushFileVisible: false,
|
|
|
|
|
fileList: [],
|
|
|
|
@ -1783,6 +1901,12 @@ export default {
|
|
|
|
|
console.log("下载文件base64");
|
|
|
|
|
this.pushFileVisible = true;
|
|
|
|
|
return;
|
|
|
|
|
case 15:
|
|
|
|
|
console.log("推送大文件");
|
|
|
|
|
|
|
|
|
|
this.configVisible = true;
|
|
|
|
|
this.getconfigList();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//执行操作
|
|
|
|
@ -1880,6 +2004,7 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
console.log(this.selectUpObj);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//升级确定阿
|
|
|
|
|
handleupgradation() {
|
|
|
|
|
this.$refs.upgradationRuleForm.validate((valid) => {
|
|
|
|
@ -1980,7 +2105,10 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handlePath(row) {
|
|
|
|
|
console.log(row);
|
|
|
|
|
this.pushFileForm.name = row.name;
|
|
|
|
|
},
|
|
|
|
|
//上传文件
|
|
|
|
|
beforeUpload(file) {
|
|
|
|
|
console.log(file);
|
|
|
|
@ -2027,6 +2155,43 @@ export default {
|
|
|
|
|
handlePush() {
|
|
|
|
|
this.$refs.upload.submit();
|
|
|
|
|
},
|
|
|
|
|
//上传大文件
|
|
|
|
|
selectChangedconfig(val) {
|
|
|
|
|
console.log(val);
|
|
|
|
|
// 找到选中项的整个object对象
|
|
|
|
|
this.selectconfigObj = this.configOptions.find((item) => {
|
|
|
|
|
return item["path"] === val;
|
|
|
|
|
});
|
|
|
|
|
console.log(this.selectconfigObj);
|
|
|
|
|
},
|
|
|
|
|
getconfigList() {
|
|
|
|
|
upgradeListApi({ type: 3 })
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.configOptions = res.data;
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
|
handlebigPath(row) {
|
|
|
|
|
console.log(row);
|
|
|
|
|
this.configform.pathVal = row.name;
|
|
|
|
|
},
|
|
|
|
|
handleconfig() {
|
|
|
|
|
this.$refs.configRuleForm.validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
var params = {
|
|
|
|
|
action: "dl_file",
|
|
|
|
|
url: this.configform.upVal,
|
|
|
|
|
path: this.configform.pathVal,
|
|
|
|
|
md5: this.selectconfigObj.md5,
|
|
|
|
|
termIds: this.idArray,
|
|
|
|
|
};
|
|
|
|
|
console.log(params);
|
|
|
|
|
this.changeIssue(params);
|
|
|
|
|
this.configVisible = false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
saveLocalStorage() {
|
|
|
|
|
localStorage.setItem("gycheck", this.gycheck);
|
|
|
|
@ -2523,7 +2688,18 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
.pushBoxDialog {
|
|
|
|
|
.el-dialog__body {
|
|
|
|
|
height: 172px;
|
|
|
|
|
height: auto;
|
|
|
|
|
ul {
|
|
|
|
|
li {
|
|
|
|
|
list-style: none;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: #b9e2dd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.upload-demo {
|
|
|
|
|
position: absolute;
|
|
|
|
@ -2556,6 +2732,20 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.configDialogBox {
|
|
|
|
|
ul {
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
li {
|
|
|
|
|
list-style: none;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: #b9e2dd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.contenBoxMsg {
|
|
|
|
|
p {
|
|
|
|
|