main
			
			
		
		
							parent
							
								
									9d95569c3d
								
							
						
					
					
						commit
						b734e6745f
					
				| 
						 | 
					@ -11,9 +11,9 @@
 | 
				
			||||||
      :rules="rules"
 | 
					      :rules="rules"
 | 
				
			||||||
      ref="ruleFormRef"
 | 
					      ref="ruleFormRef"
 | 
				
			||||||
    >
 | 
					    >
 | 
				
			||||||
      <el-form-item label="规则标题:" prop="name">
 | 
					      <el-form-item label="规则标题:" prop="title">
 | 
				
			||||||
        <el-input
 | 
					        <el-input
 | 
				
			||||||
          v-model="addForm.name"
 | 
					          v-model="addForm.title"
 | 
				
			||||||
          placeholder="请输入规则标题"
 | 
					          placeholder="请输入规则标题"
 | 
				
			||||||
          clearable
 | 
					          clearable
 | 
				
			||||||
          :disabled="type === 'I' ? false: true"
 | 
					          :disabled="type === 'I' ? false: true"
 | 
				
			||||||
| 
						 | 
					@ -46,9 +46,12 @@ export default {
 | 
				
			||||||
  setup(props, ctx) { 
 | 
					  setup(props, ctx) { 
 | 
				
			||||||
    const ruleFormRef = ref(null); 
 | 
					    const ruleFormRef = ref(null); 
 | 
				
			||||||
    const state = reactive({
 | 
					    const state = reactive({
 | 
				
			||||||
      addForm: {},
 | 
					      addForm: {
 | 
				
			||||||
 | 
					        title: '',
 | 
				
			||||||
 | 
					        description: ''
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
      rules: {
 | 
					      rules: {
 | 
				
			||||||
        name: [
 | 
					        title: [
 | 
				
			||||||
          { required: true, message: "请输入规则标题", trigger: "blur" }
 | 
					          { required: true, message: "请输入规则标题", trigger: "blur" }
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
        description: [
 | 
					        description: [
 | 
				
			||||||
| 
						 | 
					@ -63,7 +66,7 @@ export default {
 | 
				
			||||||
      return props.type;
 | 
					      return props.type;
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    onMounted(() => {
 | 
					    onMounted(() => {
 | 
				
			||||||
      // state.addForm = props.formData; 
 | 
					      state.addForm = props.formData; 
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const closeDialog = () => {
 | 
					    const closeDialog = () => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -97,8 +97,8 @@ export default {
 | 
				
			||||||
      
 | 
					      
 | 
				
			||||||
      if (ret.code == 0) {
 | 
					      if (ret.code == 0) {
 | 
				
			||||||
          // 获取数据
 | 
					          // 获取数据
 | 
				
			||||||
          state.tableData = rule_info.decode(ret.data);
 | 
					          // state.tableData = rule_info.decode(ret.data);
 | 
				
			||||||
          console.log(rule_info.decode(ret.data));
 | 
					          // console.log(rule_info.decode(ret.data));
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
          console.log(res);
 | 
					          console.log(res);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
| 
						 | 
					@ -138,13 +138,13 @@ export default {
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    // 新增
 | 
					    // 新增
 | 
				
			||||||
    const addData = () => {
 | 
					    const addData = () => {
 | 
				
			||||||
      state.dialogVisible = true;
 | 
					 | 
				
			||||||
      //清空数据
 | 
					      //清空数据
 | 
				
			||||||
      state.formData = {
 | 
					      state.formData = {
 | 
				
			||||||
        title: '',
 | 
					        title: '',
 | 
				
			||||||
        description: ''
 | 
					        description: ''
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      state.type = 'I';
 | 
					      state.type = 'I';
 | 
				
			||||||
 | 
					      state.dialogVisible = true;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    // 启用停用
 | 
					    // 启用停用
 | 
				
			||||||
    const changeStatus = async (item) => {
 | 
					    const changeStatus = async (item) => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -24,7 +24,7 @@ export default ({ mode }) =>  defineConfig({
 | 
				
			||||||
  server: {
 | 
					  server: {
 | 
				
			||||||
    proxy: {
 | 
					    proxy: {
 | 
				
			||||||
      '/api': {
 | 
					      '/api': {
 | 
				
			||||||
        target: 'http://api.shikicc.com:58909',
 | 
					        target: 'http://frp.shikicc.com:58951',
 | 
				
			||||||
        // target: 'http://10.10.14.123',
 | 
					        // target: 'http://10.10.14.123',
 | 
				
			||||||
        // target: 'https://cdcmapi.shikicc.com',
 | 
					        // target: 'https://cdcmapi.shikicc.com',
 | 
				
			||||||
        changeOrigin: true,
 | 
					        changeOrigin: true,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue