|
@@ -10,7 +10,6 @@
|
|
|
</el-main>
|
|
</el-main>
|
|
|
</el-container>
|
|
</el-container>
|
|
|
</el-main>
|
|
</el-main>
|
|
|
-
|
|
|
|
|
<el-dialog :title="dialogStatus==='create'? $t('common.create'):$t('common.update')" :visible.sync="dialogVisible" width="40%" @close="dialogClose">
|
|
<el-dialog :title="dialogStatus==='create'? $t('common.create'):$t('common.update')" :visible.sync="dialogVisible" width="40%" @close="dialogClose">
|
|
|
<el-form ref="temp" :size="size" :rules="rules" :model="temp" label-width="120px">
|
|
<el-form ref="temp" :size="size" :rules="rules" :model="temp" label-width="120px">
|
|
|
<el-form-item label="Name:" prop="name">
|
|
<el-form-item label="Name:" prop="name">
|
|
@@ -133,7 +132,7 @@ export default {
|
|
|
this.$refs['temp'].validate(valid => {
|
|
this.$refs['temp'].validate(valid => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
this.temp.value = JSON.stringify(this.maps)
|
|
this.temp.value = JSON.stringify(this.maps)
|
|
|
- this.$api.system.AddOptionset(this.temp).then(res => {
|
|
|
|
|
|
|
+ this.$api.sysOptionset.add(this.temp).then(res => {
|
|
|
this.dialogVisible = false
|
|
this.dialogVisible = false
|
|
|
this.$message({
|
|
this.$message({
|
|
|
message: 'Created successfully',
|
|
message: 'Created successfully',
|
|
@@ -163,7 +162,7 @@ export default {
|
|
|
this.$confirm('Confirm deletion?', 'Tips', {
|
|
this.$confirm('Confirm deletion?', 'Tips', {
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
- this.$api.system.DelOptionset([{ id: row.id }]).then(res => {
|
|
|
|
|
|
|
+ this.$api.sysOptionset.del({ id: row.id }).then(res => {
|
|
|
this.$refs.qtable.getData()
|
|
this.$refs.qtable.getData()
|
|
|
this.$message({
|
|
this.$message({
|
|
|
message: 'Removal successful',
|
|
message: 'Removal successful',
|