diff --git a/src/views/casm/product/add_edit.vue b/src/views/casm/product/add_edit.vue deleted file mode 100644 index 6a38617..0000000 --- a/src/views/casm/product/add_edit.vue +++ /dev/null @@ -1,42 +0,0 @@ - - - - - diff --git a/src/views/casm/device/index.vue b/src/views/device/device/index.vue similarity index 93% rename from src/views/casm/device/index.vue rename to src/views/device/device/index.vue index 6108f24..9a2e908 100644 --- a/src/views/casm/device/index.vue +++ b/src/views/device/device/index.vue @@ -49,19 +49,19 @@ 新增 + v-hasPermi="['device:device:add']">新增 修改 + v-hasPermi="['device:device:edit']">修改 删除 + v-hasPermi="['device:device:remove']">删除 @@ -70,7 +70,7 @@ - + @@ -88,15 +88,15 @@ @@ -107,7 +107,7 @@ - + @@ -142,7 +142,7 @@ - + @@ -154,10 +154,12 @@ - + @@ -212,7 +214,7 @@ let form = ref({}) // 表单校验 let rules = ref({ needleNum: [ - { + { type: 'number', required: true, message: '针数只能为数字', @@ -310,7 +312,7 @@ function handleSelectionChange(selection) { /**详情按钮操作 */ function handleInfo(row) { deviceinfo.value = row - infoDialog.value = true + infoDialog.value = true } /** 新增按钮操作 */ function handleAdd() { diff --git a/src/views/casm/device/info.vue b/src/views/device/device/info.vue similarity index 100% rename from src/views/casm/device/info.vue rename to src/views/device/device/info.vue diff --git a/src/views/product/product/add_edit.vue b/src/views/product/product/add_edit.vue new file mode 100644 index 0000000..00b9c9e --- /dev/null +++ b/src/views/product/product/add_edit.vue @@ -0,0 +1,161 @@ + + + + + diff --git a/src/views/casm/product/index.vue b/src/views/product/product/index.vue similarity index 84% rename from src/views/casm/product/index.vue rename to src/views/product/product/index.vue index a160a3b..daaa609 100644 --- a/src/views/casm/product/index.vue +++ b/src/views/product/product/index.vue @@ -15,40 +15,41 @@ 新增 + v-hasPermi="['product:product:add']">新增 修改 + v-hasPermi="['product:product:edit']">修改 删除 + v-hasPermi="['product:product:remove']">删除 - + - + + @@ -91,11 +92,14 @@ let queryParams = reactive({ let total = ref(0) // 设备信息表格数据 -let deviceList = ref([]) +let productList = ref([ + {name:'设备1',code:'code1',id:1}, +]) // 列显隐信息 const columns = ref([ { key: 0, label: `产品名称`, visible: true }, - { key: 1, label: `产品类别`, visible: true }, + { key: 1, label: `产品类型`, visible: true }, + { key: 2, label: `产品编码`, visible: true }, ]); /** 查询设备信息列表 */ function getList() { @@ -182,6 +186,10 @@ function handleUpdate(row) { // open.value = true; // title.value = "修改设备信息"; // }); + setTimeout(() => { + open.value = true; + title.value = "修改设备信息"; + }, 100); } /** 删除按钮操作 */ @@ -191,7 +199,7 @@ function handleDelete(row) { return //delDevice(id); }).then(() => { getList(); - proxy.$modal.msgSuccess("删除成功"); + proxy.$modal.msgSuccess("删除成功" ); }).catch(() => { }); } onMounted(() => { diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index d6cfdd6..c124fdc 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -29,10 +29,10 @@ - + - - - - - - + + + + + + + - + @@ -183,8 +184,8 @@ - - + + @@ -214,8 +215,8 @@ - - + + @@ -226,15 +227,8 @@ - - - - + + @@ -369,13 +363,14 @@ const upload = reactive({ }); // 列显隐信息 const columns = ref([ - { key: 0, label: `用户编号`, visible: true }, - { key: 1, label: `用户名称`, visible: true }, - { key: 2, label: `用户昵称`, visible: true }, - { key: 3, label: `部门`, visible: true }, - { key: 4, label: `手机号码`, visible: true }, - { key: 5, label: `状态`, visible: true }, - { key: 6, label: `创建时间`, visible: true } + { key: 0, label: `ID`, visible: true }, + { key: 1, label: `用户编号`, visible: true }, + { key: 2, label: `账号`, visible: true }, + { key: 3, label: `用户姓名`, visible: true }, + { key: 4, label: `部门`, visible: true }, + { key: 5, label: `手机号码`, visible: true }, + { key: 6, label: `状态`, visible: true }, + { key: 7, label: `创建时间`, visible: true } ]); const data = reactive({ @@ -389,11 +384,12 @@ const data = reactive({ deptId: undefined }, rules: { - userName: [{ required: true, message: "用户名称不能为空", trigger: "blur" }, { min: 2, max: 20, message: "用户名称长度必须介于 2 和 20 之间", trigger: "blur" }], - nickName: [{ required: true, message: "用户昵称不能为空", trigger: "blur" }], + userName: [{ required: true, message: "账号不能为空", trigger: "blur" }, { min: 2, max: 20, message: "账号长度必须介于 2 和 20 之间", trigger: "blur" }], + nickName: [{ required: true, message: "用户姓名不能为空", trigger: "blur" }], password: [{ required: true, message: "用户密码不能为空", trigger: "blur" }, { min: 5, max: 20, message: "用户密码长度必须介于 5 和 20 之间", trigger: "blur" }], email: [{ type: "email", message: "请输入正确的邮箱地址", trigger: ["blur", "change"] }], - phonenumber: [{ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: "请输入正确的手机号码", trigger: "blur" }] + phonenumber: [{ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: "请输入正确的手机号码", trigger: "blur" }], + code: [{ required: true, message: "用户编号不能为空", trigger: "blur" }], } });