瀏覽代碼

调整结构

zhengnaiwen_citu 5 月之前
父節點
當前提交
4d00ec2f34

+ 0 - 0
src/views/humanResources/accumulatePoints/accumulatePointsApply/accumulatePointsApplyEdit.vue → src/views/accumulatePoints/accumulatePointsApply/accumulatePointsApplyEdit.vue


+ 0 - 0
src/views/humanResources/accumulatePoints/accumulatePointsApply/accumulatePointsApplyEditUpload.vue → src/views/accumulatePoints/accumulatePointsApply/accumulatePointsApplyEditUpload.vue


+ 0 - 0
src/views/humanResources/accumulatePoints/accumulatePointsApply/index.vue → src/views/accumulatePoints/accumulatePointsApply/index.vue


+ 15 - 0
src/views/accumulatePoints/accumulatePointsMotivate/index.vue

@@ -0,0 +1,15 @@
+<template>
+  <div class="pa-3 white">
+    <el-empty></el-empty>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'accumulatePointsMotivate'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 0 - 0
src/views/humanResources/accumulatePoints/accumulatePointsRules/accumulatePointsRulesEdit.vue → src/views/accumulatePoints/accumulatePointsRules/accumulatePointsRulesEdit.vue


+ 0 - 0
src/views/humanResources/accumulatePoints/accumulatePointsRules/index.vue → src/views/accumulatePoints/accumulatePointsRules/index.vue


+ 0 - 0
src/views/humanResources/accumulatePoints/accumulatePointsStatistics/index.vue → src/views/accumulatePoints/accumulatePointsStatistics/index.vue


+ 15 - 0
src/views/salaryFixed/salaryFixedAnalysis/index.vue

@@ -0,0 +1,15 @@
+<template>
+  <div class="pa-3 white">
+    <el-empty></el-empty>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'salaryFixedAnalysis'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 105 - 0
src/views/salaryFixed/salaryFixedCalculation/index.vue

@@ -0,0 +1,105 @@
+<template>
+  <div class="pa-3 white">
+    <m-search class="mb-3" :items="searchItems" v-model="searchValues" @search="onSearch"></m-search>
+    <m-table
+      v-loading="loading"
+      :items="items"
+      :headers="headers"
+      :page-size="pageInfo.size"
+      :page-current="pageInfo.current"
+      :total="total"
+      @page-change="onPageChange"
+    >
+      <template #card-tools>
+        <m-button type="orange" icon="el-icon-plus" @click="onAdd">新增</m-button>
+      </template>
+      <template #actions="{ row }">
+        <m-button type="primary" text @click="onEdit(row)">编辑</m-button>
+        <m-button type="danger" text @click="onDelete(row)">删除</m-button>
+      </template>
+    </m-table>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'salaryFixedCalculation',
+  data () {
+    return {
+      searchItems: [
+        {
+          label: '名称',
+          prop: 'name',
+          type: 'input',
+          options: {
+            placeholder: '请输入名称'
+          }
+        }
+      ],
+      searchValues: {
+        name: null
+      },
+      headers: [
+        { label: '名称', prop: 'name' },
+        { label: '状态', prop: 'status' },
+        { label: '操作', prop: 'actions', fixed: 'right', width: 300 }
+      ],
+      items: [],
+      total: 0,
+      pageInfo: {
+        current: 1,
+        size: 10
+      },
+      loading: false
+    }
+  },
+  created () {
+    this.onInit()
+  },
+  methods: {
+    async onInit () {
+      this.loading = true
+      try {
+        // const { data } = await ApiName()
+        // this.items = data.records
+        // this.total = data.total
+      } catch (error) {
+        this.$message.error(error)
+      } finally {
+        this.loading = false
+      }
+    },
+    onAdd () {
+      this.$refs.fixedSalaryCalculationRefs.open()
+    },
+    onEdit (item) {
+      this.$refs.fixedSalaryCalculationRefs.open(item)
+    },
+    onDelete (row) {
+      this.$confirm('确定删除吗?', '提示')
+        .then(async () => {
+          try {
+            // await ApiName({ id: row.id })
+            this.$message.success('删除成功')
+            this.onInit()
+          } catch (error) {
+            this.$message.error(error)
+          }
+        })
+        .catch(_ => {})
+    },
+    onSearch () {
+      this.pageInfo.current = 1
+      this.onInit()
+    },
+    onPageChange (index) {
+      this.pageInfo.current = index
+      this.onInit()
+    }
+  }
+}
+</script>
+
+<style lang="scss" scoped>
+  /* 自定义样式 */
+</style>

+ 105 - 0
src/views/salaryFixed/salaryFixedRules/index.vue

@@ -0,0 +1,105 @@
+<template>
+  <div class="pa-3 white">
+    <m-search class="mb-3" :items="searchItems" v-model="searchValues" @search="onSearch"></m-search>
+    <m-table
+      v-loading="loading"
+      :items="items"
+      :headers="headers"
+      :page-size="pageInfo.size"
+      :page-current="pageInfo.current"
+      :total="total"
+      @page-change="onPageChange"
+    >
+      <template #card-tools>
+        <m-button type="orange" icon="el-icon-plus" @click="onAdd">新增</m-button>
+      </template>
+      <template #actions="{ row }">
+        <m-button type="primary" text @click="onEdit(row)">编辑</m-button>
+        <m-button type="danger" text @click="onDelete(row)">删除</m-button>
+      </template>
+    </m-table>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'salaryFixedRules',
+  data () {
+    return {
+      searchItems: [
+        {
+          label: '名称',
+          prop: 'name',
+          type: 'input',
+          options: {
+            placeholder: '请输入名称'
+          }
+        }
+      ],
+      searchValues: {
+        name: null
+      },
+      headers: [
+        { label: '名称', prop: 'name' },
+        { label: '状态', prop: 'status' },
+        { label: '操作', prop: 'actions', fixed: 'right', width: 300 }
+      ],
+      items: [],
+      total: 0,
+      pageInfo: {
+        current: 1,
+        size: 10
+      },
+      loading: false
+    }
+  },
+  created () {
+    this.onInit()
+  },
+  methods: {
+    async onInit () {
+      this.loading = true
+      try {
+        // const { data } = await ApiName()
+        // this.items = data.records
+        // this.total = data.total
+      } catch (error) {
+        this.$message.error(error)
+      } finally {
+        this.loading = false
+      }
+    },
+    onAdd () {
+      this.$refs.fixedSalaryRulesRefs.open()
+    },
+    onEdit (item) {
+      this.$refs.fixedSalaryRulesRefs.open(item)
+    },
+    onDelete (row) {
+      this.$confirm('确定删除吗?', '提示')
+        .then(async () => {
+          try {
+            // await ApiName({ id: row.id })
+            this.$message.success('删除成功')
+            this.onInit()
+          } catch (error) {
+            this.$message.error(error)
+          }
+        })
+        .catch(_ => {})
+    },
+    onSearch () {
+      this.pageInfo.current = 1
+      this.onInit()
+    },
+    onPageChange (index) {
+      this.pageInfo.current = index
+      this.onInit()
+    }
+  }
+}
+</script>
+
+<style lang="scss" scoped>
+  /* 自定义样式 */
+</style>

+ 15 - 0
src/views/salaryOther/salaryOtherAnalysis/index.vue

@@ -0,0 +1,15 @@
+<template>
+  <div>
+
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'salaryOtherAnalysis'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 15 - 0
src/views/salaryOther/salaryOtherRules/index.vue

@@ -0,0 +1,15 @@
+<template>
+  <div>
+
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'salaryOtherRules'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 0 - 0
src/views/humanResources/welfare/components/ListTemplate.vue → src/views/welfare/components/ListTemplate.vue


+ 0 - 0
src/views/humanResources/welfare/index.vue → src/views/welfare/index.vue


+ 15 - 0
src/views/welfare/welfareAnalysis/index.vue

@@ -0,0 +1,15 @@
+<template>
+  <div class="pa-3 white">
+    <el-empty></el-empty>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'welfareAnalysis'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 0 - 0
src/views/humanResources/welfare/welfareHistory/index.vue → src/views/welfare/welfareHistory/index.vue


+ 0 - 0
src/views/humanResources/welfare/welfareList/historyDialog.vue → src/views/welfare/welfareRules/historyDialog.vue


+ 1 - 1
src/views/humanResources/welfare/welfareList/index.vue → src/views/welfare/welfareRules/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div>
+  <div class="pa-3 white">
     <ListTemplate ref="listTemplateRefs" :card-title="$attrs.label">
       <template #tool>
         <m-button type="orange" icon="el-icon-plus" size="small" @click="onAdd">新增</m-button>

+ 0 - 0
src/views/humanResources/welfare/welfareList/welfareEdit.vue → src/views/welfare/welfareRules/welfareEdit.vue


+ 0 - 0
src/views/humanResources/welfare/welfareList/welfareRules.vue → src/views/welfare/welfareRules/welfareRules.vue


+ 2 - 1
vue.config.js

@@ -20,7 +20,8 @@ module.exports = defineConfig({
     // https: false,
     proxy: {
       '/api': {
-        target: 'https://company.citupro.com:18182/op/base',
+        target: 'http://192.168.3.162:7654',
+        // target: 'https://company.citupro.com:18182/op/base',
         secure: false, // 是否支持 https,默认 false
         changeOrigin: true, // 是否支持跨域
         pathRewrite: {