wangfei
2025-04-23 1d3f8dc16ca98b14a40da8c70a405793295faa78
UI-Project/src/views/User/userpageNo.vue
@@ -12,7 +12,9 @@
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)
@@ -36,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);  
    }  
@@ -52,8 +54,8 @@
    const response = await request.post('/loadGlass/sys/sysConfig/queryConfigPage',{
      pageNo: 1,
      pageSize: 10,
      configName: configName.value,
      configCode: configCode.value,
      configName: configNamesearch.value,
      configCode: configCodesearch.value,
      configValue: configValuesearch.value,
      isEnable: isEnablesearch.value !== '' ? isEnablesearch.value : -1, 
   
@@ -64,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);  
    }  
@@ -94,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);  
    }  
@@ -107,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)
@@ -162,8 +165,8 @@
  <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="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>
@@ -213,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">
@@ -221,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>