Compare commits

...

2 Commits

Author SHA1 Message Date
wangqiujuan0808 ae9fcf8996 。。 2023-12-26 11:48:03 +08:00
wangqiujuan0808 b734e6745f 。。 2023-12-26 11:47:03 +08:00
11 changed files with 264 additions and 261 deletions

View File

@ -11,9 +11,9 @@
:rules="rules"
ref="ruleFormRef"
>
<el-form-item label="规则标题:" prop="name">
<el-form-item label="规则标题:" prop="title">
<el-input
v-model="addForm.name"
v-model="addForm.title"
placeholder="请输入规则标题"
clearable
:disabled="type === 'I' ? false: true"
@ -46,9 +46,12 @@ export default {
setup(props, ctx) {
const ruleFormRef = ref(null);
const state = reactive({
addForm: {},
addForm: {
title: '',
description: ''
},
rules: {
name: [
title: [
{ required: true, message: "请输入规则标题", trigger: "blur" }
],
description: [
@ -63,7 +66,7 @@ export default {
return props.type;
});
onMounted(() => {
// state.addForm = props.formData;
state.addForm = props.formData;
});
const closeDialog = () => {

View File

@ -97,8 +97,8 @@ export default {
if (ret.code == 0) {
//
console.log(rule.decode(ret.data));
state.tableData = rule.decode(ret.data);
// state.tableData = rule_info.decode(ret.data);
// console.log(rule_info.decode(ret.data));
} else {
console.log(res);
}
@ -138,13 +138,13 @@ export default {
};
//
const addData = () => {
state.dialogVisible = true;
//
state.formData = {
title: '',
description: ''
}
state.type = 'I';
state.dialogVisible = true;
};
//
const changeStatus = async (item) => {

View File

@ -24,8 +24,8 @@ export default ({ mode }) => defineConfig({
server: {
proxy: {
'/api': {
// target: 'http://api.shikicc.com:58909',
target: 'http://10.10.14.247',
target: 'http://frp.shikicc.com:58951',
// target: 'http://10.10.14.123',
// target: 'https://cdcmapi.shikicc.com',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, '/api')