shish пре 2 година
родитељ
комит
2bae77325e
1 измењених фајлова са 10 додато и 4 уклоњено
  1. 10 4
      ghs/src/views/item/list.vue

+ 10 - 4
ghs/src/views/item/list.vue

@@ -69,8 +69,6 @@
       <template #slot-modify="{ scope }">
       <template #slot-modify="{ scope }">
 
 
 		<el-button type="text" @click.native.stop="replaceBtnFn(scope.row.id)" >修改</el-button>
 		<el-button type="text" @click.native.stop="replaceBtnFn(scope.row.id)" >修改</el-button>
-		<el-button type="text" v-if="scope.row.status==2" @click.native.stop="setStatusFun(scope.row.id,1)" >上架</el-button>
-		<el-button type="text" v-if="scope.row.status==1" @click.native.stop="setStatusFun(scope.row.id,2)" >下架</el-button>
 
 
 		<el-popover style="margin-left:10px;margin-right:10px;" placement="top" width="160" :ref="'popover-' + scope.row.id">
 		<el-popover style="margin-left:10px;margin-right:10px;" placement="top" width="160" :ref="'popover-' + scope.row.id">
 			<p>确认复制生成花材?</p>
 			<p>确认复制生成花材?</p>
@@ -78,7 +76,7 @@
 			<el-button size="mini" type="text" @click.stop="cancelCopyProduct(scope.row.id)">取消</el-button>
 			<el-button size="mini" type="text" @click.stop="cancelCopyProduct(scope.row.id)">取消</el-button>
 			<el-button type="primary" size="mini" @click.stop="copyProduct(scope.row.id)">确定</el-button>
 			<el-button type="primary" size="mini" @click.stop="copyProduct(scope.row.id)">确定</el-button>
 			</div>
 			</div>
-			<el-button slot="reference" size="mini" type="text" plain @click.stop="">复制</el-button>
+			<el-button slot="reference" size="mini" type="text" plain @click.stop="">复制新建</el-button>
 		</el-popover>
 		</el-popover>
 
 
 		<el-button type="text" v-if="scope.row.delStatus==0" @click.native.stop="setDelStatusFun(scope.row.id,1)" >停用</el-button>
 		<el-button type="text" v-if="scope.row.delStatus==0" @click.native.stop="setDelStatusFun(scope.row.id,1)" >停用</el-button>
@@ -389,11 +387,13 @@ export default {
 		}).catch(err => {})
 		}).catch(err => {})
 	  },
 	  },
 	copyProduct(id){
 	copyProduct(id){
+		this.$message({message: '开发中',type: 'warning'});
+    	return;
 		this.$service.product.copy({id:id}).then(res => {
 		this.$service.product.copy({id:id}).then(res => {
 			this.$message.success('操作成功!')
 			this.$message.success('操作成功!')
 			this.$refs[`popover-` + id].doClose()
 			this.$refs[`popover-` + id].doClose()
 			this.app.refresh()
 			this.app.refresh()
-		}).catch(err => {})
+		})
 	},
 	},
     //取消复制
     //取消复制
 	cancelCopyProduct(id) {
 	cancelCopyProduct(id) {
@@ -478,6 +478,8 @@ export default {
       }).catch(err => {})
       }).catch(err => {})
 	},
 	},
 	setDelStatusFun(id,delStatus){
 	setDelStatusFun(id,delStatus){
+		this.$message({message: '开发中',type: 'warning'});
+    	return;
       this.$service.product.changeDelStatus({id:id,delStatus:delStatus}).then(res => {
       this.$service.product.changeDelStatus({id:id,delStatus:delStatus}).then(res => {
         this.$message.success('操作成功!')
         this.$message.success('操作成功!')
         this.app.refresh()
         this.app.refresh()
@@ -893,6 +895,10 @@ export default {
 
 
     },
     },
     replaceBtnFn(id) {
     replaceBtnFn(id) {
+
+		this.$message({message: '开发中',type: 'warning'});
+    	return;
+
       	this.addDialog = true
       	this.addDialog = true
 		this.currentItemId = id;
 		this.currentItemId = id;
 		if(id==0){
 		if(id==0){