temp
This commit is contained in:
parent
7691a8f66f
commit
064254f3af
@ -4,7 +4,7 @@ import path from 'path';
|
||||
|
||||
|
||||
let pattern = new RegExp(/s(eason)?(\d+)/);
|
||||
let eNumPatternArr = [new RegExp(/e(\d+)/), new RegExp(/\((\d+)\)/), new RegExp(/((\d+))/), new RegExp(/\.(\d+)\./), new RegExp(/-(\d+)/), new RegExp(/(\d+)/)];
|
||||
let eNumPatternArr = [new RegExp(/e(\d+)/), new RegExp(/\((\d+)\)/), new RegExp(/\[(\d+)\]/), new RegExp(/((\d+))/), new RegExp(/\.(\d+)/), new RegExp(/-(\d+)/), new RegExp(/(\d+)/)];
|
||||
let resolutionPattern = new RegExp(/(\d{3,}[pP])/);
|
||||
let resolutionArr = ['1k', '1K', '2k', '2K', '4k', '4K', '8k', '8K'];
|
||||
let charSet = new Set([' ', '[', '.', '(', '(']);
|
||||
|
@ -2,6 +2,7 @@
|
||||
<div class="app">
|
||||
<el-menu :default-active="activeIndex" mode="horizontal" background-color="#545c64" text-color="#fff" active-text-color="#ffd04b" router>
|
||||
<el-menu-item index="/">重命名</el-menu-item>
|
||||
<el-menu-item index="/auto">自动化</el-menu-item>
|
||||
<el-sub-menu index="/download">
|
||||
<template #title>bt下载</template>
|
||||
<el-menu-item index="/download/center">下载中心</el-menu-item>
|
||||
@ -22,13 +23,19 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
version: "1.2",
|
||||
activeIndex: this.$route.path,
|
||||
activeIndex: location.pathname,
|
||||
};
|
||||
},
|
||||
async created() {
|
||||
let token = localStorage.getItem("token");
|
||||
window.token = token;
|
||||
await httpUtil.get("/file/isWindows");
|
||||
console.log(this.$route);
|
||||
console.log(this.activeIndex);
|
||||
},
|
||||
async mounted() {
|
||||
console.log(this.$route);
|
||||
console.log(location);
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
@ -7,6 +7,10 @@ const routes = [
|
||||
path: "/",
|
||||
name: "Home",
|
||||
component: Home,
|
||||
}, {
|
||||
path: "/auto",
|
||||
name: "Auto",
|
||||
component: () => import("@/views/auto/index"),
|
||||
}, {
|
||||
path: "/download/config",
|
||||
name: "downloadConfig",
|
||||
|
53
openRenamerFront/src/views/auto/index.vue
Normal file
53
openRenamerFront/src/views/auto/index.vue
Normal file
@ -0,0 +1,53 @@
|
||||
<template>
|
||||
<div>自动化</div>
|
||||
<div>
|
||||
<el-button type="primary" @click="submit"> 保存自动化配置 </el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, reactive, onMounted, computed } from "vue";
|
||||
import http from "@/utils/HttpUtil";
|
||||
//表单
|
||||
const qbBody = reactive({
|
||||
address: "",
|
||||
username: "",
|
||||
password: "",
|
||||
});
|
||||
//配置中心数据
|
||||
let downloadConfig = reactive({});
|
||||
//qb是否可访问
|
||||
let qbReach = ref(true);
|
||||
let editInfo = ref(false);
|
||||
|
||||
const qbInfo = computed(() => {
|
||||
if (downloadConfig.qbAddress) {
|
||||
return downloadConfig.qbAddress + " 用户名:" + downloadConfig.qbUsername;
|
||||
} else {
|
||||
return "尚未配置";
|
||||
}
|
||||
});
|
||||
|
||||
onMounted(async () => {
|
||||
downloadConfig = reactive(await http.post("/config/multCode", null, ["qbAddress", "qbUsername", "qbPassword"]));
|
||||
});
|
||||
|
||||
async function submit() {
|
||||
let res = await http.post("");
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.item {
|
||||
display: flex;
|
||||
text-align: left;
|
||||
padding-bottom: 0.5em;
|
||||
.left {
|
||||
width: 6em;
|
||||
font-weight: 600;
|
||||
}
|
||||
.right {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -2,14 +2,16 @@
|
||||
<div>配置qb</div>
|
||||
<div class="item">
|
||||
<div class="left">qb信息</div>
|
||||
<div class="right">{{ qbInfo }}</div>
|
||||
<div class="right">{{ qbInfo }}<el-button @click="editInfo = true">编辑</el-button></div>
|
||||
</div>
|
||||
<el-form v-if="editInfo" :model="qbBody" label-width="4em">
|
||||
<el-form-item label="qb地址"><el-input type="text" v-model="qbBody.address" placeholder="例如:http://192.168.1.4:8080" /></el-form-item>
|
||||
<el-form-item label="用户名"><el-input type="text" v-model="qbBody.username" placeholder="qb访问用户名" /></el-form-item>
|
||||
<el-form-item label="密码"><el-input type="password" v-model="qbBody.password" placeholder="qb访问密码" /></el-form-item>
|
||||
<div style="text-align: center">
|
||||
<el-button type="" @click="editInfo = false">取消</el-button>
|
||||
<el-button type="primary" @click="submitQb">提交</el-button>
|
||||
</div>
|
||||
<el-form v-if="showHostConfig" :model="qbBody" label-width="4em">
|
||||
<div v-if="qbReach" style="text-align: center">qb实例不可访问,请重新配置</div>
|
||||
<el-form-item label="qb地址"><el-input type="text" v-model="qbbody.address" placeholder="例如:http://192.168.1.4:8080" /></el-form-item>
|
||||
<el-form-item label="用户名"><el-input type="text" v-model="qbbody.username" placeholder="qb访问用户名" /></el-form-item>
|
||||
<el-form-item label="密码"><el-input type="password" v-model="qbbody.password" placeholder="qb访问密码" /></el-form-item>
|
||||
<div style="text-align: center"><el-button type="primary" @click="submitQb">提交</el-button></div>
|
||||
</el-form>
|
||||
</template>
|
||||
|
||||
@ -26,6 +28,7 @@ const qbBody = reactive({
|
||||
let downloadConfig = reactive({});
|
||||
//qb是否可访问
|
||||
let qbReach = ref(true);
|
||||
let editInfo = ref(false);
|
||||
|
||||
const qbInfo = computed(() => {
|
||||
if (downloadConfig.qbAddress) {
|
||||
@ -34,16 +37,13 @@ const qbInfo = computed(() => {
|
||||
return "尚未配置";
|
||||
}
|
||||
});
|
||||
const showHostConfig = computed(() => {
|
||||
return !downloadConfig.qbAddress || !qbReach;
|
||||
});
|
||||
|
||||
onMounted(async () => {
|
||||
downloadConfig = reactive(await http.post("/config/multCode", null, ["qbAddress", "qbUsername", "qbPassword"]));
|
||||
});
|
||||
|
||||
async function submitQb() {
|
||||
let res = await http.post('')
|
||||
let res = await http.post("");
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user