Compare commits
11 Commits
027f9656e0
...
master
Author | SHA1 | Date | |
---|---|---|---|
b545987d9e | |||
0293c75d5d | |||
898b2d67d0 | |||
7ad15d207d | |||
4ab8ad4edc | |||
a1d6278ec6 | |||
71d42d7fa0 | |||
b936473423 | |||
dd8556b69f | |||
36ab5b9c42 | |||
8d3acf0839 |
@ -8,6 +8,12 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||||
<link rel="icon" href="/favicon.ico">
|
<link rel="icon" href="/favicon.ico">
|
||||||
<title>若依管理系统</title>
|
<title>若依管理系统</title>
|
||||||
|
<script type="text/javascript">
|
||||||
|
window._AMapSecurityConfig = {
|
||||||
|
securityJsCode: 'd9ded0c99c2545c9feb200da26b29fbf',
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=7891f1238368a895ff1967c79643102d"></script>
|
||||||
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
|
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
|
||||||
<style>
|
<style>
|
||||||
html,
|
html,
|
||||||
|
9
src/api/file/file.js
Normal file
9
src/api/file/file.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
export function uploadFile(data) {
|
||||||
|
return request({
|
||||||
|
url: '/common/upload',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
@ -53,3 +53,11 @@ export function delDept(deptId) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询部门下拉树结构
|
||||||
|
export function deptTreeSelect() {
|
||||||
|
return request({
|
||||||
|
url: '/system/dept/deptTree',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
@ -108,12 +108,15 @@ export function updateUserPwd(oldPassword, newPassword) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 用户头像上传
|
// 用户头像上传
|
||||||
export function uploadAvatar(data) {
|
export function uploadAvatar(url) {
|
||||||
|
const data = {
|
||||||
|
url
|
||||||
|
}
|
||||||
return request({
|
return request({
|
||||||
url: "/system/user/profile/avatar",
|
url: '/system/user/profile/uploadAvatar',
|
||||||
method: "post",
|
method: 'put',
|
||||||
data: data,
|
params: data
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询授权角色
|
// 查询授权角色
|
||||||
|
@ -81,8 +81,6 @@ function initModeler(modelerArgv) {
|
|||||||
}, 10);
|
}, 10);
|
||||||
}
|
}
|
||||||
function handlerEvent(eventName) {
|
function handlerEvent(eventName) {
|
||||||
console.log(eventName);
|
|
||||||
|
|
||||||
if (eventName === "connection-added") {
|
if (eventName === "connection-added") {
|
||||||
// 设置结束节点的默认名称
|
// 设置结束节点的默认名称
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
|
@ -184,7 +184,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="">
|
<script setup name="ProcessViewer">
|
||||||
import "@/plugins/package/theme/index.scss";
|
import "@/plugins/package/theme/index.scss";
|
||||||
import { parseTime } from "@/utils/ruoyi";
|
import { parseTime } from "@/utils/ruoyi";
|
||||||
import BpmnViewer from "bpmn-js/lib/Viewer";
|
import BpmnViewer from "bpmn-js/lib/Viewer";
|
||||||
@ -362,8 +362,10 @@ function setProcessStatus(processNodeInfoArgv) {
|
|||||||
if (Array.isArray(finishedSequenceFlowSet)) {
|
if (Array.isArray(finishedSequenceFlowSet)) {
|
||||||
finishedSequenceFlowSet.forEach((item) => {
|
finishedSequenceFlowSet.forEach((item) => {
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
canvas.addMarker(item, "success");
|
// FIXME: TODO:
|
||||||
let element = elementRegistry.get(item);
|
let element = elementRegistry.get(item);
|
||||||
|
if (!element) return;
|
||||||
|
canvas.addMarker(item, "success");
|
||||||
const conditionExpression = element.businessObject.conditionExpression;
|
const conditionExpression = element.businessObject.conditionExpression;
|
||||||
if (conditionExpression) {
|
if (conditionExpression) {
|
||||||
canvas.addMarker(item, "condition-expression");
|
canvas.addMarker(item, "condition-expression");
|
||||||
|
@ -426,13 +426,15 @@ function onSave() {
|
|||||||
if (bpmnModeler) {
|
if (bpmnModeler) {
|
||||||
const elementRegistry = bpmnModeler.get("elementRegistry");
|
const elementRegistry = bpmnModeler.get("elementRegistry");
|
||||||
const userTaskEle = elementRegistry?.find(
|
const userTaskEle = elementRegistry?.find(
|
||||||
(el) => el.type === "bpmn:UserTask"
|
(el) => el.type === "bpmn:UserTask" && !el.businessObject.name
|
||||||
);
|
);
|
||||||
if (!userTaskEle.businessObject.name) {
|
if (userTaskEle) {
|
||||||
console.log(userTaskEle.businessObject.name);
|
|
||||||
ElMessage.warning("用户任务节点名称必填");
|
ElMessage.warning("用户任务节点名称必填");
|
||||||
const EventBus = bpmnModeler.get("eventBus");
|
const EventBus = bpmnModeler.get("eventBus");
|
||||||
EventBus.fire("element.click", { element: userTaskEle });
|
const activeEle = window?.bpmnInstances?.bpmnElement;
|
||||||
|
if (activeEle.id != userTaskEle.id) {
|
||||||
|
EventBus.fire("element.click", { element: userTaskEle });
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,19 +49,17 @@ export default function ContextPadProvider(
|
|||||||
}
|
}
|
||||||
|
|
||||||
eventBus.on("create.end", 250, function (event) {
|
eventBus.on("create.end", 250, function (event) {
|
||||||
console.log(
|
// TODO:设置通过左面板创建的开始、结束节点的默认名称
|
||||||
"create.end,contentPadProvider.js",
|
|
||||||
window.bpmnInstances.bpmnElement
|
|
||||||
);
|
|
||||||
|
|
||||||
// TODO:设置开始节点默认名称
|
|
||||||
const bpmnElement = window.bpmnInstances.bpmnElement;
|
const bpmnElement = window.bpmnInstances.bpmnElement;
|
||||||
if (bpmnElement.type === "bpmn:StartEvent") {
|
if (bpmnElement.type === "bpmn:StartEvent") {
|
||||||
window.bpmnInstances.modeling.updateProperties(bpmnElement, {
|
window.bpmnInstances.modeling.updateProperties(bpmnElement, {
|
||||||
name: "开始",
|
name: "开始",
|
||||||
});
|
});
|
||||||
|
} else if (bpmnElement.type === "bpmn:EndEvent") {
|
||||||
|
window.bpmnInstances.modeling.updateProperties(bpmnElement, {
|
||||||
|
name: "结束",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var context = event.context,
|
var context = event.context,
|
||||||
shape = context.shape;
|
shape = context.shape;
|
||||||
|
|
||||||
|
@ -14,13 +14,11 @@ export function initListenerForm(listener) {
|
|||||||
if (listener.eventDefinitions.length) {
|
if (listener.eventDefinitions.length) {
|
||||||
let k = "";
|
let k = "";
|
||||||
for (let key in listener.eventDefinitions[0]) {
|
for (let key in listener.eventDefinitions[0]) {
|
||||||
console.log(listener.eventDefinitions, key);
|
|
||||||
if (key.indexOf("time") !== -1) {
|
if (key.indexOf("time") !== -1) {
|
||||||
k = key;
|
k = key;
|
||||||
self.eventDefinitionType = key.replace("time", "").toLowerCase();
|
self.eventDefinitionType = key.replace("time", "").toLowerCase();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(k);
|
|
||||||
self.eventTimeDefinitions = listener.eventDefinitions[0][k].body;
|
self.eventTimeDefinitions = listener.eventDefinitions[0][k].body;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -28,7 +26,6 @@ export function initListenerForm(listener) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function initListenerType(listener) {
|
export function initListenerType(listener) {
|
||||||
// debugger;
|
|
||||||
let listenerType;
|
let listenerType;
|
||||||
if (listener.class) listenerType = "classListener";
|
if (listener.class) listenerType = "classListener";
|
||||||
if (listener.expression) listenerType = "expressionListener";
|
if (listener.expression) listenerType = "expressionListener";
|
||||||
|
@ -181,10 +181,10 @@
|
|||||||
import { listUser, deptTreeSelect } from "@/api/system/user";
|
import { listUser, deptTreeSelect } from "@/api/system/user";
|
||||||
import { listRole } from "@/api/system/role";
|
import { listRole } from "@/api/system/role";
|
||||||
import { addDateRange } from "@/utils/ruoyi";
|
import { addDateRange } from "@/utils/ruoyi";
|
||||||
import TreeSelect from "@/components/TreeSelect";
|
// import TreeSelect from "@/components/TreeSelect";
|
||||||
import { ref, reactive, watch } from "vue";
|
import { ref, reactive, watch } from "vue";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
const testResult = ref([]);
|
// const testResult = ref([]);
|
||||||
const userTaskForm = {
|
const userTaskForm = {
|
||||||
dataType: "",
|
dataType: "",
|
||||||
assignee: "",
|
assignee: "",
|
||||||
@ -296,7 +296,7 @@ function clearOptionsData() {
|
|||||||
deptIds.value = [];
|
deptIds.value = [];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 跟新节点数据
|
* 更新节点数据
|
||||||
*/
|
*/
|
||||||
function updateElementTask() {
|
function updateElementTask() {
|
||||||
const taskAttr = Object.create(null);
|
const taskAttr = Object.create(null);
|
||||||
|
@ -40,15 +40,7 @@ export function makeUpJs(formConfig, type) {
|
|||||||
created
|
created
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
console.log(
|
|
||||||
dataList,
|
|
||||||
ruleList,
|
|
||||||
optionsList,
|
|
||||||
methodList,
|
|
||||||
propsList,
|
|
||||||
uploadVarList,
|
|
||||||
created
|
|
||||||
);
|
|
||||||
const script = buildexport(
|
const script = buildexport(
|
||||||
formConfig,
|
formConfig,
|
||||||
type,
|
type,
|
||||||
@ -303,7 +295,6 @@ function buildexport(
|
|||||||
methods,
|
methods,
|
||||||
created
|
created
|
||||||
) {
|
) {
|
||||||
console.log(selectOptions);
|
|
||||||
const newStr = `
|
const newStr = `
|
||||||
import { ref, reactive, toRefs } from "vue";
|
import { ref, reactive, toRefs } from "vue";
|
||||||
|
|
||||||
|
@ -18,10 +18,9 @@ const ruleTrigger = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const layouts = {
|
const layouts = {
|
||||||
colFormItem(h, scheme) {
|
colFormItem(h, scheme, disabled) {
|
||||||
const config = scheme.__config__;
|
const config = scheme.__config__;
|
||||||
const listeners = buildListeners.call(this, scheme);
|
const listeners = buildListeners.call(this, scheme);
|
||||||
console.log(listeners, "28");
|
|
||||||
let labelWidth = config.labelWidth ? `${config.labelWidth}px` : null;
|
let labelWidth = config.labelWidth ? `${config.labelWidth}px` : null;
|
||||||
if (config.showLabel === false) labelWidth = "0";
|
if (config.showLabel === false) labelWidth = "0";
|
||||||
return (
|
return (
|
||||||
@ -31,13 +30,13 @@ const layouts = {
|
|||||||
prop={scheme.__vModel__}
|
prop={scheme.__vModel__}
|
||||||
label={config.showLabel ? config.label : ""}
|
label={config.showLabel ? config.label : ""}
|
||||||
>
|
>
|
||||||
<render conf={scheme} on={listeners} />
|
<render conf={{ ...scheme, noedit: disabled }} on={listeners} />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
rowFormItem(h, scheme) {
|
rowFormItem(h, scheme, disabled) {
|
||||||
let child = renderChildren.apply(this, arguments);
|
let child = renderChildren.apply(this, arguments, disabled);
|
||||||
if (scheme.type === "flex") {
|
if (scheme.type === "flex") {
|
||||||
child = (
|
child = (
|
||||||
<el-row
|
<el-row
|
||||||
@ -73,7 +72,12 @@ function renderFrom(h) {
|
|||||||
props={{ model: this[formConfCopy.formModel] }}
|
props={{ model: this[formConfCopy.formModel] }}
|
||||||
rules={this[formConfCopy.formRules]}
|
rules={this[formConfCopy.formRules]}
|
||||||
>
|
>
|
||||||
{renderFormItem.call(this, h, formConfCopy.fields)}
|
{renderFormItem.call(
|
||||||
|
this,
|
||||||
|
h,
|
||||||
|
formConfCopy.fields,
|
||||||
|
formConfCopy.disabled
|
||||||
|
)}
|
||||||
{formConfCopy.formBtns && formBtns.call(this, h)}
|
{formConfCopy.formBtns && formBtns.call(this, h)}
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -93,27 +97,25 @@ function formBtns(h) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderFormItem(h, elementList) {
|
function renderFormItem(h, elementList, disabled) {
|
||||||
return elementList.map((scheme) => {
|
return elementList.map((scheme) => {
|
||||||
const config = scheme.__config__;
|
const config = scheme.__config__;
|
||||||
const layout = layouts[config.layout];
|
const layout = layouts[config.layout];
|
||||||
|
|
||||||
if (layout) {
|
if (layout) {
|
||||||
console.log(layout);
|
return layout.call(this, h, scheme, disabled);
|
||||||
return layout.call(this, h, scheme);
|
|
||||||
}
|
}
|
||||||
throw new Error(`没有与${config.layout}匹配的layout`);
|
throw new Error(`没有与${config.layout}匹配的layout`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderChildren(h, scheme) {
|
function renderChildren(h, scheme, disabled) {
|
||||||
const config = scheme.__config__;
|
const config = scheme.__config__;
|
||||||
if (!Array.isArray(config.children)) return null;
|
if (!Array.isArray(config.children)) return null;
|
||||||
return renderFormItem.call(this, h, config.children);
|
return renderFormItem.call(this, h, config.children, disabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setValue(event, config, scheme) {
|
function setValue(event, config, scheme) {
|
||||||
console.log(event, config, scheme, "serval");
|
|
||||||
config.defaultValue = event;
|
config.defaultValue = event;
|
||||||
this[this.formConf.formModel][scheme.__vModel__] = event;
|
this[this.formConf.formModel][scheme.__vModel__] = event;
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ import {
|
|||||||
ElCheckboxGroup,
|
ElCheckboxGroup,
|
||||||
} from "element-plus";
|
} from "element-plus";
|
||||||
import Editor from "@/components/Editor";
|
import Editor from "@/components/Editor";
|
||||||
import { h, defineComponent } from "vue";
|
import { h, defineComponent, readonly } from "vue";
|
||||||
|
|
||||||
const formComponentsMap = {
|
const formComponentsMap = {
|
||||||
"el-row": ElRow,
|
"el-row": ElRow,
|
||||||
@ -171,6 +171,9 @@ export default defineComponent({
|
|||||||
type: Object,
|
type: Object,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
// noedit: {
|
||||||
|
// type: Boolean,
|
||||||
|
// },
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -237,6 +240,11 @@ export default defineComponent({
|
|||||||
) : (
|
) : (
|
||||||
<Tag
|
<Tag
|
||||||
{...dataObject.attrs}
|
{...dataObject.attrs}
|
||||||
|
{...(this.$props.conf.__config__.tag === "editor"
|
||||||
|
? {
|
||||||
|
readOnly: dataObject.attrs.noedit,
|
||||||
|
}
|
||||||
|
: {})}
|
||||||
on={dataObject.on}
|
on={dataObject.on}
|
||||||
modelValue={this.$props.conf.__config__.defaultValue}
|
modelValue={this.$props.conf.__config__.defaultValue}
|
||||||
></Tag>
|
></Tag>
|
||||||
|
@ -393,6 +393,8 @@ const commentType = computed(() => {
|
|||||||
return "委派";
|
return "委派";
|
||||||
case "5":
|
case "5":
|
||||||
return "转办";
|
return "转办";
|
||||||
|
case "6":
|
||||||
|
return "撤回";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
@ -409,6 +411,8 @@ const approveTypeTag = computed(() => {
|
|||||||
return "primary";
|
return "primary";
|
||||||
case "5":
|
case "5":
|
||||||
return "success";
|
return "success";
|
||||||
|
case "6":
|
||||||
|
return "warning";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -61,6 +61,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import "vue-cropper/dist/index.css";
|
import "vue-cropper/dist/index.css";
|
||||||
import { VueCropper } from "vue-cropper";
|
import { VueCropper } from "vue-cropper";
|
||||||
|
import { uploadFile } from "@/api/file/file";
|
||||||
import { uploadAvatar } from "@/api/system/user";
|
import { uploadAvatar } from "@/api/system/user";
|
||||||
import useUserStore from "@/store/modules/user";
|
import useUserStore from "@/store/modules/user";
|
||||||
|
|
||||||
@ -119,18 +120,23 @@ function beforeUpload(file) {
|
|||||||
}
|
}
|
||||||
/** 上传图片 */
|
/** 上传图片 */
|
||||||
function uploadImg() {
|
function uploadImg() {
|
||||||
|
|
||||||
proxy.$refs.cropper.getCropBlob(data => {
|
proxy.$refs.cropper.getCropBlob(data => {
|
||||||
let formData = new FormData();
|
let formData = new FormData();
|
||||||
formData.append("avatarfile", data);
|
formData.append("file", data);
|
||||||
uploadAvatar(formData).then(response => {
|
uploadFile(formData).then(response => {
|
||||||
open.value = false;
|
open.value = false;
|
||||||
options.img = import.meta.env.VITE_APP_BASE_API + response.imgUrl;
|
options.img = import.meta.env.VITE_APP_BASE_API + response.url;
|
||||||
userStore.avatar = options.img;
|
userStore.avatar = options.img;
|
||||||
|
uploadAvatar(response.url);
|
||||||
proxy.$modal.msgSuccess("修改成功");
|
proxy.$modal.msgSuccess("修改成功");
|
||||||
visible.value = false;
|
visible.value = false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** 实时预览 */
|
/** 实时预览 */
|
||||||
function realTime(data) {
|
function realTime(data) {
|
||||||
options.previews = data;
|
options.previews = data;
|
||||||
|
@ -138,7 +138,6 @@ const layouts = {
|
|||||||
{{
|
{{
|
||||||
item: ({ element, index }) => {
|
item: ({ element, index }) => {
|
||||||
const layout = layouts[element.__config__.layout];
|
const layout = layouts[element.__config__.layout];
|
||||||
console.log(element, "element");
|
|
||||||
if (layout) {
|
if (layout) {
|
||||||
return layout.call(this, element, index, config.children);
|
return layout.call(this, element, index, config.children);
|
||||||
}
|
}
|
||||||
|
@ -577,7 +577,8 @@
|
|||||||
<template #item="{ element, index }">
|
<template #item="{ element, index }">
|
||||||
<div class="select-item">
|
<div class="select-item">
|
||||||
<div class="select-line-icon option-drag">
|
<div class="select-line-icon option-drag">
|
||||||
<i class="el-icon-s-operation" />
|
<!-- <i class="el-icon-s-operation" /> -->
|
||||||
|
<el-icon><Operation /></el-icon>
|
||||||
</div>
|
</div>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="element.label"
|
v-model="element.label"
|
||||||
@ -594,7 +595,10 @@
|
|||||||
class="close-btn select-line-icon"
|
class="close-btn select-line-icon"
|
||||||
@click="activeData.__slot__.options.splice(index, 1)"
|
@click="activeData.__slot__.options.splice(index, 1)"
|
||||||
>
|
>
|
||||||
<i class="el-icon-remove-outline" />
|
<!-- <i class="el-icon-remove-outline" /> -->
|
||||||
|
<el-icon>
|
||||||
|
<Remove />
|
||||||
|
</el-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -602,8 +606,9 @@
|
|||||||
<div style="margin-left: 20px">
|
<div style="margin-left: 20px">
|
||||||
<el-button
|
<el-button
|
||||||
style="padding-bottom: 0"
|
style="padding-bottom: 0"
|
||||||
icon="el-icon-circle-plus-outline"
|
icon="circle-plus"
|
||||||
link
|
link
|
||||||
|
type="primary"
|
||||||
@click="addSelectItem"
|
@click="addSelectItem"
|
||||||
>
|
>
|
||||||
添加选项
|
添加选项
|
||||||
@ -703,6 +708,7 @@
|
|||||||
<el-button
|
<el-button
|
||||||
style="padding-bottom: 0"
|
style="padding-bottom: 0"
|
||||||
icon="circle-plus"
|
icon="circle-plus"
|
||||||
|
type="primary"
|
||||||
link
|
link
|
||||||
@click="addTreeItem"
|
@click="addTreeItem"
|
||||||
>
|
>
|
||||||
@ -951,7 +957,9 @@
|
|||||||
class="close-btn"
|
class="close-btn"
|
||||||
@click="activeData.__config__.regList.splice(index, 1)"
|
@click="activeData.__config__.regList.splice(index, 1)"
|
||||||
>
|
>
|
||||||
<i class="el-icon-close" />
|
<el-icon>
|
||||||
|
<Close />
|
||||||
|
</el-icon>
|
||||||
</span>
|
</span>
|
||||||
<el-form-item label="表达式">
|
<el-form-item label="表达式">
|
||||||
<el-input v-model="item.pattern" placeholder="请输入正则" />
|
<el-input v-model="item.pattern" placeholder="请输入正则" />
|
||||||
@ -961,11 +969,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-left: 20px">
|
<div style="margin-left: 20px">
|
||||||
<el-button
|
<el-button icon="circle-plus" type="primary" link @click="addReg">
|
||||||
icon="el-icon-circle-plus-outline"
|
|
||||||
link
|
|
||||||
@click="addReg"
|
|
||||||
>
|
|
||||||
添加规则
|
添加规则
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
@ -1045,7 +1049,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Link, Menu, Plus } from "@element-plus/icons-vue";
|
import { Link, Plus, Remove, Operation, Close } from "@element-plus/icons-vue";
|
||||||
import TreeNodeDialog from "./TreeNodeDialog.vue";
|
import TreeNodeDialog from "./TreeNodeDialog.vue";
|
||||||
import { isNumberStr } from "@/utils/index";
|
import { isNumberStr } from "@/utils/index";
|
||||||
import IconsDialog from "./IconsDialog.vue";
|
import IconsDialog from "./IconsDialog.vue";
|
||||||
|
@ -713,6 +713,9 @@ textarea {
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
&:hover {
|
&:hover {
|
||||||
background: rgba(210, 23, 23, 0.5);
|
background: rgba(210, 23, 23, 0.5);
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ export default defineConfig(({ mode, command }) => {
|
|||||||
// https://cn.vitejs.dev/config/#server-proxy
|
// https://cn.vitejs.dev/config/#server-proxy
|
||||||
"/dev-api": {
|
"/dev-api": {
|
||||||
// target: 'http://localhost:8080',
|
// target: 'http://localhost:8080',
|
||||||
target: "http://192.168.110.10:1616",
|
target: "http://192.168.1.16:1616",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (p) => p.replace(/^\/dev-api/, ""),
|
rewrite: (p) => p.replace(/^\/dev-api/, ""),
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user