王震
2024-01-19 0a162b61518f98dce270e390bc75778ccc6eb67d
src/views/equipment/mould/index.vue
@@ -9,37 +9,25 @@
      :options="options" 
      ref="processconfiguration"
      >
      <template #toolbar>
        <el-button  type="primary"
                @click="">新增</el-button>
                <!-- <el-dropdown style="margin-left: 20px;" @command="handleCommand">
                    <el-button >
                      状态变更<i class="el-icon-arrow-down el-icon--right"></i>
                    </el-button>
                    <el-dropdown-menu slot="dropdown">
                      <el-dropdown-item :key="index"
                        :command="item.label"
                        v-for="(item,index) in taskTypeArr"
                        >{{ item.label }}</el-dropdown-item
                      >
                    </el-dropdown-menu>
                </el-dropdown> -->
      </template>
      <template #toolbar></template>
      </ttable>
      </basic-container>
      <table-form
        v-if="true"
      ></table-form>
  </div>
</template>
<script>
import ttable from '@/views/common/ztt-table.vue'
import { fetchList, } from '@/api/quality/finishedDelivery'
import { page, } from '@/api/equipment/mould'
import TableForm from './mould-from.vue'
export default {
  data(){
      return {
          ajaxFun: fetchList,
          ajaxFun: page,
          prelang: 'operation',
          dataListLoading: false,
          addOrUpdateVisible: false,
          options: {
              height: 300, // 默认高度-为了表头固定
              stripe: true, // 是否为斑马纹 table
@@ -75,6 +63,7 @@
                  isTrue: true,
                  isSearch: true,
                  searchInfoType: 'text',
                },
                {
                  minWidth: '140',
@@ -109,7 +98,11 @@
                  searchInfoType: 'text',
                },
              ],
              toolbar: [],
              toolbar: [{
                text: '新增',
                type: 'primary',
                fun: this.addOrUpdateHandle
                }],
              operator: [{
                text: '删除',
                type: 'text',
@@ -129,12 +122,14 @@
  //   ...mapGetters(['permissions'])
  // },
  components: {
    ttable
    ttable,
    TableForm
  },
  medthods: {
    formatDateTime(row, column, cellValue) {
        return cellValue ? fecha.format(new Date(cellValue), 'yyyy-MM-dd') : ''
    },
  methods: {
        addOrUpdateHandle() {
          this.addOrUpdateVisible = true
          console.log(this.addOrUpdateVisible,"--=--");
        },
  },
}
</script>