zhoushihao
2025-05-12 cce0383f11f69f818093b1faf7ffab96a47d132a
Merge remote-tracking branch 'origin/master'
5个文件已修改
50 ■■■■■ 已修改文件
UI-Project/src/lang/en.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI-Project/src/lang/py.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI-Project/src/lang/zh.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI-Project/src/router/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI-Project/src/views/User/userpageNo.vue 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI-Project/src/lang/en.js
@@ -401,6 +401,7 @@
    },
    productStock: {
        configName: 'configure name',
        configNamea:'configure name:',
        configCode: 'Configuration Code',
        configValue: 'Configuration value',
        addusers: 'Add user',
UI-Project/src/lang/py.js
@@ -400,6 +400,7 @@
    },
    productStock: {
        configName:'配置名',
        configNamea:'配置名:',
        configCode:'配置代码',
        configValue:'配置值',
        addusers: 'Добавьте пользователей.',
UI-Project/src/lang/zh.js
@@ -402,6 +402,7 @@
          addconfigName:'添加配置',
          editconfigName:'修改配置',
          configName:'配置名',
          configNamea:'配置名:',
          configCode:'配置代码',
          configValue:'配置值',
          configValuea:'配置值:',
UI-Project/src/router/index.js
@@ -54,7 +54,7 @@
            path: '/Returns/upreturns2',
            name: 'upreturns2',
            component: () => import('../views/Returns/upreturns2.vue')
          },
          }
        ]
      },
      /*----------- 掰片/识别 ----------------*/
UI-Project/src/views/User/userpageNo.vue
@@ -12,12 +12,16 @@
let language = ref(localStorage.getItem('lang') || 'zh')
const selectedProjectNoa = ref(null);
const configName = ref('');
const configNamesearch = ref('');
const configCode = ref('');
const configCodesearch = ref('');
const tableData = ref([])
const currentPage2 = ref(1)
const totalRecords = ref(0)
const configValue = ref('')
const isEnable = ref('')
const configValuesearch = ref('')
const isEnablesearch = ref('')
  const listByUserName = async () => {  
  try {
  const response = await request.post('/loadGlass/sys/sysConfig/queryConfigPage',{
@@ -34,8 +38,8 @@
        formattedCreateTime: formatTimestamp(record.createTime),
        formattedUpdateTime: formatTimestamp(record.updateTime),
      }));
        tableData.value = formattedData;
      totalRecords.value = response.data.total/2 || 0
      tableData.value = formattedData;
      totalRecords.value = response.data.pages*10
      } else {
      ElMessage.warning(response.data);  
    }  
@@ -50,11 +54,10 @@
    const response = await request.post('/loadGlass/sys/sysConfig/queryConfigPage',{
      pageNo: 1,
      pageSize: 10,
      configName: configName.value,
      configCode: configCode.value,
      configValue: configValue.value,
      // isEnable: isEnable.value
      isEnable: isEnable.value !== '' ? isEnable.value : -1,
      configName: configNamesearch.value,
      configCode: configCodesearch.value,
      configValue: configValuesearch.value,
      isEnable: isEnablesearch.value !== '' ? isEnablesearch.value : -1,
   
     });  
    if (response.code === 200) {  
@@ -63,8 +66,8 @@
        formattedCreateTime: formatTimestamp(record.createTime),
        formattedUpdateTime: formatTimestamp(record.updateTime),
      }));
        tableData.value = formattedData;
      totalRecords.value = response.data.total/2 || 0
      tableData.value = formattedData;
      totalRecords.value = response.data.pages*10
      } else {
      ElMessage.warning(response.data);  
    }  
@@ -93,8 +96,8 @@
        formattedCreateTime: formatTimestamp(record.createTime),
        formattedUpdateTime: formatTimestamp(record.updateTime),
      }));
        tableData.value = formattedData;
      totalRecords.value = response.data.total/2 || 0
      tableData.value = formattedData;
      totalRecords.value = response.data.pages*10
      } else {
      ElMessage.warning(response.data);  
    }  
@@ -106,6 +109,7 @@
  adda.value = true;
  configValue.value = row.configValue
  isEnable.value = row.isEnable
  configName.value = row.configName
  window.localStorage.setItem('id', row.id)
  window.localStorage.setItem('configName', row.configName)
  window.localStorage.setItem('configCode', row.configCode)
@@ -161,10 +165,10 @@
  <div>
    <el-card style="flex: 1;margin-left: 10px;margin-top: 20px;" >
      <div style="display: flex;width: 1770px;">
    <el-input v-model="configName" clearable style="margin-left: 10px;margin-bottom: 10px;width: 200px;" :placeholder="$t('productStock.configName')" />
    <el-input v-model="configCode" clearable style="margin-left: 10px;margin-bottom: 10px;width: 200px;" @input="handleInputa" :placeholder="$t('productStock.configCode')" />
    <el-input v-model="configValue" clearable style="margin-left: 10px;margin-bottom: 10px;width: 200px;" @input="handleInputb" :placeholder="$t('productStock.configValue')" />
    <el-select v-model="isEnable" clearable style="margin-left: 10px;margin-bottom: 10px;width: 200px;" :placeholder="$t('sorter.startstatus')">
    <el-input v-model="configNamesearch" clearable style="margin-left: 10px;margin-bottom: 10px;width: 200px;" :placeholder="$t('productStock.configName')" />
    <el-input v-model="configCodesearch" clearable style="margin-left: 10px;margin-bottom: 10px;width: 200px;" @input="handleInputa" :placeholder="$t('productStock.configCode')" />
    <el-input v-model="configValuesearch" clearable style="margin-left: 10px;margin-bottom: 10px;width: 200px;" @input="handleInputb" :placeholder="$t('productStock.configValue')" />
    <el-select v-model="isEnablesearch" clearable style="margin-left: 10px;margin-bottom: 10px;width: 200px;" :placeholder="$t('sorter.startstatus')">
            <el-option :label="$t('sorter.start')" value="1"></el-option>
            <el-option :label="$t('sorter.disable')" value="0"></el-option>
          </el-select>
@@ -212,7 +216,7 @@
    </div>
    </el-card>
  </div>
  <el-dialog v-model="adda" top="23vh" width="37%" :title="$t('productStock.reusername')" >
  <el-dialog v-model="adda" top="23vh" width="37%" >
    <div style="margin-left: -50px;margin-top: 10px;margin-bottom: 10px;">
            <el-form ref="formRef" label-width="150px">
      <el-form label-width="120px" label-position="right">
@@ -220,6 +224,15 @@
          <el-col :span="6">
              <div id="dt" style="font-size: 15px;">
        <div>
          <el-form-item :label="$t('productStock.configNamea')" :required="true" style="width: 25vw">
                <el-input :placeholder="$t('productStock.configName')" disabled v-model="configName" autocomplete="off" style="width: 350px;"/>
              </el-form-item></div></div>
          </el-col>
        </el-row>
        <el-row style="margin-top: 10px;margin-bottom: -2px;">
          <el-col :span="6">
              <div id="dt" style="font-size: 15px;">
        <div>
          <el-form-item :label="$t('productStock.configValuea')" :required="true" style="width: 25vw">
                <el-input :placeholder="$t('productStock.configValue')" v-model="configValue" autocomplete="off" style="width: 350px;"/>
              </el-form-item></div></div>